feat: add civic data sources for local elections#85
Open
ThatXliner wants to merge 9 commits into
Open
Conversation
Elections, polling locations, representatives, voter info by address. Includes tRPC router with enriched representative data. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
All 58 CA counties, contests, results, county breakdowns. Gracefully returns null/[] when CA_SOS_API_KEY not configured. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Bills, legislators, votes, sessions for California legislature. Requires OPEN_STATES_API_KEY env var. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
San Jose, Santa Clara County, Sunnyvale support. Meetings, bills, votes, agendas — no API key needed. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Cheerio scraper for static voter guides and forums. Playwright scraper for address-based ballot lookup. Includes caching and rate limiting. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Polling locations, sample ballots, election calendar, candidates. Uses Google Civic API (county site has Cloudflare protection). Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
API key instructions for Google Civic, Open States, CA SOS. Documents all scrapers and their data coverage. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Register new routers in root.ts, export types from index. Add env vars to .env.example and turbo.json. Register scrapers in main.ts. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Fix prettier formatting, change Array<T> to T[] syntax. Add OPEN_STATES_API_KEY to turbo.json globalEnv. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add these to your deployment environment (Vercel, etc.):
GOOGLE_CIVIC_API_KEYOPEN_STATES_API_KEYCA_SOS_API_KEYSee
docs/CIVIC_DATA_SOURCES.mdfor detailed setup instructions.Test plan
🤖 Generated with Claude Code