How hemanth-sharma/assessment_test works
Redarky is a social-listening and B2B lead-generation backend. Users configure projects, keywords, and monitored sources; scraped posts enter through ingestion, are processed asynchronously for keyword and semantic matches and lead intent, then become posts and leads that can be reviewed or sent to integrations. The README documents this broad pipeline; the sampled source index supports key API, worker, matching, and persistence links. Some scraper internals and unsampled product routes are shown as capabilities, but their wiring is not inferred.
Main entry points: main.py FastAPI app · database.py PostgreSQL · matching/service.py Post matching · scraper/service.py Scraper API
Components 19
API and setup
- FastAPI app
redarky/api/app/main.py - Authentication
redarky/api/app/auth/router.py - Projects
redarky/api/app/projects/service.py - Keywords
redarky/api/app/keywords/service.py
Source collection
- Source registry
redarky/api/app/sources/service.py - Scraper API
redarky/api/app/scraper/service.py - Go scraper
redarky/scraper/internal/scraper/handler.go - Reddit client
redarky/scraper/internal/reddit/client.go - Post ingestion
redarky/api/app/ingestion/service.py
Matching pipeline
- Celery tasks
redarky/api/app/workers/matching_tasks.py - Post matching
redarky/api/app/matching/service.py - AI analysis
redarky/api/app/ai/lead_agent.py
Lead management
- Matched posts
redarky/api/app/posts/service.py - Lead management
redarky/api/app/leads/service.py - Outbound integrations
redarky/api/app/integrations/service.py - Verified feedback
redarky/api/app/feedback/service.py
Runtime and persistence
- PostgreSQL
redarky/api/app/database.py - Domain models
redarky/api/app/models.py
Other components
- User
Connections 26
- User → FastAPI app: uses
- FastAPI app → Authentication: registers routes
redarky/api/app/main.py - FastAPI app → Projects: registers routes
redarky/api/app/main.py - FastAPI app → Keywords: registers routes
redarky/api/app/main.py - FastAPI app → Source registry: registers routes
redarky/api/app/main.py - FastAPI app → Scraper API: registers routes
redarky/api/app/main.py - FastAPI app → Post ingestion: registers routes
redarky/api/app/main.py - Authentication → PostgreSQL: loads user
redarky/api/app/auth/router.py - Projects → PostgreSQL: reads and writes
redarky/api/app/projects/service.py - Keywords → PostgreSQL: reads and writes
redarky/api/app/keywords/service.py - Source registry → PostgreSQL: tracks subscriptions
redarky/api/app/sources/service.py - Scraper API → Source registry: loads active sources
redarky/api/app/scraper/service.py - Scraper API → Keywords: aligns keywords
redarky/api/app/scraper/service.py - Go scraper → Reddit client
- Go scraper → Post ingestion: sends scraped data
- Post ingestion → Celery tasks: dispatches matching
redarky/api/app/ingestion/router.py - Celery tasks → Post matching: runs matching
redarky/api/app/workers/matching_tasks.py - Post matching → AI analysis: uses lead agent
redarky/api/app/matching/service.py - Post matching → Outbound integrations: loads LLM config
redarky/api/app/matching/service.py - Post matching → Matched posts: creates matched posts
- Post matching → Lead management: creates leads
- Lead management → Outbound integrations: notifies channels
redarky/api/app/integrations/service.py - Matched posts → PostgreSQL: persists posts
redarky/api/app/posts/service.py - Lead management → PostgreSQL: persists leads
redarky/api/app/leads/service.py - Verified feedback → PostgreSQL: stores feedback
- Domain models → PostgreSQL: uses base
redarky/api/app/models.py