How solana-developers/solana-templates works
Project type and purpose
• This is an open-source monorepo of project scaffolding “templates” for the create-solana-dapp CLI.
• It contains both “legacy” and current templates for multiple front-end and back-end stacks (Next.js+Tailwind, React+Vite+Tailwind, Node+Express, Node script).
• The CLI invokes these template folders, reads metadata (components.json, README), and copies files into a new dApp project.
File structure
• Top-level:
– pnpm-workspace.yaml + package.json: orchestrate multiple packages using pnpm workspaces.
– .github/workflows: CI for tests/validation.
– legacy/: archived/previous templates.
– templates/: active templates.
• Each template subfolder holds a self-contained project scaffold:
– Template metadata (components.json)
– Framework config (next.config.ts, vite.config.ts, Dockerfile for Node/Express)
– Source code for a minimal Solana dApp (frontend pages, Solana Anchor programs, UI components, data-access layers).
• Common patterns: file-based template metadata, monorepo workspaces, TypeScript + Node.js, multiple framework stacks.
README for additional insights
• Confirms that this repo serves as the “official templates” for create-solana-dapp CLI.
• No runtime services inside this repo—its sole role is to provide static files to the CLI.