Architecture & data model
Simple, observable and hard to break.
Python async collector → SQLite master database → Supabase/Postgres mirror → dashboards, exports and integrations. Every step is idempotent, rate-limited and logged.
Data model
Eight tables, natural keys, zero duplicates.
Every record is keyed by the court's own identifiers, so re-running a day simply updates what is already there. Each case section is hashed; when a hash changes, the collector writes exactly which fields changed to case_changes.
- • Case numbers kept only if they match ^\d{2}[A-Z]{2,3}CV\d+$
- • Timestamps in UTC; dates as calendar dates
- • Raw JSON retained for audit and re-parsing
cases
key: case_id · case_number (unique)
One row per civil case: title, filing date, courthouse, category, type, status, departments, judges, counts, next hearing, disposition, first-seen / last-scraped / last-changed timestamps.
parties
key: case_id + party_id
Plaintiffs, defendants, cross-parties and attorneys; role, entity flag, who represents whom, removed flag.
hearings
key: case_id + hearing_id
Date, time, type, department, courthouse, status, result, cancelled flag, interpreter flag.
docket_entries
key: case_id + entry_id
Register of actions: entry date and timestamp, type and code, description, parent entry.
documents
key: document_id
Document index: name, type, filed date, filer, pages, access status; free preview path, size and SHA-256.
case_changes
key: id
Field-level change log: run, case, section, added / removed / modified, entity, field, old and new value.
runs
key: run_id
Every daily, backfill and refresh run with status and statistics — the source of the daily report.
discovery_days
key: filing_date
Per filing day: portal total, rows seen, civil cases found and whether the sweep completed.
Refresh policy
Fresh where it matters, polite everywhere else.
New filings are discovered every business day (the last three filing days are re-swept to catch late-indexed cases). Existing cases are re-checked on an adaptive schedule:
Daily
Cases with a hearing in the next 14 days, or filed in the last 60 days
This is where docket activity concentrates.
Weekly
All other active (not disposed) cases
Catches slower-moving cases without wasting requests.
Monthly
Disposed, dismissed or closed cases
Picks up post-judgment activity and re-openings.
Reliability
Async HTTP client with token-bucket rate limiting, exponential back-off, Retry-After support and a circuit breaker. Interrupted runs resume where they stopped.
Observability
Every run is recorded with counts and failures. The daily HTML/JSON report lists successes and each failure with its reason, ready for email.
Compliance
Free, anonymous public endpoints only. No paid searches, no purchased documents, no CAPTCHA circumvention, conservative request rates.