Skip to content

Xtrios09/Flocus-V2

Repository files navigation

🌸 Flocus V2

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/)


Screenshot From 2025-10-19 13-48-31 Screenshot From 2025-10-19 13-50-13 Screenshot From 2025-10-19 13-50-26 Screenshot From 2025-10-19 13-50-48 Screenshot From 2025-10-19 13-50-50 Screenshot From 2025-10-19 13-53-54 Screenshot From 2025-10-19 13-53-57 Screenshot From 2025-10-19 14-10-10 Screenshot From 2025-10-19 14-10-21 Screenshot From 2025-10-19 14-10-25 Screenshot From 2025-10-19 14-10-31 Screenshot From 2025-10-19 14-10-34 Screenshot From 2025-10-19 14-16-51 Screenshot From 2025-10-19 14-16-54 Screenshot From 2025-10-19 14-16-59 Screenshot From 2025-10-19 14-17-09 Screenshot From 2025-10-19 14-17-12 Screenshot From 2025-10-19 14-17-32 Screenshot From 2025-10-19 14-17-36

πŸš€ Features

  • πŸ•’ 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).

πŸ—οΈ Tech Stack

Layer Technology
Frontend React + TypeScript + Vite
Styling TailwindCSS
Validation Zod
Backend (Mock) Express (in-memory storage)
Database (optional) Drizzle ORM (schema only)

πŸ“‚ Project Structure

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

🧩 How It Works

Backend

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.

Frontend

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.

🧰 Installation

  1. Clone the repository

    git clone https://github.com/Xtrios09/Flocus-V2.git
    cd Flocus-V2
  2. Install dependencies

    npm install
  3. Run locally

    npm run dev

    By default, the frontend runs on http://localhost:5000.

βš™οΈ Environment Variables

Variable Description Example
PORT Express server port 5000
VITE_API_URL API base URL (for frontend) https://your-backend-url.com

πŸ“œ License

This project is licensed under the MIT License.


❀️ Credits

Developed by Abhijeet Prabhakar. Built with creativity, caffeine, and focus β˜•βœ¨

About

A Pomodoro web V2 app that helps users boost productivity through focused work sessions and meaningful breaks. It features customizable timers, task tracking, progress stats, and visual dashboards with charts and heatmaps that reveal focus patterns, total time spent, and productivity trends to optimize daily performance.

Topics

Resources

License

Stars

Watchers

Forks

Contributors

Languages