Skip to content

PATEL-KRISH-0/vite-spark

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚡ Vite Spark

Lightning-fast full-stack project scaffolding — CLI & VS Code Extension

npm version npm downloads VS Code Marketplace License: MIT

Create React frontends, Node.js backends, and full-stack monorepos in seconds — with Tailwind CSS, TypeScript, authentication, routing, and more — all pre-configured.


🚀 Quick Start

# npx (no install needed)
npx vite-spark my-app

# React + TypeScript + Tailwind + install deps
npx vite-spark my-app --stack react-ts --twd -i

# Full-stack (React + Node.js backend)
npx vite-spark my-saas --with-backend --stack react-ts --twd -i

# Backend only
npx vite-spark my-api --backend-only -i

# Interactive mode (asks everything)
npx vite-spark -q

📦 What's in This Repo

This is a mono-repo containing two packages:

npm/ — CLI Package (vite-spark)

The command-line tool published to npm. Scaffold complete projects from the terminal.

Feature Detail
Frontend stacks React, React + TypeScript, Vanilla JS
Frontend templates basic, auth, CRUD, dashboard, multi-step-form, router 7, SPA, canvas
Backend templates Node auth, Node auth + S3 files, Node full
Add-ons Tailwind CSS v4, TypeScript, Vite config, Git init, auto-install
Full-stack Monorepo with root package.json + concurrent dev scripts
npm install -g vite-spark   # global install
vite-spark my-app           # use anywhere

vscode-ext/ — VS Code Extension (Vite Spark)

A beautiful GUI inside VS Code to configure and launch vite-spark without touching the terminal.

Feature Detail
Visual project builder Pick stack, template, and add-ons with a click
Settings panel Persistent defaults for your workflow
One-click create Runs the CLI in an integrated terminal
Marketplace patelkrish0.vite-spark-gui

Install from the VS Code Marketplace by searching "Vite Spark"


🗺️ Repository Structure

ViteSpark/
├── npm/                   # CLI — published to npm as "vite-spark"
│   ├── index.js           # CLI entry point
│   ├── templets/          # All project templates
│   │   ├── frontend/
│   │   │   ├── React/     # basic, auth, crud, dashboard, multi-step-form, router 7
│   │   │   └── Javascript/# basic, basic-with-folders, canvas, spa
│   │   └── backend/
│   │       └── Node/      # auth, auth-with-files, full
│   ├── README.md          # Full CLI documentation
│   └── package.json
│
├── vscode-ext/            # VS Code Extension — "Vite Spark" on the marketplace
│   ├── extension.js       # Extension entry point
│   ├── webview/           # GUI panels (HTML/CSS/JS)
│   ├── README.md          # Extension documentation
│   └── package.json
│
├── LICENSE                # MIT — applies to the entire repo
└── README.md              # This file

🎯 CLI Flags Reference

npx vite-spark <project-name> [flags]

Flags:
  --stack <react|react-ts|vanilla>   Frontend stack (default: react)
  -t, --template <name>              Template name
  --twd                              Add Tailwind CSS v4
  --vite                             Add Vite config (vanilla only)
  --lang-ts                          Add TypeScript (vanilla only)
  -g, --git                          Initialize git repo
  -i, --install                      Auto-install dependencies
  -s, --start                        Start dev server after install
  -y, --yes                          Skip all prompts (use defaults)
  --with-backend                     Scaffold frontend + backend monorepo
  --backend-only                     Scaffold backend only
  -q                                 Interactive mode (asks all questions)

📸 Templates Overview

Frontend — React

Template Includes
basic React 19 + Vite, clean slate
auth JWT auth, Axios, React Router, toast notifications
crud Full CRUD UI, Axios, React Router, toast
dashboard Admin layout, charts, sidebar, React Router
multi-step-form Step wizard, shared state, per-step validation
router 7 React Router v7, nested layouts, route loaders

Frontend — Vanilla JS

Template Includes
basic Single HTML + CSS + JS
basic-with-folders Organised css/ and js/ directories
canvas Game loop, HiDPI canvas, input + touch tracking
spa Hash-based router, dark/light modes, skeleton loaders

Backend — Node.js

Template Includes
auth Express 5, MongoDB, JWT, refresh tokens, roles, soft-delete
auth-with-files All of auth + S3 file uploads (Multer + Sharp)
full All of the above + admin panel endpoints

🤝 Contributing

  1. Fork the repo
  2. Create a branch: git checkout -b feature/my-feature
  3. Make your changes and test them
  4. Commit: git commit -m "feat: add my feature"
  5. Push: git push origin feature/my-feature
  6. Open a Pull Request

📄 License

MIT © Krish Patel — see LICENSE for details.


👨‍💻 Developer & Contact

Created with ❤️ by Krish Patel


If Vite Spark saved you time, give it a ⭐ on GitHub!

GitHub stars

About

No description, website, or topics provided.

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors