The Ultimate Senior Boilerplate for Modern React Applications
Built with the tools and technologies:
React Fluksos is a meticulously crafted, enterprise-grade React template engineered for performance, type safety, and impeccable Developer Experience (DX).
Designed as a definitive starting point for modern Single Page Applications (SPAs) and fast landing pages, it completely abandons legacy tools like ESLint and Prettier in favor of the blazing-fast Rust-based Biome toolchain.
This project aims to eliminate the painful configuration phase of modern frontend development. It enforces strict architectural boundaries, utilizes the latest major versions of all core tools, and includes a pre-configured, battle-tested pre-commit hook pipeline.
It is the ultimate "Blank Canvas" for Senior Developers.
- Blazing Fast Builds: Powered by Vite 8 and the official
@vitejs/plugin-react(Rolldown-ready). - Absolute Type Safety: TypeScript 6.0 in Strict Mode, combined with
@tanstack/react-routerfor 100% type-safe file-based routing. - Modern Styling Engine: Fully integrated with Tailwind CSS v4 (no PostCSS required) and Shadcn/ui CLI.
- State & Data Management: Pre-configured
AppQueryProvider(TanStack Query) with optimized caching strategies, plus a pre-wiredAxiosinstance for API consumption. - Rock-Solid DX: Replaces ESLint/Prettier with Biome for instant formatting and linting. Enforces code quality via Husky
pre-commithooks andlint-staged. - Built-in Theme Provider: Elegant Dark/Light mode switching using pure Context API and Tailwind v4 variables.
- Robust Error Handling: Global Error Boundaries and 404 Pages pre-configured at the routing root.
This project demands modern tooling to run locally:
- Node.js: v20 or higher.
- Package Manager: Strictly
pnpm(v9 or v10). NPM and Yarn will be rejected by engine locking.
Clone the repository and set it up as your own:
git clone https://github.com/pasqualinigui/reactfluksos.git my-new-project
cd my-new-projectInstall the dependencies:
pnpm installConfigure environment variables:
cp .env.example .envRun the project locally in development mode:
pnpm run devsrc/
βββ components/
β βββ layout/ # Global layout wrappers
β βββ providers/ # Context providers (Theme, Query)
β βββ ui/ # Shadcn/ui raw components
βββ features/ # Domain-driven modules
βββ lib/ # Utility functions and API instances (Axios)
βββ routes/ # TanStack file-based routes
βββ services/ # API integration layers
βββ store/ # Global state (Zustand)
pnpm run dev: Starts the Vite development server.pnpm run build: Compiles the application for production (dist/).pnpm run typecheck: Runs strict TypeScript validation without emitting files.pnpm run lint: Analyzes the codebase using Biome.pnpm run lint:fix: Automatically fixes linting errors and formats the code.pnpm run test: Runs the Vitest test suite.
Distributed under the MIT License. See LICENSE for more information.