A modern, lightweight TypeScript SDK starter template with all the best practices.
- 📦 tsup for bundling
- ⚡️ Vitest for testing
- 📝 TypeScript strict mode
- 🔨 ESLint + Prettier
- 📋 Example usage
- 🚀 GitHub Actions CI
- 📦 pnpm for fast, efficient package management
# Install dependencies
pnpm install
# Run tests
pnpm test
# Build
pnpm build
# Development mode
pnpm dev
import { greet, SDK } from 'typescript-sdk-starter';
// Basic greeting
console.log(greet({ name: 'World' }));
// => "Hello, World"
// SDK usage
const sdk = new SDK('my-api-key');
console.log(sdk.getApiKey());
// => "my-api-key"
pnpm build
- Build for productionpnpm dev
- Build in watch modepnpm test
- Run testspnpm test:watch
- Run tests in watch modepnpm typecheck
- Check typespnpm lint
- Lint codepnpm lint:fix
- Fix lint issuespnpm format
- Format code
MIT