A modern, production-ready TypeScript npm package template from @open-templates.
Quick Start: Click Use this template, then run
npm run initto copy personalized files fromtemplates/into the repo root.
- Use this template on GitHub to create your repository.
- Clone and initialize:
git clone https://github.com/open-templates/npm-package-template.git my-package
cd my-package
npm run initnpm run init copies from templates/ (README, package.json, LICENSE, .github/CODEOWNERS, etc.) with your owner, repo, and package name. The hosted template keeps @open-templates branding until you run init.
- TypeScript, tsup (ESM + CJS), Vitest, ESLint flat config
- GitHub Actions: CI, publish (Trusted Publishing +
NPM_TOKENfallback), CodeQL templates/— adopter files; seetemplates/ABOUT_TEMPLATES.md
| Script | Description |
|---|---|
npm run init |
Copy templates/ → root with your GitHub/npm metadata |
npm run dev |
lint + typecheck + test + build |
Full list: docs/TEMPLATE_SETUP.md.
MIT — see LICENSE.
Maintained by @open-templates.