A modern, multi-user SaaS platform for developers.
Features • Tech Stack • Getting Started • Architecture • Commands
Devfolio OS is an all-in-one developer portfolio and productivity platform. Built from the ground up as a multi-user SaaS, it provides developers with the tools to sync their coding platform statistics, build interactive roadmaps with AI, craft smart resumes, and compete on global leaderboards.
- Authentication: Secure email/password login and seamless GitHub OAuth integration via HTTPOnly JWTs.
- Platform Sync: Connect to external platforms (GitHub, LeetCode, etc.) and auto-sync your problem-solving statistics and streaks using background workers.
- Global Leaderboards: Rank developers dynamically using a custom Developer Score algorithm based on synchronized activity.
- Social Networking: Send friend requests, build connections, and track mutual connections.
- Smart Resumes: A drag-and-drop resume builder complete with version history (append-only JSONB versioning) and PDF export capabilities.
- AI Advisor: Engage with an LLM-powered assistant to generate personalized, multi-week learning roadmaps or to conduct mock interviews.
Frontend
- Next.js 16 (App Router & Turbopack)
- React & Tailwind CSS
- Zustand (State Management)
Backend & Data
- FastAPI (Python Async API)
- PostgreSQL 15 & SQLAlchemy (Async ORM)
- Alembic (Database Migrations)
Background & Infrastructure
Follow these steps to get Devfolio OS running on your local machine.
Ensure you have the following installed on your machine:
- Docker Desktop
- Git / Bash Terminal (WSL/Git Bash if on Windows)
Clone the repository and set up your environment variables:
git clone https://github.com/your-org/devfolio-os.git
cd devfolio-os
# Create your local environment file
cp .env.example .env.localNote: Open
.env.localand add your LLM API Keys (Gemini/Anthropic) to test the AI Advisor features.
We provide an all-in-one bash utility to manage the entire application lifecycle. Run:
bash start_local.shWhat this script does automatically:
- Verifies your Docker installation and checks if required ports are free.
- Builds the
frontend,backend, andceleryimages. - Provisions the PostgreSQL database and Redis instance.
- Waits for health checks and automatically runs Alembic Database Migrations.
Once the launch sequence completes, access the system at:
- Frontend Dashboard: http://localhost:3000
- Backend API: http://localhost:8000
- Swagger API Docs: http://localhost:8000/docs
Managing the application lifecycle is easy with the included utility script:
| Command | Description |
|---|---|
bash start_local.sh start |
Start all services (default behavior). |
bash start_local.sh start --fresh |
Nuke the database, wipe all images, and perform a full cold rebuild. |
bash start_local.sh stop |
Gracefully stop all services (retains database state). |
bash start_local.sh restart |
Stop and start services. |
bash start_local.sh logs |
Tail the Docker Compose logs for all services. |
bash start_local.sh shell backend |
Drop into an interactive shell inside the specified container. |
bash start_local.sh db |
Drop into an interactive PostgreSQL psql shell. |
bash start_local.sh migrate |
Manually auto-generate and apply Alembic migrations. |
To modify database models or apply migrations directly in the backend container:
- Generate a migration:
docker compose exec backend alembic revision --autogenerate -m "description" - Apply migrations:
docker compose exec backend alembic upgrade head
Devfolio OS uses a Domain-Driven Design (DDD) approach in the backend for strict modularity, organized around the following bounded contexts:
users: Core identity, authentication, and JWT handling.platforms: Background integration connectors for LeetCode and GitHub.leaderboard: Caches and ranks the Developer Score.social: Mutual connections and friend requests.notifications: WebSocket and long-polling ready events powered by Celery Beat.resumes: Managing resume metadata and its heavily versioned JSON structures.ai/roadmaps: Specialized domains for communicating with Large Language Models.
All state transitions and domain logic are thoroughly abstracted away from Routers and Repositories into dedicated Service classes, ensuring long-term maintainability and simple unit testing.