Flocus V2 is a modern productivity and focus-tracking web app built with React, Vite, and TailwindCSS.
It provides a minimal yet gamified way to manage tasks, track focus sessions, and visualize your productivity streaks β all from your browser.
(Demo here: https://flocus-v2.onrender.com/)
- π Focus Sessions: Start and complete "work" or "break" sessions with XP and coin rewards.
- π§ Stats Tracking: View total sessions, focus minutes, and streak data.
- π§Ύ Task Management: Create to-dos with categories, due dates, and priorities.
- π¨ Customizable Themes: Light, Dark, Cyberpunk, Nature, and Minimal modes.
- πΎ Local Memory Backend: Uses in-memory storage for testing (no real database).
| Layer | Technology |
|---|---|
| Frontend | React + TypeScript + Vite |
| Styling | TailwindCSS |
| Validation | Zod |
| Backend (Mock) | Express (in-memory storage) |
| Database (optional) | Drizzle ORM (schema only) |
FLOCUS-V2/
βββ attached_assets/ # App images and icons
βββ client/ # Frontend source code
β βββ public/ # Static files
β βββ src/ # React components and hooks
βββ server/ # Express backend (in-memory)
βββ shared/ # Shared schemas and types
βββ vite.config.ts # Vite configuration
βββ tailwind.config.ts # TailwindCSS setup
βββ tsconfig.json # TypeScript configuration
βββ package.json
The backend (/server) is a lightweight Express server that simulates data persistence in memory using JavaScript Map() objects:
this.profiles = new Map();
this.sessions = new Map();No real database is used β the data resets when the server restarts.
The frontend (/client) is built with Vite and React. It fetches mock API routes from the local Express server (during development) or can be configured to use browser storage for persistence when deployed.
-
Clone the repository
git clone https://github.com/Xtrios09/Flocus-V2.git cd Flocus-V2 -
Install dependencies
npm install
-
Run locally
npm run dev
By default, the frontend runs on http://localhost:5000.
| Variable | Description | Example |
|---|---|---|
PORT |
Express server port | 5000 |
VITE_API_URL |
API base URL (for frontend) | https://your-backend-url.com |
This project is licensed under the MIT License.
Developed by Abhijeet Prabhakar. Built with creativity, caffeine, and focus ββ¨