
Petrochemical Companies operate across the country generating aggregate revenue of over 1 Trillion US Dollars. They are also heavily tracked and monitored by the US Government's SEC (Securities and Exchange Commission), and the EPA (Environmental Protection Agency). Unfortuantely, they are gâtes behind APIs that are not suitable for an average Viewer to access, and professional services offering petrochemical tracking are designed for things like High-Frequency trading, Insurance, and Bussiness, meaning they are both complex, and extremely expensive to access.
Thus, we wanted to develop a tool that allows users to access OSINT (Open Source Intelligence) Data easily and quickly. We also wanted people to be able to do more than just view the data, we also wanted tools for reaching out to Senators and representatives, participating in US Comment periods for legislation, handing out flyer and information, and aggregating data.
We also wanted user to be able to use simple natural language to access and interact with the data, which we were able to do by building a complex guardrail system around Cloudflare Workers AI models, allowing the models to access a large menu of custom tools.
It lets users access, visualize, save and act on public data about petrochemical firms across the United States.
Interactive map of 4,377 EPA-tracked facilities across 11 corporate families, with satellite imagery.
Facility dossiers covering violations, penalties, inspections and greenhouse gas emissions, with corporate ownership traced through SEC filings.
Revenue vs fines: compares each company's penalties to its revenue.
Representatives tab: finds the lawmakers for each facility, with action links and open Regulations.gov comment periods.
AI analyst: ask questions in plain English, and it looks up data, opens facilities, sets filters and makes exports for you.
Investigate: the AI plans and runs its own research, then writes a cited report you can save as a PDF.
Flyers and data breakdowns: printable PDFs for any facility.
Onboarding: a welcome guide, a Tools menu, and custom layouts and settings.
The front end and API run on Cloudflare Workers with static assets and MapLibre GL maps. The AI runs on Workers AI (Llama 3.3 70B, with Llama 4 Scout and GLM-4.7 Flash as fallbacks). The data pipeline is written in Python with pandas, DuckDB and lxml. It pulls from SEC EDGAR (Exhibit 21 subsidiary lists, 10-K filings and XBRL revenue), EPA ECHO, the EPA Greenhouse Gas Reporting Program, OpenStates and Regulations.gov. GitHub Actions run the data refreshes, the AI company matching and the AI evaluation on a schedule, so the site maintains itself.
The biggest challenge was hallucination. Free models would invent numbers, miscount, or write tool commands as text instead of running them. Fixing that pushed us to build a robust system of tools and checks: strict tool schemas, repair and retry for malformed calls, fallback models, and code-based tools for things LLMs are bad at, like counting. Cost was the other challenge. We kept the project almost entirely free through caching, instant commands that skip the AI entirely, cheaper batch jobs, and per-visitor usage caps. We also had to fix rate limits and bot protection on government APIs.
Ease of use: we rebuilt the interface around feedback from student testers and survey forms.
AI accuracy: the analyst scores 16/16 (100%) on our evaluation suite. It was 87.5% until we added a counting tool.
Tools and integration: the AI can drive the entire site.
Safety and transparency: confidence tiers on every company link, an AI match score with a reason for each link, cited sources in every report, the tools the AI used shown with every answer, a public AI report card, and rate limits to prevent abuse.
We learned a lot about how available public data really is, and how messy it is. Company names don't match across agencies, so linking them took AI. We also learned to build a backend architecture on Cloudflare: Workers, Workers AI, rate limiting and secrets. And we learned to maintain a live website with automated pipelines, CI and evaluations, and to treat AI output as something to test and measure rather than trust
We plan to expand to other entities in SEC filings, such as data centers. We also want to grow the pipeline toward direct action: automated inquiries, and comments written in the app that submit straight to the official platforms.