Search NY Senate bills, get AI-generated summaries of complex legislation, and save bills to track over time.
- Search bills by keyword and session year
- View bill details, sponsors, and status
- AI summaries of dense legal text
- Save and annotate bills (requires sign-in)
Frontend: Next.js, React, TypeScript, Tailwind CSS
Backend: Spring Boot (Java 17), PostgreSQL, Redis
Services: Supabase (auth + database), Hugging Face (AI), NY Senate API
cp .env.example .env # fill in your keys
docker compose up --buildFrontend: http://localhost:3000 · Backend: http://localhost:8080
1. Backend
cd backend
./run.sh2. Frontend
cd frontend
npm install
npm run devCreate .env in the root:
DATABASE_URL=jdbc:postgresql://...
DATABASE_USERNAME=postgres
DATABASE_PASSWORD=...
SUPABASE_URL=https://xxx.supabase.co
SUPABASE_SERVICE_ROLE_KEY=...
NEXT_PUBLIC_SUPABASE_URL=https://xxx.supabase.co
NEXT_PUBLIC_SUPABASE_ANON_KEY=...
NY_SENATE_API_KEY=...
HUGGINGFACE_API_KEY=...