Features
- Instant start: creates the folder, runs
bun init, sets uptsconfig.jsonand writes the hot-reload server script. - Templates:
default,tailwind,router,three,alpine,bootstrapandempty(see Templates). - Editor hand-off:
--codeopens the new project in VS Code,--openin Explorer. - Interactive mode:
-iasks for the settings step by step. - Update check: shows a notice when a newer version exists.
Quick start
You need Python 3.9+ and Bun. VS Code is optional, for --code.
pnpm add -g @lapius/tssetup
# or
pip install tssetup
[!NOTE] The npm package is built for pnpm. Do not install it with both npm and pnpm, or the same command exists twice. The npm package is a launcher that runs the Python tool, so it also needs Node.js 18 or later.
tssetup my-app # default template
tssetup my-app --mode tailwind --code # Tailwind CSS, then open VS Code
tssetup my-app --mode router --title "My SPA"
tssetup my-app --mode empty # minimal
tssetup . # scaffold in the current directory
tssetup -i # interactive
After it finishes, the shell moves into the new project. Run tsbuild there to start developing. Run tssetup with no arguments to see the version and info screen.
| Tool | Used for | Install |
|---|---|---|
| Python 3.9+ | Running tssetup | python.org |
| Bun | Project init and TypeScript compile | powershell -c "irm bun.sh/install.ps1 | iex" |
| VS Code (optional) | --code | code.visualstudio.com |
Options
tssetup <project-name> [--mode <mode>] [--title <text>] [--code]
| Option | Short | Default | What it does |
|---|---|---|---|
project_name | required | Project folder name (. for the current directory) | |
--mode <mode> | -m | default | Template mode |
--title <text> | -t | Bun + TS App | Text for the HTML <title> |
--code | -c | Open in VS Code after setup | |
--open | -o | Open in Explorer after setup | |
--interactive | -i | Set the project up interactively | |
--list | -l | List available templates | |
--update | -u | Update to the latest version | |
--lang <lang> | Display language: ja or en | ||
--version | -v | Show the version | |
--help | -h | Show help |
Templates
| Mode | What you get |
|---|---|
default | Simple layout with Destyle.css and dark mode |
tailwind | Tailwind CSS (CDN) ready to use |
router | Small SPA router built on the HTML5 History API, no library |
three | Three.js (CDN) with a rotating cube |
alpine | Alpine.js (CDN) reactive UI demo |
bootstrap | Bootstrap 5 (CDN) with a dark theme and a counter |
empty | Empty TypeScript file and simple HTML |
What it creates
my-app/
├── src/
│ └── index.ts ← entry point (content depends on --mode)
├── dist/ ← JS output from tsc
├── node_modules/ ← from bun install
├── index.html ← frontend HTML
├── server.ts ← dev server with hot reload
├── tsconfig.json ← TypeScript config
└── package.json ← Bun project config
Update
tssetup --update
Or reinstall: pnpm add -g @lapius/tssetup / pip install --upgrade tssetup.
Safety
[!NOTE] The README and PyPI metadata say Windows (PowerShell, CMD, Windows Terminal). Linux and macOS have not been verified for this README. The
three,alpineandbootstraptemplates were added after the old README and were checked against the code only, not generated and run here.
The software is provided as is, and the author takes no responsibility for any damage from using it.
Contact
License
MIT © 2026 Lapius7