https://github.com/jaykaycodes/ecfradar
https://github.com/jaykaycodes/ecfradar
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/jaykaycodes/ecfradar
- Owner: jaykaycodes
- Created: 2025-02-11T23:57:21.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-12T04:46:08.000Z (over 1 year ago)
- Last Synced: 2025-05-17T11:37:07.232Z (about 1 year ago)
- Language: TypeScript
- Size: 293 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# eCFRadar
Interactive explorer for the Code of Federal Regulations (CFR). View agencies, titles, and their relationships in an easy-to-navigate interface.
## Setup
```bash
cp .env.example .env # Add your API keys
# Install dependencies
bun install
# Prepare data (this will take a few minutes)
bun run bin/1-download.ts
bun run bin/2-extract.ts
bun run bin/3-summarize.ts --ai
# Start dev server
bun dev
```
## Development
The app is built with:
- React + TypeScript
- TanStack Router for routing
- Tailwind CSS for styling
- Jotai for state management
## Data Pipeline
The `/bin` directory contains scripts that:
1. Download CFR XML data from ecfr.gov
2. Extract title & chapter information
3. Generates summaries of the data
4. Prepare the data for deployment
## Deployment
This site is deployed on Cloudflare Pages. To deploy:
1. Install Wrangler:
```bash
bun add -g wrangler
```
2. Login to Cloudflare:
```bash
wrangler login
```
3. Deploy:
```bash
bun run deploy
```