How sharanmankala/polyphony works
Polyphony’s implemented product is an authenticated creative workspace backed by a small FastAPI foundation: users create projects and sessions, upload image references, and request deterministic local image signals. The frontend calls the backend API; backend routes own validation, authorization, persistence and filesystem actions. The README also describes future intelligence and editing directions as design vision, not implemented runtime components. Relationships are limited to calls or data flows shown in excerpts or documented in the README; unsampled route details are not inferred.
Main entry points: main.py FastAPI routes · db_models.py Domain tables · page.tsx Creative workspace · database.py Database sessions
Components 16
Workspace
- Creative workspace
frontend/src/app/page.tsx
API and domain
- FastAPI routes
backend/app/main.py - Request and response models
backend/app/models.py - Authentication
backend/app/auth.py - App and upload settings
backend/app/config.py - Project operations
backend/app/main.py - Session operations
backend/app/main.py - Image asset lifecycle
backend/app/main.py
Persistence
- Database sessions
backend/app/database.py - Domain tables
backend/app/db_models.py - PostgreSQL
- Local image files
backend/assets/images
Image analysis
- Pixel signal analyzer
backend/app/image_analysis.py - Analysis records
backend/app/db_models.py - Vision-model gateway (planned)
Other components
- Creative user
Connections 19
- Creative user → Creative workspace: uses
README.md - Creative workspace → FastAPI routes: requests API
README.md - FastAPI routes → Request and response models: validates and responds
README.md - FastAPI routes → Authentication: authenticates
backend/app/main.py - FastAPI routes → Project operations: routes project work
README.md - FastAPI routes → Session operations: routes session work
README.md - FastAPI routes → Image asset lifecycle: routes asset work
README.md - FastAPI routes → Database sessions: gets database session
backend/app/main.py - Database sessions → PostgreSQL: opens sessions
backend/app/database.py - Domain tables → Database sessions: uses base
backend/app/db_models.py - Project operations → Domain tables: reads and writes
backend/app/main.py - Session operations → Domain tables: reads and writes
backend/app/main.py - Image asset lifecycle → Domain tables: reads and writes
backend/app/main.py - Image asset lifecycle → App and upload settings: checks upload limits
README.md - Image asset lifecycle → Local image files: stores and removes
README.md - Image asset lifecycle → Pixel signal analyzer: analyzes image
backend/app/main.py - Image asset lifecycle → Analysis records: persists signals
backend/app/main.py - Pixel signal analyzer → Image asset lifecycle: returns signals
README.md - Creative workspace → Vision-model gateway (planned): no current integration
README.md