This is our open source Undust.me project for the community and whole ecosystem - without much fluff and just the essentials. 💪
Search your wallet for empty token accounts and close them.
You can find a preview below:
Responsive | Desktop |
---|---|
- Nextjs13 ("old" folder structure using pages - we will release an "app" branch as soon as it's more stable)
- Typescript (tsconfig.json set up and ready to go)
- Material-UI (Dark/Light Mode, Preferred Mode, Switch in AppBar, layout.tsx as well as themes.tsx with predefined dark/light theme.s)
- react-dom ()
- Solana web3.js (Solana Wallet Adapter with auto detect of installed wallet extensions)
- TailwindCSS (set up and ready to go)
- Daisy-UI
Furthermore you will find a globals.css file with predefined settings. Next to the basics you mostly want to set, we also added pre-defined so called "fluid fonts" for all headings and body text. According to the values you tweak, your fonts will scale according to your device width and resolution. This means you wont have to set any TailwindCSS fontSizes in your work unless you want something look different than it normally does.
You will also find the CSS for two variations of the Button styling, "glow" and "glow-on-hover" - just tweak them to your needs and add one of those classes to your buttons if you like.
Also feel free to send us feedback, open an issue or even PR and contribute by creating your own components, refactoring or other improvements.
Create a project using this example:
npm i or yarn install (we suggest npm though as the packages were installed with it)
remove .example from .env.example and add your RPC endpoint to NEXT_PUBLIC_HELIUS_URL=""
npm run dev or yarn dev (same here depending on what you chose above)
remove .example from .env.example and add your RPC endpoint to NEXT_PUBLIC_HELIUS_URL=""
npm run build or yarn build (production build)
You can start editing the page by modifying pages/index.tsx
. The page auto-updates as you edit the file.
If you want to add a new page you just create another file in pages
folder - we created a basics.tsx
as an example for you, and also a blog
folder for a dynamic routing example.
On pages/_app.tsx
, you'll find ThemeProvider
for light/dark mode, "ContextProvider", and "WalletProvider" wrapping your app, this is necessary for everything to work.
Although we are using Nextjs13 we are using the "old" folder structure as long as the "app" structure is in experimental mode.
We will add a app-structure
branch as soon as its running more stable soon.
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.
-
Material-UI Getting Started - learn about Material-UI features.
-
TailwindCSS Documentation - learn about TailwindCSS features.
You can check out the Cynova GitHub organization - your feedback and contributions are welcome!
For any questions, suggestions, join our discord at https://discord.gg/cynova-enterprise.