| 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 | | |