A community-driven CLI to scaffold Farcaster MiniApps with frontend, backend, and smart contract templates.
Just like npm create vite@latest, this tool allows you to spin up a fully structured Farcaster MiniApp project by selecting a template or combining frameworks from a categorized registry.
Use via npx (recommended):
npx create-farcaster-miniapp@latestOr install globally:
npm install -g create-farcaster-miniappcreate-farcaster-miniapp [options]--template <name> Download and use a specific template
--frontend <name> Specify frontend framework
--backend <name> Specify backend framework
--chain <name> Specify Chain for the starter pack
--smart-contract <name> Specify smart contract template
--help, -h Show help
# Interactive mode (recommended for new users)
npx create-farcaster-miniapp
# Use a known template directly
npx create-farcaster-miniapp --template riff-factory
# Search and Select templates
npx create-farcaster-miniapp --template
# Manual selection by stack
npx create-farcaster-miniapp --frontend react --smart-contract hardhatWe encourage the community to add their own MiniApp templates!
- Fork this repository
- Add your template entry to the
templatesarray intemplate.jsonin the root:
{
"name": "celo-factory",
"description": "Basic Frontend + Hardhat for building on CELO",
"repository": "https://github.com/celo-org/farcaster-template",
"stack": {
"frontend": ["react"],
"backend": null,
"smartContract": ["hardhat", "solidity"],
"chain": ["celo"]
}
}-
Ensure your repo contains:
- A
README.mdwith usage/setup instructions - Actual starter code for building miniapps on farcaster
- A
-
Open a pull request to this repository. The maintainers will review your PR for:
- Metadata completeness
- Functional structure
- Category match
Each template defines its stack via a stack object, so users can search and filter intelligently:
"stack": {
"frontend": ["react"],
"backend": null,
"smartContract": ["hardhat", "solidity"],
"chain": ["celo"]
}Use null where applicable.
The CLI uses these fields to filter templates based on user input and enable stack compatibility matching.
- Submit issues and feature requests in the GitHub Issues
- Open PRs for your own MiniApp templates!!
MIT
