Nextjs Solana Starter Kit

screenshot of Nextjs Solana Starter Kit

Nextjs Solana Starter Kit

Build your own Solana dApp with NextJS and TypeScript


The Build your own Solana dApp with NextJS and TypeScript starter kit is a comprehensive package that provides all the necessary tools to start building decentralized applications (dApps) on the Solana blockchain. This kit includes features such as connecting to Solana wallets, interacting with the Solana blockchain, fetching on-chain data through Helius APIs, and customizing the dApp's style using Tailwind CSS and daisyUI.


  • Connect to a Solana wallet and validate ownership: Easily integrate any Solana wallet supported by @solana/wallet-adapter into the dApp by modifying the configuration. Auto-connect is enabled by default to improve the user experience, and a signing mechanism is in place to validate wallet ownership.
  • Interact with Solana's blockchain: Perform various actions on the Solana blockchain, including creating transactions of SOL or SPL tokens to other wallets, submitting transactions to the blockchain, confirming transaction success, and finding Twitter handles associated with wallet addresses. Solana Labs official libraries like @solana/web3.js, @solana/spl-token, and @solana/name-service are utilized for these interactions.
  • Fetch on-chain data through Helius APIs: Use the Helius API to retrieve and access stored data on the Solana blockchain. This kit specifically demonstrates how to fetch the list of NFTs in a wallet, but it can be extended to retrieve other data from different Helius API endpoints.
  • Build your own style: Customize the dApp's style using Tailwind CSS and daisyUI. Quickly iterate and develop the dApp using pre-defined or custom themes. The theme can be easily changed by modifying the daisy.themes configuration within the ./tailwind.config.js file and defining the data-theme attribute in the html tag. The kit also includes a simple theme switcher for toggling between dark and light mode for enhanced accessibility. The react-hot-toast library is integrated to provide visual feedback for on-chain actions.


  1. Clone the repository:
git clone <repository_url>
  1. Navigate to the project directory:
cd <project_directory>
  1. Install the dependencies:
npm install
  1. Start the development server:
npm run dev
  1. Access the dApp in your web browser at http://localhost:3000.


The Build your own Solana dApp with NextJS and TypeScript starter kit offers a comprehensive set of features and tools for developers to easily build and customize dApps on the Solana blockchain. With the ability to connect to Solana wallets, interact with the blockchain, fetch on-chain data through Helius APIs, and customize the dApp's style using Tailwind CSS and daisyUI, developers can quickly create powerful and visually appealing decentralized applications. The integration with Solana Labs official libraries and the inclusion of additional libraries like react-hot-toast further enhance the development experience and provide a solid foundation for building Solana dApps.


Next.js is a React-based web framework that enables server-side rendering, static site generation, and other powerful features for building modern web applications.


React is a widely used JavaScript library for building user interfaces and single-page applications. It follows a component-based architecture and uses a virtual DOM to efficiently update and render UI components


Tailwind CSS is a utility-first CSS framework that provides pre-defined classes for building responsive and customizable user interfaces.


daisyUI adds classes to Tailwind CSS for all common UI components. Classes like btn, card, etc. This allows us to focus on important things instead of making basic elements for every project.


ESLint is a linter for JavaScript that analyzes code to detect and report on potential problems and errors, as well as enforce consistent code style and best practices, helping developers to write cleaner, more maintainable code.


PostCSS is a popular open-source tool that enables web developers to transform CSS styles with JavaScript plugins. It allows for efficient processing of CSS styles, from applying vendor prefixes to improving browser compatibility, ultimately resulting in cleaner, faster, and more maintainable code.


TypeScript is a superset of JavaScript, providing optional static typing, classes, interfaces, and other features that help developers write more maintainable and scalable code. TypeScript's static typing system can catch errors at compile-time, making it easier to build and maintain large applications.