First off, thank you for taking the time to contribute! 🎉
Whether you're fixing a bug, improving documentation, adding a template, or suggesting a feature — every contribution helps make CNA better for the whole community.
New here? Start by checking the official site to understand what CNA does, then come back here to dive in.
Please note we have a Code of Conduct — follow it in all your interactions with the project.
CNA uses a cozy nest identity across GitHub, npm, the website, and generated starters:
- Palette: amber
#f59e0b/#d97706+ teal#0d9488/#14b8a6on warm dark surfaces (#0f172a) - Tagline:
One command. Any stack. - Story: choose template → add addons → ship
- Template design source of truth:
cna-templates/docs/DEFAULT_LANDING_DESIGN.mdandshared/assets/ - Repo heroes:
assets/repo-hero.svg(contributors) andpackages/create-awesome-node-app/assets/hero.svg(npm)
Prefer warm, craft-forward copy over neon/cyberpunk or generic purple SaaS framing.
Use the GitHub issue tracker to report bugs.
Before filing, please:
- Check open/recently closed issues to avoid duplicates
- Use the bug report template
Include as much detail as possible:
- A reproducible test case or steps to reproduce
- The version of the CLI you're running (
create-awesome-node-app --version) - Your Node.js version (
node --version) and OS - Any relevant modifications or unusual environment details
We love good ideas! Use the feature request template on GitHub Issues.
Describe the problem you're solving and the solution you have in mind — the more context, the better.
Pull requests are the best way to propose changes. Before opening one:
- Work against the latest
mainbranch — make sure your fork is up to date - Check existing PRs — someone may already be working on the same thing
- Open an issue first for significant changes — we'd hate for your time to be wasted on something that doesn't align with the roadmap
- Fork the repository and create a branch from
main - Make your changes — focus on the specific fix or feature; avoid reformatting unrelated code
- Ensure tests pass — run
npm testfrom the root - Write clear commit messages — follow Conventional Commits if possible
- Open a Pull Request — fill out the template and link the related issue
- Stay engaged — respond to review comments and CI failures
GitHub docs: Forking a repo · Creating a pull request
Template and extension data lives in a separate repository: github.com/Create-Node-App/cna-templates
To add or update a template/extension, open a PR there following the conventions described in that repo's README.
- Look for issues labelled
help wantedorgood first issue - Browse the open issues for bugs or feature requests that interest you
- Check the Roadmap section in the CLI README
# Clone and set up
git clone https://github.com/Create-Node-App/create-node-app.git
cd create-node-app
fnm use
npm install
# Build the CLI
npm run build -- --filter create-awesome-node-app
# Test your changes
./packages/create-awesome-node-app/index.js my-test-appThe repository includes a fixtures/ directory with a minimal catalog, templates, and extensions for offline testing without network access.
# Load template/extensions catalog from fixtures instead of GitHub
CNA_CATALOG_FIXTURE=1 ./packages/create-awesome-node-app/index.js --list-templates
CNA_CATALOG_FIXTURE=1 ./packages/create-awesome-node-app/index.js --list-addonsOr use the --fixture flag:
# Auto-detect fixture root (works in development checkout)
./packages/create-awesome-node-app/index.js --fixture --list-templates
# Explicit fixture root (useful when running from a different working directory)
./packages/create-awesome-node-app/index.js --fixture /path/to/repo --list-templatesfixtures/
catalog/
templates.json # Minimal catalog (2 templates, 1 extension, 2 categories)
templates/
example-starter/
cna.config.json # Custom options config
template.json # Dependencies/scripts metadata
template/ # Scaffoldable files (Lodash EJS)
README.md
package.json
[src]/index.ts.template
extensions/
example-addon/
package.json # Extension dependencies
template/ # Additive scaffold files
jest.config.js
.gitignore.if-pnpm # Package-manager-conditional file
Tests can use the fixture environment variables to avoid HTTP mocking:
import { __resetTemplateDataCacheForTests } from "../templates.js";
// In test setup:
process.env.CNA_CATALOG_FIXTURE = "1";
process.env.CNA_FIXTURE_DIR = path.resolve(__dirname, "../../../..");
__resetTemplateDataCacheForTests();
// After test:
delete process.env.CNA_CATALOG_FIXTURE;
delete process.env.CNA_FIXTURE_DIR;
__resetTemplateDataCacheForTests();For scaffolding tests that need real git repos, see the existing test pattern in
packages/create-node-app-core/tests/git.test.mts which creates local bare git
repositories via the file:// protocol using makeLocalBareGitRepo().
| Export / Helper | Location | Purpose |
|---|---|---|
CNA_CATALOG_FIXTURE=1 |
env var | Enables fixture mode in getTemplateData() |
CNA_FIXTURE_DIR=<path> |
env var | Override fixture root (default: auto-detect from templates.ts) |
--fixture [dir] |
CLI flag | Shorthand for setting CNA_CATALOG_FIXTURE=1 (and optionally CNA_FIXTURE_DIR) |
__setFixtureRootForTests(root) |
templates.ts |
Override fixture root programmatically in tests |
__resetTemplateDataCacheForTests() |
templates.ts |
Clear the in-memory catalog cache |
Again, thank you for helping make Create Awesome Node App better! 🚀