How raghavg189/flyrank-ai works
FlyRank-AI is a collection of internship projects, not one integrated product: an API for authentication, task management, and job classification; an asynchronous report service; and a standalone site-scraper project. The shown workflows run from API endpoints through their service or LLM logic to repositories or external providers, and from report submission through Inngest dispatch. The site scraper is present in the tree, but its behavior and connections are not evidenced by the provided excerpts.
Main entry points: client.py LLM client · main.py API application · auth_routes.py Auth endpoints · routes.py Report endpoints
Components 26
Assignment API
- API application
api_endpoint_assignment/src/main.py - Auth endpoints
api_endpoint_assignment/src/routes/auth_routes.py - Auth validation
api_endpoint_assignment/src/services/auth_services.py - Auth repository
api_endpoint_assignment/src/repositories/auth_respository.py - Supabase Auth
- Token verification
api_endpoint_assignment/src/middleware/verification.py - Task endpoints
api_endpoint_assignment/src/routes/tasks_routes.py - Task services
api_endpoint_assignment/src/services/tasks_services.py - Task repository
api_endpoint_assignment/src/repositories/tasks_repository.py - Tasks database
api_endpoint_assignment/src/repositories/tasks_repository.py - Classification endpoint
api_endpoint_assignment/src/routes/llm_routes.py - LLM client
api_endpoint_assignment/src/llm/client.py - LLM provider
- Classification prompt
api_endpoint_assignment/prompts/your-job-v1.md - Output schema
api_endpoint_assignment/src/llm/schema.py - Parse and repair
api_endpoint_assignment/src/llm/parse_repair.py - Error handlers
api_endpoint_assignment/src/middleware/error_handler.py
Background Reports
- Report application
background_job/src/main.py - Report endpoints
background_job/src/routes/routes.py - Report store
background_job/src/core/report_store.py - Inngest client
background_job/src/core/inngest_client.py - Inngest
- Report functions
background_job/src/functions/inngest_functions.py
Site Scraper
- Site scraper
site_scraper/src/main.py
Other components
- API caller
- Report caller
Connections 28
- API caller → Auth endpoints: calls auth
api_endpoint_assignment/src/routes/auth_routes.py - API caller → Task endpoints: requests tasks
- API caller → Classification endpoint: submits description
api_endpoint_assignment/src/routes/llm_routes.py - API application → Auth endpoints: registers
api_endpoint_assignment/src/main.py - API application → Task endpoints: registers
api_endpoint_assignment/src/main.py - API application → Classification endpoint: registers
api_endpoint_assignment/src/main.py - API application → Error handlers: registers handlers
api_endpoint_assignment/src/main.py - Auth endpoints → Auth validation: delegates to
api_endpoint_assignment/src/routes/auth_routes.py - Auth endpoints → Token verification: checks tokens
api_endpoint_assignment/src/routes/auth_routes.py - Auth validation → Auth repository: calls
api_endpoint_assignment/src/services/auth_services.py - Token verification → Auth repository: verifies token
api_endpoint_assignment/src/middleware/verification.py - Auth repository → Supabase Auth: uses auth
api_endpoint_assignment/src/repositories/auth_respository.py - Task endpoints → Task services: delegates to
api_endpoint_assignment/src/routes/tasks_routes.py - Task services → Task repository: calls
api_endpoint_assignment/src/services/tasks_services.py - Task repository → Tasks database: reads and writes
api_endpoint_assignment/src/repositories/tasks_repository.py - Classification endpoint → LLM client: calls
api_endpoint_assignment/src/routes/llm_routes.py - LLM client → LLM provider: requests completion
api_endpoint_assignment/src/llm/client.py - LLM client → Classification prompt: loads prompt
api_endpoint_assignment/src/llm/client.py - LLM client → Parse and repair: parses output
api_endpoint_assignment/src/llm/client.py - LLM client → Output schema: validates output
api_endpoint_assignment/src/llm/client.py - Report caller → Report endpoints: requests report
background_job/src/routes/routes.py - Report application → Report endpoints: registers
background_job/src/main.py - Report application → Report functions: serves functions
background_job/src/main.py - Report endpoints → Report store: gets and updates
background_job/src/routes/routes.py - Report endpoints → Inngest client: sends event
background_job/src/routes/routes.py - Inngest client → Inngest: configures client
background_job/src/core/inngest_client.py - Report functions → Inngest client: uses client
background_job/src/functions/inngest_functions.py - Report functions → Report store: uses store
background_job/src/functions/inngest_functions.py