API Credits + Cash
OpenComment
Giving everyday citizens the same influence as corporate lobbyists by turning dense federal regulations into actionable, personalized public comments.
Core trick
Queries the regulations.gov API for open proposed rules, ranks them against a user profile, and has Claude draft comments anchored to personal circumstances.
Built with
nextjstailwindtypescript
Description
Inspiration
Democracy is currently struggling with an access gap, not an apathy gap. Corporate lobbyists have entire legal teams tracking federal dockets and drafting 50-page comments to shape policy to their advantage. Meanwhile, the average citizen, whose daily life, healthcare, and income are directly impacted by these exact rules, is locked out by dense legalese and 200-page PDFs. We realized that public rulemaking is effectively paywalled by jargon. We wanted to build a tool that levels the playing field, giving everyday Americans the exact same localized, direct influence over federal policy that K Street insiders enjoy.
What it does
OpenComment is an AI-powered civic platform that transforms how citizens interact with federal policy. Users start by inputting basic demographics and their core topics of interest (like Healthcare, Labor, or Housing). The platform then queries the live federal docket through the regulations.gov API and curates a personalized feed of open, relevant regulations.
When a user clicks a regulation, OpenComment bypasses the dense legal text entirely. It provides a plain-English summary of how the proposed rule impacts them, and then uses AI to automatically draft a highly personalized, substantive public comment. This draft is anchored directly to the user's lived experience and geographic location, ready to be copied and submitted to the official
regulations.gov
portal.
How we built it
We designed OpenComment to feel like trusted, modern civic infrastructure, adopting a minimalist, document-driven aesthetic. The frontend is built entirely on Next.js 14 (App Router) using TypeScript for strict type safety. We styled the interface with Tailwind CSS and selectively integrated shadcn/ui primitives to ensure a fast, responsive user experience without sacrificing our custom design language.
On the backend, we built a custom Next.js Route Handler that acts as a secure proxy to query the live
api.regulations.gov/v4/documents
endpoint. We dynamically map the user's onboarding interests to API search parameters to surface the most relevant proposed rules. For the generation engine, we utilized an LLM to ingest the dense regulatory abstracts and output the clear, personalized comment templates displayed on the frontend.
Challenges we ran into
Federal APIs are incredibly powerful but can be notoriously slow and strictly rate-limited. We had to implement server-side caching and graceful fallbacks so the feed would load instantly during the demo without hitting the 1,000 requests/hour cap.
Additionally, federal data is messy. Some regulations lack clean abstracts or have highly irregular metadata, requiring us to build robust error-handling to prevent the UI from breaking. Finally, prompt-engineering the LLM was surprisingly difficult; we had to meticulously constrain the model so it generated comments that sounded like genuine, concerned citizens rather than robotic, generic AI boilerplate.
Accomplishments that we're proud of
We are incredibly proud of the end-to-end user narrative. Taking a user from a simple demographic onboarding screen to a fully drafted, context-aware 400-word federal public comment in a matter of seconds is a massive UX achievement.
We also managed to successfully nail our target aesthetic. By stepping away from the typical glossy "AI startup" look and utilizing serif fonts, clean layouts, and a restrained palette, we delivered an interface that feels authoritative, accessible, and ready for real-world public deployment.
What we learned
We learned just how vast and active the federal docket is on any given day, and how many critical rules fly completely under the public radar. More importantly, we discovered that the highest-value use case for LLMs right now isn't always generating novel ideas, but acting as a "translation layer" between complex bureaucratic systems and ordinary people.
Technically, we gained deep, practical experience in managing complex API request lifecycles within Next.js Server Components and handling asynchronous state in a high-speed sprint.
What's next for OpenComment
Currently, OpenComment generates the text and links users out to
regulations.gov
to paste their final draft. The immediate next step is integrating the official Federal Comment Submission API so users can post securely and directly from our platform without ever leaving the app.
Beyond that, we want to scale the architecture down to the local level. By scraping state legislative dockets and city council agendas, OpenComment can become the definitive tool for citizens to advocate for changes right in their own neighborhoods.
README excerpt
# OpenComment Federal agencies publish proposed rules all the time -- new regulations on healthcare, housing, labor, the environment. Each one has a public comment period where anyone can weigh in before the rule is finalized. Most people have no idea this is happening. OpenComment shows you the rules that are relevant to your life, explains what they actually mean, and helps you write a real comment that gets entered into the federal record. **Live demo:** https://open-comment.vercel.app ## What it does - You set up a profile with your topics, state, occupation, and personal stories - It pulls open proposed rules from regulations.gov and ranks them against your profile - It generates plain-English summaries and drafts a comment grounded in your specific situation - It sends reminders when deadlines are approaching and alerts when a rule you commented on gets finalized ## Stack Next.js 14 App Router, TypeScript, Clerk, Supabase, Gemini, Vercel, Resend ## Quick start ```bash npm install cp .env.local.example .env.local # Fill in the required keys below npm run dev ``` ## Configuration | Variable | Where to get it | |---|---| | `REGULATIONS_GOV_API_KEY` | Free at https://api.data.gov/signup/ | | `NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY` + `CLERK_SECRET_KEY` | clerk.com | | `NEXT_PUBLIC_SUPABASE_URL` + `SUPABASE_SERVICE_ROLE_KEY` | supabase.com | | `GEMINI_API_KEY` | aistudio.google.com | | `RESEND_API_KEY` | resend.com (only needed for email alerts) | ## A few things wort