Solana dApp templates: which one to start from

ReserrvaLinks cited7 min read

On this page · 8 sections

If you are about to start a Solana front end, the quickest honest answer to "which template?" is in one repository: solana-foundation/templates, the official template set for the create-solana-dapp CLI. This guide reads that repository as it stood on 11 November 2026 and turns it into a decision.

A disclosure first: this guide is published by Reserrva, whose founder, Alejandro Mena, maintains the repository it describes, and the button further down books a call with him.

What the repository is and how to use it

The repository describes itself as "Official templates for create-solana-dapp", is published under the MIT licence, and has a browsable gallery at solana.com/developers/templates. The create-solana-dapp README says the CLI "automates the initialization of predefined Solana templates" and points to this repository for the official ones.

Run it without arguments and it asks you what to build:

pnpm create solana-dapp@latest

Or name a template directly. This is the form each template's own README uses, here for the Next.js one:

npx -y create-solana-dapp@latest -t solana-foundation/templates/kit/nextjs

The -t flag accepts anything giget accepts, so it also works with templates outside this repository.

The template families

The repository README groups templates into four categories: Kit, Web3.js, Mobile and Community. The full list is in TEMPLATES.md. These are the general-purpose starters, with what their package.json and README say they ship:

TemplateWhat it is forWhat it ships with
kit/nextjsA web app that connects a wallet and sends transactionsNext.js 16, Tailwind v4, @solana/kit with Kit plugins and @solana/react; SOL transfer, token and memo actions; tests against a local runtime
kit/nextjs-anchorA web app plus your own on-chain program in one repoNext.js, Tailwind, @solana/kit, an Anchor vault program and a Codama-generated TypeScript client
kit/react-viteA single-page app without a server frameworkReact, Vite, Tailwind v4, @solana/client and @solana/react-hooks
kit/react-vite-anchorThe Vite option with an on-chain programReact, Vite, Tailwind, @solana/react-hooks, an Anchor vault program and Codama
web3js/web3js-nextjs and web3js-react-viteTeams that want the class-based Connection and PublicKey API@solana/web3.js v3 and @solana/wallet-adapter v3, Tailwind, SPL token actions; the Next.js one adds Sign In With Solana
mobile/kit-expo-minimal and kit-expo-uniwindA React Native app for Solana MobileExpo, React Native, Solana Kit and the Mobile Wallet Adapter
community/*A specific use case: payments, passkey or embedded wallets, airdrops, indexingVaries by template; maintained by their contributors

The Kit category also holds narrower starters (DAS NFT viewer, hardware-wallet sign-in, server-side signing with @solana/keychain, a subscriptions program), and Mobile keeps three web3js-expo variants. The README does not rank one template above another.

How to choose

Four constraints settle most cases. Take them in order.

Do you need your own on-chain program in the same repo? If yes, start from kit/nextjs-anchor or kit/react-vite-anchor. Both include an anchor/ workspace and a setup script that builds the program and generates the client. If you only call existing programs, the plain kit/nextjs already covers transfers, tokens and memos.

Which framework do you already know? Next.js if you want server routes and the App Router; Vite if you want a client-only app. Do not learn a framework and Solana at the same time unless you have to.

Which client library does the rest of your stack use? Solana's documentation calls @solana/kit "the recommended TypeScript SDK", and its frontend guide is built on it. The same page says web3.js v3 rebuilds the classic API on Kit internals, for upgrading an existing web3.js app or if you prefer that style. If you are migrating such an app, the web3js/ templates match what you have; otherwise the Kit ones match the documentation.

Web or mobile? For an Android app on Solana Mobile, take a mobile/ template rather than wrapping a web one. The instructions the CLI prints for them explain how to build the Android app locally.

Tell Alejandro about your project

A free 15 or 30 minute video call with Alejandro Mena, developer. You pick the time and no account is needed.

Book a call

Talk it through before you scaffold

Sometimes the hard question is not the template but the product: whether you need a program at all, which wallet experience your users expect, what runs on a server. A short call with someone who works on these templates can save a rewrite.

Alejandro Mena is a developer and the founder of Reserrva. He maintains the Solana Foundation's templates repository, previously worked at MetaMask, and works where product, design and frontend meet. He offers free 15- and 30-minute video calls every day from 10:00 to 23:00 (CET), booked online without an account.

What a template does not decide for you

  • An RPC provider for mainnet: the web3.js Next.js README warns that the public mainnet endpoint rejects most browser traffic and asks for your own URL
  • Wallet UX: which wallets you support, and what happens when none is installed
  • Transaction error handling for your own flows; the nextjs-anchor README lists readable messages for common errors, which is a starting point, not a policy
  • Tests for your own code; kit/nextjs and the web3.js web templates include tests, the Anchor templates test the program, and kit/react-vite has no test script
  • Deployment of the front end and, if you have one, the program to devnet and mainnet
  • Secrets and environment variables, such as the session secret the web3.js Next.js template needs for sign-in

Common mistakes when starting from a template

Shipping the template's program ID. The nextjs-anchor README explains that its setup script builds with --ignore-keys, so the program keeps the devnet ID that ships with the template. To deploy your own program, follow its deploy steps, which build without that flag.

Trusting an old tutorial's template name. On 28 October 2026 the repository removed its legacy web3.js templates. Copy the template path from TEMPLATES.md today, not from a post written last year.

Ignoring the Node version. The kit/nextjs and web3js-nextjs READMEs require Node.js 24 or newer.

Keeping the demo as the product. Our advice, not the repository's: the vault, the memo button and the airdrop exist to show the wiring. Remove what you will not use before you build on top of it.

Frequently asked questions

What is the official Solana dApp template?

The official templates for the create-solana-dapp CLI live in the solana-foundation/templates repository on GitHub, under the MIT licence, grouped as Kit, Web3.js, Mobile and Community.

How do you create a Solana app from a template?

Run pnpm create solana-dapp@latest and pick one, or pass a path with the -t flag, for example npx -y create-solana-dapp@latest -t solana-foundation/templates/kit/nextjs.

Is there a Solana template with Anchor and Next.js?

Yes. kit/nextjs-anchor combines Next.js, Tailwind, @solana/kit and an Anchor vault program with a Codama-generated client. kit/react-vite-anchor does the same with React and Vite.

Which should you use, @solana/kit or web3.js?

Solana's documentation calls @solana/kit the recommended TypeScript SDK and describes web3.js v3 as the option for upgrading an existing web3.js app or preferring its class-based API. The repository has templates for both.

Can you talk to someone before choosing?

Yes. Alejandro Mena, who maintains the templates repository, offers free 15- and 30-minute video calls booked online without an account.

Where this guide comes from

This guide is published by Reserrva, a booking platform for businesses that work by appointment, whose pages AI assistants can also book through (how that works). Its founder, Alejandro Mena, maintains the repository described here, and the buttons on this page book a call with him. Every technical statement comes from the repository, the create-solana-dapp README and Solana's documentation, read on 11 November 2026. Templates change often: if something here is out of date, tell us and we will correct it.

Start with a call

Thirty minutes, free and with no commitment, to work out what you need and where to start.

Book a call
Links cited

The external pages this article links to.

Commercial relationship: Reserrva publishes this guide, and Alejandro Mena is Reserrva's founder.