A modern web application starter template using Bun, React 19, TanStack Router, and TailwindCSS. No Vite required!
- β‘ Bun - Fast JavaScript runtime and package manager
- βοΈ React 19 - Latest React version with improved performance
- π§ TanStack Router - Type-safe file-based routing
- π¨ TailwindCSS v4 - Utility-first CSS framework
- π HMR - Hot Module Replacement for quick development
- π§° TypeScript - Type safety for better development experience
- π Biome - Fast code formatter and linter
- Bun installed on your machine
# Clone the repository
git clone https://github.com/mikndotdev/bunstack.git
cd bun-react-template
# Install dependencies
bun install
Start the development server with hot reloading:
bun dev
Build the application for production:
bun build
This will generate a dist/
directory containing the production build. Set this as the build output directory in the static site hosting service of your choice.
Preview the production build locally:
bun preview
βββ src/
β βββ assets/ # Static assets
β βββ components/ # Reusable components
β βββ routes/ # File-based routes
β βββ index.tsx # Application entry point
βββ build.ts # Build script (required as the Tailwind plugin cannot be accessed via the CLI)
βββ package.json
βββ tsconfig.json
- Partly inspired by Bunfun