← 一覧
@lapius/tssetuptssetup
GitHubnpm
<div align="center"> <p align="center"><b>English</b> | <a href="README.ja.md">日本語</a></p> <h1 align="center">tssetup</h1> <h3 align="center">Scaffold a Bun + TypeScript frontend project with one command.</h3> <p align="center">Creates a Bun + TypeScript project with a hot-reload dev server from PowerShell or CMD. Pair it with <a href="https://github.com/Lapius7/tsbuild">tsbuild</a> to run it.</p> <p align="center"> <a href="https://www.npmjs.com/package/@lapius/tssetup"><img alt="npm" src="https://img.shields.io/npm/v/@lapius/tssetup?style=flat-square&color=cb3837&logo=npm"></a> <a href="https://pypi.org/project/tssetup/"><img alt="PyPI" src="https://img.shields.io/pypi/v/tssetup?style=flat-square&color=3775a9&logo=pypi&logoColor=white"></a> <a href="https://bun.sh"><img alt="Bun" src="https://img.shields.io/badge/runtime-Bun-fbf0df?logo=bun&logoColor=000000&style=flat-square&labelColor=000000"></a> <a href="LICENSE"><img alt="License" src="https://img.shields.io/github/license/Lapius7/tssetup?style=flat-square&color=97ca00"></a> <a href="https://github.com/Lapius7/tssetup/stargazers"><img alt="Stars" src="https://img.shields.io/github/stars/Lapius7/tssetup?style=flat-square&color=e3b341&logo=github"></a> <a href="https://github.com/Lapius7/tssetup/commits/main"><img alt="Last commit" src="https://img.shields.io/github/last-commit/Lapius7/tssetup?style=flat-square&color=3b82f6"></a> </p> <p align="center"><a href="#quick-start">Quick start</a> · <a href="#options">Options</a> · <a href="#templates">Templates</a> · <a href="#update">Update</a></p> </div>

Features

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.

ToolUsed forInstall
Python 3.9+Running tssetuppython.org
BunProject init and TypeScript compilepowershell -c "irm bun.sh/install.ps1 | iex"
VS Code (optional)--codecode.visualstudio.com

Options

tssetup <project-name> [--mode <mode>] [--title <text>] [--code]
OptionShortDefaultWhat it does
project_namerequiredProject folder name (. for the current directory)
--mode <mode>-mdefaultTemplate mode
--title <text>-tBun + TS AppText for the HTML <title>
--code-cOpen in VS Code after setup
--open-oOpen in Explorer after setup
--interactive-iSet the project up interactively
--list-lList available templates
--update-uUpdate to the latest version
--lang <lang>Display language: ja or en
--version-vShow the version
--help-hShow help

Templates

ModeWhat you get
defaultSimple layout with Destyle.css and dark mode
tailwindTailwind CSS (CDN) ready to use
routerSmall SPA router built on the HTML5 History API, no library
threeThree.js (CDN) with a rotating cube
alpineAlpine.js (CDN) reactive UI demo
bootstrapBootstrap 5 (CDN) with a dark theme and a counter
emptyEmpty 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, alpine and bootstrap templates 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