A Next.js template demonstrating how to easily onboard users into web3 using Privy. Users can view their recent activity and collected badges from your Open Format dApp.
- 📈 Shows the recent user activity and badges collected from an Open Format dApp
- 🔐 Authentication with multiple providers:
- Discord
- 🌓 Dark/Light mode toggle
- 🎨 Clean UI with Shadcn
- ⚡️ Built with Next.js 14
Before you begin, you'll need to set up accounts and configure a few services:
-
Open Format Dashboard
- Create an account at Open Format Dashboard
- Create a new dApp to get your
OPENFORMAT_DAPP_ID
- Generate an API key to get your
OPENFORMAT_API_KEY
-
Privy Dashboard
- Create an account at Privy Dashboard
- Create a new app to get your
NEXT_PUBLIC_PRIVY_APP_ID
from the Settings section of your Privy app - In the Login Methods section of your Privy app, enable:
- Discord
Instantly deploy your own copy of the template using Vercel or Netlify:
-
Clone the repository:
git clone https://github.com/open-format/next-js-starter.git cd next-js-starter
-
Install dependencies:
npm install # or yarn install # or pnpm install
-
Create a
.env.local
file in the root directory and add your Privy App ID:NEXT_PUBLIC_PRIVY_APP_ID=your_privy_app_id
-
Start the development server:
npm run dev # or yarn dev # or pnpm dev
-
Open http://localhost:3000 in your browser to see the application.
Variable | Required | Example | Description |
---|---|---|---|
NEXT_PUBLIC_PRIVY_APP_ID |
Yes | cgg24287yq0273ryeh719gutpc |
Your Privy application ID |
OPENFORMAT_API_KEY |
No | b31e8e6c-d43b-4b37-aee9-621egg415b8e |
Required to display Recent Activity and Collected Badges in your dApp. Generate API Key in the Open Format Dashboard. |
OPENFORMAT_DAPP_ID |
No | 0x0747d8a6e968422a4e506e820f51efaef757956c |
Required to display Recent Activity and Collected Badges in your dApp. Create dApp in the Open Format Dashboard. |
Contributions are welcome! Please feel free to submit an issue.