Skip to content

SimonSaysGiveMeSmile/RealDevs

Repository files navigation

RealDevs - Team Momentum Analytics

Introduction

RealDevs is a powerful analytics tool designed for project team leads and startup founders who need a quick, daily overview of their team's performance. Whether you're managing a growing engineering team or tracking progress across multiple projects, RealDevs provides the insights you need to spot potential risks, monitor project progress, and compare team member contributionsβ€”all at a glance.

Key Capabilities

  • πŸ“Š Daily Performance Overview: Get an instant snapshot of your team's productivity with comprehensive dashboards that track commits, pull requests, and contributions across all your repositories.

  • 🚨 Risk Detection: Automatically identify potential issues before they become problemsβ€”from inactive team members to single points of failure and stale repositories.

  • πŸ“ˆ Progress Monitoring: Track the momentum of each project with visual analytics, trend indicators, and contribution breakdowns by repository and team member.

  • πŸ‘₯ Team Comparison: Easily compare progress between team members with detailed contributor rankings, activity metrics, and performance trends.

Dashboard Overview

Your Team's Productivity at a Glance

Dashboard

The main dashboard provides a comprehensive view of your team's activity, including:

  • Total code commitment trends with visual charts
  • Internal vs external contribution splits
  • Top contributors with performance metrics
  • Daily commit activity over time
  • Risk flags with severity indicators
  • Repository-level contribution breakdowns

Contributors Analysis

Contributors

The contributors page offers detailed insights into individual team member performance:

  • Ranked contributor list sorted by average trend
  • Commit and PR statistics for each team member
  • Internal vs external contributor classification
  • Performance trends and momentum scores
  • Quick filtering and sorting options

Phase 1 MVP: Local-first GitHub activity tracker with web dashboard. Monitor team momentum, identify risks, and generate weekly recaps β€” all without surveillance.

Features

  • πŸ” Local-first: Runs entirely on your laptop with Docker or standalone
  • πŸ“Š Team Momentum Metrics: Track commits, PRs, issues with explainable scoring
  • 🚨 Risk Flags: Identify bottlenecks, inactivity, single points of failure
  • πŸ“ Weekly Recaps: Auto-generated neutral summaries
  • 🎨 Modern UI: Dark mode, frosted glass effects, developer-oriented design
  • πŸ”’ Privacy: PAT stored encrypted locally, no external data transmission

Quick Start

Prerequisites

  • Node.js 24 LTS
  • Python 3.14.2
  • Docker & Docker Compose (optional)

Option A: Docker Compose (Recommended)

# Clone and run
make docker-up

# Access at http://localhost:3000

Option B: Manual (Two Terminals)

Terminal 1 - Backend:

# Option 1: Using Make (from project root)
make api-dev

# Option 2: Manual setup
cd apps/api
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
pip install -r requirements.txt
flask run --host=0.0.0.0 --port=8000

Terminal 2 - Frontend:

# Option 1: Using Make (from project root)
make web-dev

# Option 2: Manual setup
cd apps/web
npm install
npm run dev

Access at http://localhost:3000

GitHub PAT Setup

  1. Go to GitHub β†’ Settings β†’ Developer settings β†’ Personal access tokens β†’ Fine-grained tokens
  2. Create new token with read-only permissions:
    • βœ… Repository contents (read)
    • βœ… Pull requests (read)
    • βœ… Issues (read)
    • βœ… Metadata (read)
  3. Copy token and paste in RealDevs Credentials page

Project Structure

RealDevs/
β”œβ”€β”€ apps/
β”‚   β”œβ”€β”€ api/          # Flask backend
β”‚   β”‚   β”œβ”€β”€ app/
β”‚   β”‚   β”‚   β”œβ”€β”€ api/
β”‚   β”‚   β”‚   β”œβ”€β”€ models/
β”‚   β”‚   β”‚   β”œβ”€β”€ services/
β”‚   β”‚   β”‚   └── utils/
β”‚   β”‚   β”œβ”€β”€ tests/
β”‚   β”‚   └── requirements.txt
β”‚   └── web/          # Next.js frontend
β”‚       β”œβ”€β”€ src/
β”‚       β”‚   β”œβ”€β”€ app/
β”‚       β”‚   β”œβ”€β”€ components/
β”‚       β”‚   β”œβ”€β”€ lib/
β”‚       β”‚   └── types/
β”‚       └── package.json
β”œβ”€β”€ docs/
β”œβ”€β”€ docker-compose.yml
β”œβ”€β”€ Makefile
└── README.md

Available Commands

make help              # Show all commands
make docker-up         # Start with Docker Compose
make docker-down       # Stop Docker services
make docker-logs       # View logs
make api-dev           # Run Flask dev server
make web-dev           # Run Next.js dev server
make test              # Run all tests
make clean             # Clean all build artifacts

Configuration

Backend (.env in apps/api/)

FLASK_ENV=development
HIDEVS_SECRET_KEY=your-secret-key-here
DATABASE_URL=sqlite:///./realdevs.db

Frontend (.env.local in apps/web/)

NEXT_PUBLIC_API_URL=http://localhost:8000/api

Architecture

Backend (Flask)

  • REST API: Clean endpoint design with Pydantic schemas
  • GitHub Integration: httpx client with pagination & rate limit handling
  • Storage: SQLite with SQLAlchemy 2 + Alembic migrations
  • Security: Fernet encryption for PAT storage

Frontend (Next.js)

  • App Router: React 19.2 with TypeScript
  • Data Fetching: TanStack Query for caching & optimistic updates
  • UI: shadcn/ui components with Tailwind CSS
  • Design: Dark mode, frosted glass, gradient effects

Pages

  1. Dashboard: Commitment trends, internal vs external activity, top contributors, red flags
  2. Credentials: PAT management, team member configuration
  3. Settings: Red flag thresholds, notification preferences

Security Notes

  • βœ… PAT encrypted at rest with Fernet (derived from HIDEVS_SECRET_KEY)
  • βœ… Never logged or exposed to frontend after submission
  • βœ… All data stored locally in SQLite
  • βœ… "Delete & Reset" button wipes all data
  • ⚠️ For production deployment, implement proper secrets management

Deployment

Vercel Deployment (Recommended)

Deploy to Vercel in minutes! See:

Your project is pre-configured for Vercel deployment with Flask backend + Next.js frontend on the same domain.

Self-Hosting

See docs/DEPLOYMENT.md for self-hosting options.

Warning: Phase 1 is designed for local-first use. Hosting PAT flow requires additional security measures.

Development

Run Tests

# Backend tests
cd apps/api
pytest

# Frontend tests (optional)
cd apps/web
npm test

Database Migrations

cd apps/api
alembic revision --autogenerate -m "description"
alembic upgrade head

Roadmap

  • Phase 1 (Current): Local-first with PAT
  • Phase 2: GitHub OAuth, multi-user support
  • Phase 3: LLM-powered insights, Slack integration
  • Phase 4: SaaS offering with team dashboards

Contributing

RealDevs is built for transparency. Contributions welcome!

License

MIT License - see LICENSE


Built with ❀️ for engineering teams who value trust over surveillance. 12

About

A tool for founders and team leads to understand dev team productivity at a glance.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors