CyberSync / README.md
E5K7's picture
Deploy LonelyTrack backend to HF Spaces
4041d2a
---
title: CyberSync - LonelyTrack Backend
emoji: 🧠
colorFrom: purple
colorTo: blue
sdk: docker
app_port: 7860
pinned: false
---
# LonelyTrack – AI-Powered Learning Consistency Agent
Backend API for the LonelyTrack adaptive study planner.
## Endpoints
- `POST /generate-plan` β€” Generate an AI-powered study schedule
- `POST /update-status` β€” Mark a day as completed/missed
- `POST /generate-tutorial` β€” Get an AI tutorial for a topic
- `GET /plan/{plan_id}` β€” Fetch a specific plan
- `GET /history/{user_id}` β€” Get all plans for a user
- `DELETE /plan/{plan_id}` β€” Delete a plan
## Setup
This Space requires the following **Secrets** (Settings β†’ Secrets):
| Secret | Description |
|---|---|
| `OPENROUTER_API_KEY` | Your OpenRouter API key |
| `FIREBASE_SERVICE_ACCOUNT_KEY_JSON` | Full JSON content of your Firebase service account key |