How abdussalam01/dealersight works
DealerSight is a local FastAPI product that turns Ring camera events into an anonymous dealership funnel, adds clearly labelled simulated sales and finance data, and presents evidence-backed comparisons and findings. The main workflow is polling, optional queue delivery, ingestion, rule-based correlation, then funnel and review views; an analyst receives a computed metric packet and returns validated prose or a labelled fallback. README-documented capabilities include dealer, network, finance, event-audit, demo-camera controls, and optional SQS. Some route and persistence details are documented rather than shown in the sampled excerpts.
Main entry points: main.py FastAPI application · correlation.py Event correlation · schema.sql PostgreSQL records · ring_poller.py Ring poller
Components 20
Event collection
- Ring poller
backend/ring_poller.py - Queue worker
backend/pipeline.py - Runtime configuration
backend/config.py
Funnel evidence
- Event ingestion
backend/ingest.py - PostgreSQL records
db/schema.sql - Event correlation
backend/correlation.py - Demo data seeding
backend/seed.py - Event replay
backend/replay.py - Correlation rules
config/rules.yaml
Business analytics
- Funnel and patterns
backend/funnel.py - Finding checks
backend/checks.py - Metric summaries
backend/metrics.py - Metric packets
backend/packets.py
API and analyst
- FastAPI application
backend/main.py - AI analyst
backend/analyst.py - Dashboard UI
frontend
Other components
- Ring Playground
- Ring Partner API
- SQS event queue
- Amazon Bedrock
Connections 33
- Ring Playground → Ring Partner API: emits events
README.md - Ring Partner API → Ring poller: serves history
README.md - Ring poller → Event ingestion: ingests locally
README.md - Ring poller → SQS event queue: publishes events
README.md - SQS event queue → Queue worker: delivers events
README.md - Queue worker → Event ingestion: ingests messages
backend/pipeline.py - Event ingestion → PostgreSQL records: stores events
backend/ingest.py - PostgreSQL records → Event correlation: reads raw events
backend/correlation.py - Event correlation → Correlation rules: loads rules
backend/correlation.py - Event correlation → PostgreSQL records: writes derived events
backend/correlation.py - Demo data seeding → PostgreSQL records: seeds demo records
backend/seed.py - Demo data seeding → Event correlation: rebuilds derived data
backend/seed.py - Event replay → Event ingestion: replays events
backend/replay.py - Event replay → Event correlation: rebuilds metrics
backend/replay.py - Funnel and patterns → PostgreSQL records: queries records
backend/funnel.py - Finding checks → Funnel and patterns: compares periods
backend/checks.py - Finding checks → Event correlation: tests pairing rules
backend/checks.py - Metric summaries → PostgreSQL records: queries records
backend/metrics.py - Metric packets → Funnel and patterns: builds metric facts
backend/packets.py - Metric packets → Finding checks: adds finding evidence
backend/packets.py - FastAPI application → Ring poller: starts polling
README.md - FastAPI application → Queue worker: starts worker
README.md - FastAPI application → Demo data seeding: seeds on startup
README.md - FastAPI application → Funnel and patterns: serves views
backend/main.py - FastAPI application → Finding checks: serves findings
README.md - FastAPI application → Metric summaries: serves summaries
backend/main.py - FastAPI application → AI analyst: handles questions
README.md - FastAPI application → Dashboard UI: serves dashboard
backend/main.py - AI analyst → Metric packets: requests facts
backend/analyst.py - AI analyst → Amazon Bedrock: requests explanation
README.md - Amazon Bedrock → AI analyst: returns answer
README.md - Runtime configuration → Ring poller: configures polling
backend/ring_poller.py - Runtime configuration → Queue worker: configures queue
backend/pipeline.py