@sitharaj08/scaffold-kit
v1.0.0-alpha.1
Published
Production-grade CLI for creating, validating, and publishing JavaScript/TypeScript libraries across all modern frameworks
Maintainers
Readme
Scaffold-Kit
_____ __ __ _ _ ___ __
/ ____| / _|/ _| | | | |/ (_) |
| (___ ___ __ _| |_| |_ ___ | | __| |/ /| |_
\___ \ / __/ _` | _| _/ _ \| |/ _` | < | __|
____) | (_| (_| | | | || (_) | | (_| | . \| |_
|_____/ \___\\__,_|_| |_| \___/|_|\__,_|_|\_\\__|✨ Features
- 🎯 Framework-Agnostic — Support for React, Vue, Svelte, Node.js, and vanilla TypeScript
- 🚀 Production-Ready Templates — Modern best practices out of the box
- ✅ Package Validation — Validate against npm standards with quality scoring
- 📦 Safe Publishing — 8 pre-flight checks before publishing
- 🔄 Migration Assistant — Modernize legacy projects automatically
- 📚 Docs Generator — Auto-generate API documentation from TypeScript
📦 Installation
# Using npx (recommended)
npx @sitharaj08/scaffold-kit create my-lib
# Global installation
npm install -g @sitharaj08/scaffold-kit
# Or with other package managers
pnpm add -g @sitharaj08/scaffold-kit
yarn global add @sitharaj08/scaffold-kit🚀 Quick Start
# Create a new library
npx @sitharaj08/scaffold-kit create my-awesome-lib
# The interactive wizard guides you through:
# ✓ Framework selection (React, Vue, Svelte, TypeScript, Node.js)
# ✓ Package type (library, plugin, utility, CLI, SDK)
# ✓ Build system (tsup, Vite, Rollup, unbuild)
# ✓ Module format (ESM, CJS, dual)
# ✓ CI/CD setup (GitHub Actions, GitLab CI)📖 Commands
| Command | Description |
|---------|-------------|
| scaffold-kit create [name] | Create a new package with interactive wizard |
| scaffold-kit check [path] | Validate package against npm best practices |
| scaffold-kit publish | Publish with pre-flight checks |
| scaffold-kit add [type] [name] | Add component, hook, or utility |
| scaffold-kit migrate | Migrate build system or module format |
| scaffold-kit docs | Generate API documentation |
| scaffold-kit release | Version bumping and changelog |
| scaffold-kit info | Display CLI information |
scaffold-kit create
scaffold-kit create my-libInteractive wizard for:
- Framework selection (React, Vue, Svelte, TypeScript, Node.js)
- Package type (library, plugin, utility, CLI, SDK)
- Build system (tsup, Vite, Rollup, unbuild, esbuild)
- Module format (ESM, CJS, dual)
scaffold-kit check
scaffold-kit check --score
scaffold-kit check --fix
scaffold-kit check --size-limit 50KBValidates:
- ✔
exportsfield validity - ✔ TypeScript types presence
- ✔ Tree-shaking compatibility
- ✔ Bundle size limits
- ✔ Peer dependency correctness
scaffold-kit publish
scaffold-kit publish --dry-run
scaffold-kit publish --tag beta8 Pre-flight checks:
- Git status clean
- On main/master branch
- Tests pass
- Build succeeds
- Registry reachable
- Version available
- Changelog updated
- No secrets exposed
scaffold-kit migrate
scaffold-kit migrate --from rollup --to tsup
scaffold-kit migrate --from cjs --to esm
scaffold-kit migrate --from jest --to vitestscaffold-kit docs
scaffold-kit docs --format markdown
scaffold-kit docs serve --port 3000🎨 Supported Frameworks
| Framework | Package Types | Build System | |-----------|---------------|--------------| | React | library, plugin, utility | tsup, Vite | | Vue 3 | library, plugin, utility | tsup, Vite | | Svelte | library, plugin, utility | Vite | | TypeScript | utility, library, SDK | tsup | | Node.js | utility, library, CLI, SDK | tsup |
🔧 Template Presets
| Preset | Features | |--------|----------| | Minimal | TypeScript, tsup, basic setup | | Standard | + Vitest, ESLint, GitHub Actions | | Enterprise | + Husky, Commitlint, Semantic Release, Changesets | | Component Library | + Storybook, Visual testing |
📚 Documentation
Full documentation is available at the docs site:
cd docs-site
npm install
npm run devOr visit: https://github.com/sitharaj88/scaffoldkit
🤝 Contributing
Contributions are welcome! Please read our Contributing Guide first.
# Clone the repository
git clone https://github.com/sitharaj88/scaffoldkit.git
# Install dependencies
cd scaffoldkit
npm install
# Build
npm run build
# Run locally
node dist/bin/scaffold.js --help☕ Support
If you find Scaffold-Kit helpful, consider buying me a coffee!
📄 License
MIT © Sitharaj Seenvivasan
