How kalisingh2277/argus_competitor_analysis works
Argus monitors competitor pages, detects and classifies meaningful changes, scores their business impact against a business profile, and surfaces intelligence in a web UI and Notion CRM; scheduled email digests and a Chrome extension support that workflow. The README describes the heavy pipeline as separate from the always-on API, while the source excerpts show its stages and manual trigger. Some service implementations and route handlers were not excerpted, so those connections are included only where the README or source index supports them.
Main entry points: database.py Postgres and pgvector · main.py FastAPI application · ingest.py Snapshot and change detection · pipeline.py Pipeline orchestrator
Components 33
Web experience
- Chrome extension
extension/popup.js - React application
frontend/src/main.tsx - Dashboard and feed
frontend/src/pages/Dashboard.tsx - Competitor detail
frontend/src/pages/CompetitorDetail.tsx - Change cards
frontend/src/components/ChangeCard.tsx - Typed API client
frontend/src/lib/api.ts
API and control
- FastAPI application
backend/app/main.py - Competitor endpoints
backend/app/api/v1/competitors.py - Change endpoints
backend/app/api/v1/changes.py - Business profile
backend/app/api/v1/profile.py - Digest endpoint
backend/app/api/v1/digest.py - Pipeline trigger
backend/app/api/v1/pipeline.py - Scheduled runner
backend/app/scheduler.py - Runtime settings
backend/app/core/config.py
Monitoring and detection
- Pipeline orchestrator
backend/app/pipeline.py - Page scraping
backend/app/services/scraper.py - Snapshot and change detection
backend/app/services/ingest.py - Semantic embeddings
backend/app/services/embeddings.py - Structured field diffs
backend/app/services/structured.py - Change classification
backend/app/services/classifier.py
Impact and delivery
- Impact scoring
backend/app/services/enrich.py - Local LLM
backend/app/services/llm.py - Competitor thesis
backend/app/services/thesis.py - Notion CRM sync
backend/app/services/crm.py - Email digest
backend/app/services/digest.py
Business data
- Postgres and pgvector
backend/app/core/database.py - Competitor records
backend/app/models/competitor.py - Page snapshots
backend/app/models/snapshot.py - Detected changes
backend/app/models/change.py - Business profile data
backend/app/models/business.py
Other components
- Analyst
- Notion
- SMTP email
Connections 43
- Analyst → React application: uses
- Analyst → Chrome extension: adds monitored page
- Chrome extension → FastAPI application: submits page
- React application → Dashboard and feed: routes to
frontend/src/main.tsx - React application → Competitor detail: routes to
frontend/src/main.tsx - Dashboard and feed → Typed API client: requests data
frontend/src/pages/Dashboard.tsx - Competitor detail → Typed API client: requests details
frontend/src/pages/CompetitorDetail.tsx - Competitor detail → Change cards: renders
frontend/src/pages/CompetitorDetail.tsx - Typed API client → FastAPI application: calls API
frontend/src/lib/api.ts - FastAPI application → Competitor endpoints: registers routes
backend/app/main.py - FastAPI application → Change endpoints: registers routes
backend/app/main.py - FastAPI application → Business profile: registers routes
backend/app/main.py - FastAPI application → Digest endpoint: registers routes
backend/app/main.py - FastAPI application → Pipeline trigger: registers routes
backend/app/main.py - FastAPI application → Scheduled runner: starts
backend/app/main.py - Scheduled runner → Pipeline orchestrator: runs
backend/app/scheduler.py - Pipeline trigger → Pipeline orchestrator: triggers
backend/app/api/v1/pipeline.py - Competitor endpoints → Snapshot and change detection: runs scrape
backend/app/api/v1/competitors.py - Competitor endpoints → Competitor thesis: requests thesis
backend/app/api/v1/competitors.py - Business profile → Postgres and pgvector: reads and writes
backend/app/api/v1/profile.py - Change endpoints → Postgres and pgvector: reads changes
backend/app/api/v1/changes.py - Pipeline orchestrator → Postgres and pgvector: loads competitors
backend/app/pipeline.py - Pipeline orchestrator → Snapshot and change detection: ingests pages
backend/app/pipeline.py - Pipeline orchestrator → Impact scoring: scores changes
backend/app/pipeline.py - Pipeline orchestrator → Notion CRM sync: syncs pending cards
backend/app/pipeline.py - Snapshot and change detection → Page scraping: scrapes page
backend/app/services/ingest.py - Snapshot and change detection → Semantic embeddings: embeds text
backend/app/services/ingest.py - Snapshot and change detection → Structured field diffs: extracts and diffs fields
backend/app/services/ingest.py - Snapshot and change detection → Change classification: classifies change
backend/app/services/ingest.py - Snapshot and change detection → Postgres and pgvector: stores snapshots and changes
backend/app/services/ingest.py - Impact scoring → Local LLM: scores impact
backend/app/services/enrich.py - Impact scoring → Change classification: refines category
backend/app/services/enrich.py - Notion CRM sync → Notion: pushes cards
- Notion CRM sync → Postgres and pgvector: reads and updates status
backend/app/pipeline.py - Digest endpoint → Email digest: sends digest
backend/app/api/v1/digest.py - Email digest → SMTP email: emails summary
- Competitor records → Postgres and pgvector: persists
backend/app/models/competitor.py - Page snapshots → Postgres and pgvector: persists
backend/app/models/snapshot.py - Detected changes → Postgres and pgvector: persists
backend/app/models/change.py - Business profile data → Postgres and pgvector: persists
backend/app/models/business.py - Runtime settings → Postgres and pgvector: configures connection
backend/app/core/database.py - Runtime settings → Local LLM: configures runtime
backend/app/services/llm.py - Competitor detail → Competitor thesis: shows narrative
frontend/src/pages/CompetitorDetail.tsx