Open source Next.js , Solana xNFT Backpack Scaffold for the community and whole ecosystem - without much fluff and just the essentials. 💪
![](https://private-user-images.githubusercontent.com/63473496/267458106-9a6a8e70-38e2-40b8-a881-6cd1dfe27254.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyOTg4NzgsIm5iZiI6MTczOTI5ODU3OCwicGF0aCI6Ii82MzQ3MzQ5Ni8yNjc0NTgxMDYtOWE2YThlNzAtMzhlMi00MGI4LWE4ODEtNmNkMWRmZTI3MjU0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjExVDE4MjkzOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTIzNmM0N2U4ZjQ5MWM5Y2RiN2ZlNDJiMjk0ZTI5YzZhNTQ3YjZiMWM5YThlY2I1MWYxMzVjYzIzNWIxYzcxMmUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.yC3tFmkXO9TYpx47qGgGlfC-jxwT88AKfUocubHCOGc)
Also feel free to send us feedback, open an issue or even PR and contribute by creating your own components, refactoring or other improvements.
![](https://private-user-images.githubusercontent.com/63473496/267458137-ec0911c7-252f-4615-9439-913abc93ac22.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyOTg4NzgsIm5iZiI6MTczOTI5ODU3OCwicGF0aCI6Ii82MzQ3MzQ5Ni8yNjc0NTgxMzctZWMwOTExYzctMjUyZi00NjE1LTk0MzktOTEzYWJjOTNhYzIyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjExVDE4MjkzOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWZlOGZlMGE2MWFiOTQzMTgwMDY2YTc4ZDZjMGIwOWE4MWNlZGY1MjUzY2E5MTlmNmRiMDhlYWEyODBjZjQ3ZjImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.T-bkyqF0qSXw9h6KNWl_UYIGAsA4iL_61Ih2XW18Wt4)
- Create a project using this example:
git clone https://github.com/Suvraneel/xNFT-scaffold-next
cd xNFT-scaffold-next
code .
-
Remove
.example
from.env.example
and add your RPC endpoint toNEXT_PUBLIC_HELIUS_URL=""
-
Install dependencies & start buidling:
npm i && npm run dev
or
yarn && yarn dev
or
pnpm i && pnpm run dev
- Production Build
npm run build #or yarn build or pnpm run build (accordingly)
You can start editing the page by modifying src/app/page.tsx
. The page auto-updates as you edit the file.
If you want to add a new page you just create another file in src/app/*
folder - Have a look at nfts/page.tsx
as an example.
On src/contexts/*
, you'll find AllProvider
for all provider contexts (eg, ToastProvider), and "WalletProvider" wrapping your app, this is necessary for everything to work.
To learn more about Solana and Next.js, take a look at the following resources:
-
Next.js Documentation - learn about Next.js features and API.
-
Solana Documentation - learn about Solana features.
-
Anchor Language Book - learn about Solana features.
-
Rust Anchor Documentation - learn about Solana features.
-
TailwindCSS Documentation - learn about TailwindCSS features.