Branch
Track, gamify, and share your focus.
Overview
Branch is a gamified productivity tracker that measures and improves how people work.
Team
- Ashia – LLMs / Backend (AI insights, summaries, productivity models)
- Dan – Frontend / Backend (integration, data APIs, dashboards)
- Theo – Frontend (UI/UX, gamification, feed)
- Suvas – Backend (database, extension data ingestion, leaderboards)
Architecture
dan/
├── web/ # Next.js web application
├── extension/ # Chrome browser extension
├── backend/ # Firebase Cloud Functions
└── shared/ # Shared types and utilities
Tech Stack
- Frontend: Next.js 14, TailwindCSS, React Query
- Extension: Chrome Manifest v3
- Backend: Firebase (Firestore, Functions, Auth)
- AI: OpenAI GPT-4o-mini, Hugging Face
- Hosting: Vercel (web), Firebase (backend)
Getting Started
Prerequisites
- Node.js 18+
- npm or yarn
- Firebase CLI
- Chrome browser (for extension development)
Installation
- Clone the repository
git clone <repo-url>
cd DAN
- Install dependencies
- Set up Firebase
cd backend
firebase login
firebase init
- Configure environment variables
cp .env.example .env.local
# Add your Firebase and OpenAI credentials
- Run development servers
```bash
Web app
cd web
npm run dev
Backend functions
cd backend
npm run serve
```
- Load extension in Chrome
- Navigate to
chrome://extensions/
- Enable “Developer mode”
- Click “Load unpacked”
- Select the
extension/ directory
Development Roadmap
Week 1: Setup ✅
Week 2: Extension
Week 3: Dashboard
Week 4: Gamification
Week 5: AI Integration
Week 6: Polish & Deploy
Features
Core Features (MVP)
- ✅ Browser extension for automatic session tracking
- ✅ Real-time study session dashboard
- ✅ XP, streaks, and badges
- ✅ Friend feed and leaderboards
- ✅ AI-generated summaries and insights
- ✅ Weekly summary reports
Future Features
- Study challenges and duels
- Virtual points and betting system
- Calendar integration
- Mobile app
- Team study rooms
Privacy
- We collect only metadata (domain, title, duration, activity metrics)
- No content or keystroke text is saved
- Opt-in consent for AI analytics
- Data export and deletion available
License
MIT
For questions or support, reach out to the team.