What is TSnap?
tsnap is a lightweight, extensible TypeScript-first CLI for quickly bootstrapping and managing modern web projects. It helps you set up development environments, add tools like linters, formatters, and frameworks, and keep your workflow streamlined.
Key Features
ESM-first TypeScript CLI Designed with Node.js
NodeNextand TypeScript from the ground up.Non-destructive file generators Adds configuration and setup files without overwriting your existing project files.
Interactive tool setup Similar to
npm create vite, you can select templates for frameworks like React, Vanilla TS, and more.Extensible architecture Add more tools and templates easily as your workflow grows.
Official-documents-first approach All configurations follow official best practices, ensuring a clean and maintainable setup.
Why tsnap?
Setting up a new project often involves installing multiple tools, creating configs, and worrying about version conflicts. tsnap simplifies this by providing:
- A single CLI command to initialize a project.
- Modular generators for ESLint, Prettier, Vite, and other tools.
- Safe operations that do not overwrite existing files.
- Interactive choices for templates and frameworks.