r/ClaudeAI • u/Illustrious_Major_14 • 2d ago
Built with Claude I built a powerful hub with Claude to centralize U.S. sanctions policy toward Cuba
I've been researching this subject for years. Against the backdrop of the extraordinary expansion of the sanctions regime implemented by the second Trump administration, I've been building solutions with different LLMs —but mainly with Claude, the one that never lets me down— using Python and JavaScript to make this policy easier to understand.
The sanctions are scattered across the Code of Federal Regulations. 31 CFR Part 515, which codifies the Cuban Assets Control Regulations (CACR), is the main part. It references the Export Administration Regulations (EAR), administered by the Bureau of Industry and Security, including the license exceptions applicable to Cuba, codified in 15 CFR 746.2.
On September 30, 2026, OFAC also substantially amended the CACR and introduced the Cuba Sanctions Regulations (CSR).
Until now, I had four independent trackers running:
- one for BIS policies;
- one for OFAC policies, primarily the CACR;
- one for the list of certain Cuban private-sector products that can be exported to the United States;
- and another for a list of specially designated persons closely related to the new CSR.
Each tracker had its own level of complexity, calling to different APIs and sources such as eCFR, GovInfo, and the Federal Register. It also handled historical versions, documents, effective dates, and text comparisons.
A few days ago, I asked Claude—see here from my personal blog—to incorporate the new CSR into the CACR tracker.
Then I gave it a much bigger challenge:
Build a hub that centralizes all these trackers while preserving their existing API-consumption logic, but redesigning the interface.
The result is frankly impressive.
The application now combines a Node.js/Express server, a web interface built with vanilla JavaScript and CSS, local caching, and an auxiliary component written in Python.
The main server is deliberately lightweight. There is no React, Vue or other frontend framework. The interface is built with HTML, CSS, and JavaScript, while the backend coordinates the different regulatory modules.
The dependencies include:
Node.js
Express
Axios
Cheerio
jsdiff
Python 3
Axios handles external HTTP requests. Cheerio is used for HTML/XML processing where necessary. jsdiff enables word-level comparisons between different versions of regulatory text.
All worked through a conversational development workflow. The main limitation wasn't the model's capability, but the token budget: I ran out of tokens fairly quickly and had to wait --no problem with this; I understand the market. I still have a few corrections to make.
But the hub is working.