Adaptive study planning, review workflows, and analytics for modern learners.
SaaS em construcao com foco em produtividade academica, multi-tenant foundation e operacao pronta para escalar.
StudyOS is being built as a focused learning operating system:
- organize subjects, tasks, and sessions in one workflow
- generate adaptive plans based on available study time
- run review loops with spaced repetition
- capture analytics from real study behavior
- support multi-tenant SaaS growth from the start
The current codebase is already structured like a product, not a prototype throwaway.
StudyOS is in the "SaaS in construction" phase.
- Core auth is live with refresh token rotation, logout, email verification, and password reset.
- Multi-tenant foundations are implemented through organizations and memberships.
- Study workflows already connect planner, reviews, sessions, and analytics.
- Local developer experience is automated with scripts, migrations, and health checks.
- Deployment flow is aligned for Railway on the backend and Vercel on the frontend.
Live UI snapshots captured from the current build.
To regenerate these screenshots locally:
cd frontend
npm run capture:readme| Layer | Stack | Notes |
|---|---|---|
| Frontend | Next.js 15, React 18 | App Router, auth flows, dashboard, planner, review, analytics |
| Backend | FastAPI, SQLAlchemy, Alembic | JWT auth, multi-tenant APIs, rate limiting, email actions |
| Database | PostgreSQL | Local via Docker Compose, production via Railway |
| Testing | Pytest, Playwright | Backend validation plus E2E auth and workflow coverage |
| Operations | Railway, Vercel | Environment-based deploys, migration-aware startup |
- register and login with rotating refresh token sessions
- email verification and password reset flows
- personal workspace provisioning during signup
- organization-aware access control through
X-Organization-Id - CRUD for study entities and adaptive planner routes
- review answers feeding session finalization and analytics
- SaaS-oriented deployment docs, staging runbook, and production readiness checklist
StudyOS
|- frontend/ Next.js application
|- backend/ FastAPI API, models, services, migrations
|- scripts Local startup and shutdown helpers
|- docs Deployment and operational references
Core runtime flow:
- Frontend authenticates against the FastAPI backend.
- Backend provisions and scopes data per organization.
- Study actions generate analytics and operational events.
- Railway runs the API and migrations, while Vercel serves the product UI.
- Frontend:
http://127.0.0.1:3000 - Backend:
http://127.0.0.1:8080 - Healthcheck:
http://127.0.0.1:8080/health - PostgreSQL via Docker Compose:
127.0.0.1:5433
The fastest path is the automated local stack:
.\start-prod-local.ps1What the script does:
- checks whether Docker Desktop is available
- starts the local Postgres service
- applies Alembic migrations
- starts the API and worker processes
- waits until
GET /healthresponds successfully
Useful commands:
.\start-prod-local.ps1 -ForceRestart
.\stop-prod-local.ps1cd backend
python -m venv .venv
.venv\Scripts\activate
pip install -r requirements.txt
copy .env.example .env
python -m alembic upgrade head
python -m uvicorn app.main:app --reload --host 127.0.0.1 --port 8080cd frontend
copy .env.example .env.local
npm install
npm run devfrontend/.env.example already targets the local API on http://127.0.0.1:8080.
cd backend
python -m pytest -qcd frontend
npx playwright install chromium
npm run test:e2eThe current automated coverage already exercises:
- auth register/login flows
- token refresh and logout scenarios
- study session completion
- review answer workflow
- organization member administration
StudyOS is structured for:
- Railway on the backend
- Vercel on the frontend
Start here:
Operational references:
The project is already moving beyond MVP toward a more complete SaaS foundation.
Current focus:
- stable auth and workspace onboarding
- multi-tenant data model and organization scoping
- analytics-driven study experience
- cleaner deployment and operational discipline
Next layers:
- stronger billing and plan enforcement
- richer observability and incident response
- more mature CI/CD and backup strategy
- AI-assisted planning with reliable fallback behavior
- backend/README.md: API setup, endpoints, and backend defaults
- frontend/README.md: frontend setup, env behavior, and E2E notes
- DEPLOYMENT.md: Railway and Vercel configuration
- RUNBOOK_STAGING.md: incident handling for staging and deploy issues
- PRODUCTION_READINESS_CHECKLIST.md: maturity backlog toward public production
StudyOS is not being built as a static study tracker. It is being shaped as a learning SaaS platform with product foundations, operational discipline, and room to evolve into a serious academic productivity product.






