Official Vite + React + TypeScript template for bodhi-js applications.
This template includes:
- ⚡ Vite 7 - Next generation frontend tooling
- ⚛️ React 19 - Latest React with modern patterns
- 📘 TypeScript - Strict mode enabled
- 🎨 Tailwind CSS v4 - Utility-first CSS with Vite plugin
- 🧩 shadcn/ui - Re-usable components built with Radix UI
- 🤖 bodhi-js-react - Local LLM integration
- 🔍 ESLint 9 - Flat config with TypeScript support
- 💅 Prettier - Integrated with ESLint
- 📝 EditorConfig - Cross-platform consistency
- 🎯 Strict TypeScript - Maximum type safety
- ✅ Vitest - Fast unit testing
- 🎭 Playwright - E2E testing
- 🔄 GitHub Actions - Automated CI pipeline
- 📦 GitHub Pages - Automated deployment
- 🤖 Dependabot - Automated dependency updates
Use with npx (when published):
# Coming soon
npx create-bodhi-js@latest my-appManual usage (for now):
# Clone this repository
git clone https://github.com/BodhiSearch/template-bodhi-react-vite.git my-app
cd my-app
# Process template manually or wait for create-bodhi-js CLItemplate/ # Template files with Handlebars variables
├── _gitignore # Renamed to .gitignore during scaffolding
├── _editorconfig # Renamed to .editorconfig during scaffolding
├── _prettierrc # Renamed to .prettierrc during scaffolding
├── _prettierignore # Renamed to .prettierignore during scaffolding
├── package.json # Parameterized with {{projectName}}
├── vite.config.ts # Parameterized with {{basePath}}
├── index.html # Parameterized with {{projectName}}
├── README.md # Parameterized template README
└── ... # Other project files
template.json # Template metadata and configuration
projectName- Project name (kebab-case)githubOrg- GitHub organization/usernamegithubPages- Enable GitHub Pages deployment (boolean)basePath- Base path for deployment (e.g.,/or/project-name/)pathSegmentsToKeep- SPA routing segments (0 for custom domain, 1 for GitHub Pages)
To modify this template:
- Edit files in
template/directory - Use Handlebars syntax for variables:
{{variableName}} - Use conditional blocks:
{{#if githubPages}}...{{/if}} - Update
template.jsonwith new variables or configuration - Test with
create-bodhi-jsCLI
MIT License - see LICENSE