OSINT Petrochemical Tracker

    OSINT Petrochemical Tracker
    Python
    JavaScript
    Cloudflare Workers
    Cloudflare Workers AI (Llama 3.3 70B
    Llama 4 Scout
    Llama 3.1 8B)
    HTML/CSS
    DuckDB
    pandas
    GitHub Actions
    SEC EDGAR API (10-K and Exhibit 21)
    EPA ECHO API
    LLM tool calling
    embeddings-based entity matching
    LLM-as-judge evaluation
    Leaflet-style interactive map
    PDF generation
    pytest
    Live Site GitHub

    Inspiration

    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.

    What it does

    It lets users access, visualize, save and act on public data about petrochemical firms across the United States.

    How We Built It

    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.

    Challenges we ran into

    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.

    Accomplishments that we're proud of

    What we learned

    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

    What's next

    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.

    Project Team

    Jackson Ramsdell

    Jackson Ramsdell

    Jacob Thole

    Jacob Thole

    Sudarshan

    Sudarshan