@morda-dev/create-sdk
v1.1.4
Published
CLI to scaffold a production-ready TypeScript SDK with a strict public API
Downloads
515
Maintainers
Readme
create-sdk
Scaffold a production-ready TypeScript SDK with a strict public API.
create-sdk is a CLI tool that bootstraps a modern TypeScript SDK with
ESM-first setup, API Extractor, and CI-ready structure — so you
can focus on features, not boilerplate.
✨ Features
- ⚡ Interactive CLI (or fully automated with flags)
- 📦 ESM-first TypeScript setup
- 🔒 Strict public API via API Extractor
- 🧪 CI-verified & smoke-tested
- 🧱 Clean, scalable project structure
- 🚫 No hidden magic, no vendor lock-in
🚀 Quick start
This creates a clean SDK with a strict public API enforced by API Extractor.
npx @morda-dev/create-sdk my-sdk
cd my-sdk
npm install
npm run buildThat’s it. You now have a production-ready SDK.
📘 Example SDK
See a minimal, production-style SDK generated with create-sdk:
👉 https://github.com/mordaHQ/example-sdk
This example demonstrates:
- a single, explicit public API entrypoint (
src/index.ts) - API Extractor–controlled surface
- ESM-first configuration
- CI-ready setup
- safe evolution without accidental breaking changes
Use it as a reference for structuring real-world SDKs.
❓ Why create-sdk?
Most SDK starters fall into one of two traps:
- ❌ too minimal — no real production setup
- ❌ too complex — opinionated, hard to extend
create-sdk sits in the middle:
Strict where it matters. Flexible where it should be.
You get:
- a clearly defined public API
- predictable build & release flow
- freedom to grow the SDK your way
🧩 What’s included
- TypeScript project with strict config
- API Extractor setup
- Ready-to-use CI workflow
- Clean module-based structure
- Example public API and types
🛠 CLI options
npx @morda-dev/create-sdk <name> [options]Options
--yes— skip all prompts--no-install— skip dependency installation--no-git— skip git initialization
Example
npx @morda-dev/create-sdk my-sdk --yes --no-install📦 Requirements
- Node.js >= 18
- npm / pnpm / yarn
✅ Used in production
This template is used to scaffold and maintain real-world TypeScript SDKs.
🧭 Roadmap
- Custom templates
- Optional monorepo mode
- Plugin system
- SDK release automation helpers
🤝 Contributing
Issues and PRs are welcome. This project is intentionally kept small, clean, and well-documented.
📄 License
ISC
