How purnatejeshwarareddyb/driftly works
DRIFTLY ingests public or demo job-feed data, validates and preserves it in SQLite, and serves jobs plus operational health through a combined API and dashboard. The main workflow starts with a manual run from the UI or API, passes through adapter fetching and the ingestion pipeline, then records jobs, run status, events, and quarantined records. The dashboard and API also expose health, metrics, history, and Chaos Lab simulations. Relationships use excerpts and README statements; some pipeline details are documented but not fully sampled.
Main entry points: ingestion.py Ingestion orchestrator · services.py Read services · adapters.py Source adapters · api.py JSON API
Components 18
Source intake
- Demo fixture
data/demo_fixture.json - Source adapters
adapters.py
Ingestion and resilience
- Ingestion orchestrator
ingestion.py - Retry and status
resilience.py - Record validation
schemas.py - Normalize and dedupe
ingestion.py - Drift quarantine
ingestion.py - Runtime settings
config.py
Persistence and read services
- SQLite sessions
database.py - Jobs and sources
models.py - Runs and events
models.py - Read services
services.py
User interfaces and simulation
- JSON API
api.py - Dashboard
ui.py - Chaos Lab
chaos.py - Application startup
main.py
Other components
- Operator
- Public job feed
Connections 29
- Operator → JSON API: requests
README.md - Operator → Dashboard: uses
README.md - JSON API → Read services: queries
api.py - JSON API → Read services: triggers run
api.py - JSON API → Chaos Lab: starts simulations
api.py - Dashboard → Read services: reads status and data
ui.py - Dashboard → Chaos Lab: offers simulations
README.md - Read services → SQLite sessions: opens sessions
services.py - Read services → Jobs and sources: reads and updates
services.py - Read services → Runs and events: reads metrics and history
services.py - Read services → Source adapters: builds source
services.py - Read services → Ingestion orchestrator: invokes run
services.py - Ingestion orchestrator → Source adapters: fetches records
README.md - Source adapters → Public job feed: fetches JSON
adapters.py - Source adapters → Demo fixture: loads offline data
adapters.py - Ingestion orchestrator → Retry and status: retries fetch
README.md - Ingestion orchestrator → Record validation: validates records
README.md - Ingestion orchestrator → Normalize and dedupe: normalizes and deduplicates
README.md - Ingestion orchestrator → Drift quarantine: quarantines invalid data
README.md - Ingestion orchestrator → Jobs and sources: stores jobs and health
ingestion.py - Ingestion orchestrator → Runs and events: records run events
ingestion.py - Source adapters → Runtime settings: uses settings
adapters.py - Retry and status → Runtime settings: uses thresholds
resilience.py - SQLite sessions → Runtime settings: configures engine
database.py - Application startup → JSON API: registers router
main.py - Application startup → Dashboard: registers pages
main.py - Application startup → SQLite sessions: initializes schema
main.py - Chaos Lab → Ingestion orchestrator: runs real pipeline
chaos.py - Chaos Lab → SQLite sessions: opens sessions
chaos.py