Technical case study
Automating UNFCCC document evidence for carbon-market intelligence
How Krvyn keeps a country-by-country record of official climate and Article 6 documents current: the data model, the scheduled automation behind seven document streams, the safeguards around each write and the public pages built on top.
01
The problem
Article 6 and climate-reporting documents are published across separate UNFCCC pages, each with its own table layout, date conventions and update rhythm. A developer or investor screening a host country has to visit several of them, then reconcile versions, resubmissions and partial records by hand.
Krvyn’s goal is a single, current, country-first view in which every fact links back to its official source and nothing is overstated.
02
Seven document streams, one engine
Each stream reads one official UNFCCC listing. All seven share the same engine and differ mainly in a declared policy and a source-specific parser.
| Document stream | Official listing read |
|---|---|
| Nationally Determined Contributions | UNFCCC NDC Registry |
| Article 6.2 Letters of Authorization | UNFCCC Article 6.2 authorizations table |
| Article 6.2 Initial Reports | UNFCCC Article 6.2 reports page (initial and updated initial reports) |
| First Biennial Transparency Reports | UNFCCC BTR1 submissions registry |
| Second Biennial Transparency Reports | UNFCCC BTR2 submissions registry |
| Biennial Update Reports | UNFCCC status of BUR submissions table |
| National Communications | UNFCCC status of non-Annex I NC submissions table |
03
Architecture
- Data model
- A curated baseline of country datasets is combined with a live table of country documents. The Data Terminal merges the two for each of its 213 countries, live records first, and removes duplicates.
- Scheduled capture
- GitHub Actions workflows run a headless browser (Playwright) against the official listings. Read-only discovery runs daily; writes happen only in a weekly window or on a deliberate manual run.
- Links, not copies
- The automation records each document’s official link, dates and identifiers. It never downloads, converts or stores the documents themselves.
- Stable identities
- Each document is identified by its canonical official link, so reruns are idempotent and one country’s records never overwrite another’s.
04
Safeguards
- Writes are off by default and are enabled separately for each document stream by the owner after read-only runs have been reviewed.
- Writes are insert-only and capped per run. Ambiguous records, such as a page offering several candidate files, are held in an exception register for human review instead of being guessed.
- Every write runs in a database transaction with a pre-commit journal, a post-commit receipt and an independent check through the public API. An unconfirmed commit is recorded as uncertain and recovered read-only.
- Parsers fail closed: if an official page changes shape, the run stops and reports it rather than writing partial data.
- Automated records are labelled as automated and not individually verified, wherever they appear.
05
Public pages from the same data
The country profiles and the LOA tracker are generated as static HTML when the site is built. The build reuses the Data Terminal’s own parsing and merging code rather than a second implementation, then passes the result through a narrow public projection: only titles, dates, official links and clearly labelled counts are published. Personal contact details, internal notes and private analytics stay out.
Because the pages are plain HTML, they load quickly, read well without JavaScript and can be indexed by search engines without any difference between what crawlers and visitors see.
06
Skills this project demonstrates
- Climate policy literacy: Article 6.2 and 6.4, the Enhanced Transparency Framework, NDCs and registry mechanisms.
- Data engineering: reconciling official tables, curated datasets and live records into one evidence model.
- Automation: scheduled browser-based capture of official listings, with policies, exception handling and receipts.
- Databases and security: PostgreSQL on Supabase, transactional writes, row-level security and least-privilege access.
- Product and front end: TypeScript and React interfaces for country screening, with accessible static pages and technical SEO.
07
Limitations
- Coverage depends on what the official listings publish and when Krvyn last captured them.
- Automated records are not individually verified; curated records can lag new submissions.
- Krvyn is an independent project. It is not affiliated with the UNFCCC and does not provide investment advice.
Author
Waleed Al-Okar
Founder and developer of Krvyn.
Connect on LinkedIn