Imported from empire1-cloud/Lyrica3-pro (
AGENTS.md). Install upstream withnpx skills add empire1-cloud/Lyrica3-pro. Copyright stays with the author.
AGENTS.md — STOP. READ THIS BEFORE TOUCHING ANYTHING.
⛔ CRITICAL RULES FOR ALL AI AGENTS (Copilot, Cursor, Vercel, etc.)
- DO NOT create new branches without explicit human approval
- DO NOT modify
LyricaPublicLanding.tsx— this is the canonical landing page - DO NOT replace the landing page with placeholder/stub components
- DO NOT push directly to
main— all changes go through PRs - DO NOT modify
App.tsxrouting without explicit instruction - DO NOT add new deployment configurations or override
vercel.json
Architecture — DO NOT CHANGE
Landing page: LyricaPublicLanding.tsx → (click "Get Started") → LoginGate → MainApp (Black Box Studio)
Backend: FastAPI at lyrica3-backend-e2q5oemapa-uw.a.run.app
Frontend: Vercel (builds from frontend/, CRA)
Protected Files (DO NOT MODIFY without human approval)
frontend/src/LyricaPublicLanding.tsx— Landing page (1976 lines, black + neon pink)frontend/src/App.tsx— Main routingvercel.json— Deployment configAGENTS.md— This file
Services Overview
| Service | Path | Start command | Port |
|---|---|---|---|
| Backend (FastAPI) | backend/ |
uvicorn server:app --reload --port 8001 |
8001 |
| Frontend (React/CRA+CRACO) | frontend/ |
yarn start |
3000 |
Optional services (not required for core dev):
- Discord Bot (
discord_bot/) — requiresDISCORD_BOT_TOKEN - Empire1 Ledger Service (
empire1_ledger_service/) - Cultura Frontend/Backend (
cultura/)
Prerequisites
- MongoDB must be running on
localhost:27017before starting the backend. Quick start:mkdir -p /tmp/mongodb && mongod --dbpath /tmp/mongodb --bind_ip 127.0.0.1 --port 27017 --fork --logpath /tmp/mongodb/mongod.log - Backend
.env— copy frombackend/.env.exampletobackend/.env. The defaults work for local dev (MongoDB on localhost, dev JWT secret). - Frontend
.env.local— setREACT_APP_BACKEND_URL=http://localhost:8001.
Lint and Test
- Backend lint:
cd backend && ruff check . - Backend tests:
cd backend && python -m pytest tests/ -v - Frontend lint:
cd frontend && npx eslint src/ - Frontend tests:
cd frontend && npx react-scripts test --watchAll=false
Build Notes
- Frontend uses Create React App with CRACO config override
TSC_COMPILE_ON_ERROR=trueandDISABLE_ESLINT_PLUGIN=trueare set invercel.jsonso TS warnings don't block builds- Backend Dockerfile pulls
htdemucsmodel weights at build time — first build takes longer