Skip to content

solana-foundation/templates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

393 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Solana Templates

Official templates for create-solana-dapp.

Browse the public template gallery at https://solana.com/developers/templates.

Usage

Create a new Solana project using the interactive CLI:

# npm
npm create solana-dapp@latest

# pnpm
pnpm create solana-dapp@latest

# yarn
yarn create solana-dapp

Or specify a template directly:

npm create solana-dapp@latest -t gh:solana-foundation/templates/kit/nextjs

Template Categories

  • Kit - Modern templates using @solana/kit
  • Web3.js - Templates using @solana/web3.js (legacy)
  • Mobile - React Native templates for Solana Mobile
  • Community - Templates maintained by the community

See TEMPLATES.md for the complete list.

Contributing

We welcome contributions!

Adding a new community template:

See the Community Template Contributor Guide for comprehensive instructions on contributing templates to the community/ directory.

Adding a new template:

  1. Create community templates under community/.
  2. Add required metadata to package.json (see existing templates for examples)
  3. Include displayName, usecase, and og-image.png
  4. Run pnpm generate to update templates.json
  5. Open a PR with your changes

Improving existing templates:

  • Report issues or suggest improvements
  • Submit PRs for bug fixes or enhancements
  • Update documentation

See CONTRIBUTING.md for detailed guidelines.

Development

pnpm install
pnpm generate    # Generate templates.json and TEMPLATES.md
pnpm lint        # Validate templates
pnpm format      # Format code

AI coding agents should start with AGENTS.md, which links to the focused docs under docs/agents/.

Contributors

Published under the MIT license. Made by community πŸ’›

About

Official templates for create-solana-dapp πŸš€ CLI πŸ‘‰ https://github.com/solana-foundation/create-solana-dapp

Resources

License

Contributing

Stars

Watchers

Forks

Contributors