š The fastest way to create a CSVT stack project
CSVT = Cloudflare Workers + Svelte + Vite + Tailwind CSS
A CLI tool to scaffold new projects with the modern CSVT stack: Cloudflare Workers, Svelte 5, Vite, TypeScript, and Tailwind CSS.
⨠Modern Stack
š ļø Developer Experience
ā” Built with Bun
š Why Not SvelteKit?
bun create csvt my-app
npm create csvt@latest my-app
yarn create csvt my-app
pnpm create csvt my-app
create-csvt [project-name] [options]
-h, --help - Show help message-t, --template - Template to use (default: default)--no-git - Skip git initialization--no-install - Skip dependency installation--use-npm - Use npm as package manager--use-yarn - Use yarn as package manager--use-pnpm - Use pnpm as package manager# Basic usage
bun create cf-svelte my-awesome-app
# With specific package manager
npm create csvt@latest my-app --use-npm
# Skip git and dependency installation
bun create csvt my-app --no-git --no-install
# Show help
bun create csvt --help
After running the CLI, you'll have a fully configured project with:
my-app/
āāā src/
ā āāā index.ts # Cloudflare Worker entry point
ā āāā main.ts # Client-side app entry
ā āāā App.svelte # Root Svelte component
ā āāā routes/ # Page components
ā āāā lib/ # Reusable components
ā āāā assets/ # Static assets
āāā public/ # Public assets
āāā vite.config.ts # Vite configuration
āāā wrangler.jsonc # Cloudflare Workers config
āāā package.json # Dependencies and scripts
āāā tsconfig.json # TypeScript configuration
āāā CLAUDE.md # AI assistant guidance
npm run dev - Start development servernpm run build - Build for productionnpm run preview - Preview production build locallynpm run deploy - Deploy to Cloudflare Workersnpm run check - Type check the projectclsx, tailwind-merge, tailwind-variantstw-animate-cssindex.html/api/*bun installbun run dev my-test-appThe CLI tool doesn't require a build step when using Bun, but you can create a compiled binary:
bun build ./bin/create-csvt.js --compile --outfile create-csvt
Contributions are welcome! Please feel free to submit issues and pull requests.
MIT
Happy coding! š
Made with ā¤ļø using Bun and TypeScript