Live server powered by @compodoc/live-server
Snapp Kit compiles your JSX/TSX files to vanilla JavaScript. Simple as that.
What it does:
- Compiles JSX/TSX to JavaScript (powered by esbuild)
- Live server with auto-refresh during development
- Creates page templates instantly
What is Snapp? - A lightweight JavaScript framework. Learn more →
npm create snapp-app my-app
cd my-app
npm run snappOpen http://localhost:9000 - Done!
Why use this?
- No global installation needed
- Everything set up automatically
- Works on any machine
- Perfect for team projects
For personal projects or if you want the CLI everywhere:
npm install -g snapp-kit
# For macOS/Linux
sudo npm install -g snapp-kitThen use:
snapp create my-app
cd my-app
snapp build -WNote: If you used
npm create snapp-app, add prefix commands withnpx(e.g.,npx snapp build -W)
Creates a new project with everything configured.
npm create snapp-app my-project
cd my-project
npm run snappCreates:
my-project/
├── views/
│ └── index.jsx # Your JSX files
├── src/
│ ├── index.js
│ └── snapp.js # Snapp runtime
└── index.html # HTML
Creates a new project
snapp create my-project
cd my-project
snapp build -WGenerates a new page (HTML + JSX). Must be run inside project directory.
With npm create snapp-app:
cd my-project
npx snapp page contactWith global installation:
cd my-project
snapp page contactCreates:
contact.html- HTML templateviews/contact.jsx- JSX component
Compiles JSX/TSX files from views/ to src/.
snapp build # Build once
snapp build -W # Build + watch + live server
snapp build -M # Build minified
snapp build -W -M # Watch + live server + minifyOptions:
| Flag | Long | Description |
|---|---|---|
-E |
--entry |
Project folder (e.g., -E MyApp) |
-W |
--watch |
Watch mode + live server |
-M |
--minify |
Minify output |
-P |
--port |
Server port (default: 9000) |
When to use -E:
Inside your project - no -E needed:
cd my-project
snapp build -WOutside your project - use -E:
snapp build -W -E my-projectCheck installed version:
snapp --version
snapp -VShow all available commands:
snapp --helpSnapp Kit compiles your files using esbuild:
views/index.jsx → src/index.js
views/about.tsx → src/about.js
Supported files: .jsx, .tsx, .ts, .js
Watch mode:
- Starts live server on port 9000
- Rebuilds when files change
- Refreshes browser automatically
For npm create:
npm --version # Check npm version (need 6+)For global installation:
npm install -g snapp-kit
snapp --versionFor npx commands:
cd my-project
npx snapp --versionCheck your folder structure:
ls views/*.jsx # Verify files existThen build:
snapp build -Wsnapp build -W -P 8080sudo npm install -g snapp-kitOr use npm create snapp-app (no sudo needed!)
- Simple - One command to build
- Fast - Powered by esbuild
- Flexible - Global or per-project
Snapp Kit v3