cenovystrop.cz — Czech Fuel Price Tracker

In April 2026, the Czech Ministry of Finance introduced price caps on fuel following a crisis in the Strait of Hormuz that caused diesel prices to spike by ~15 CZK/l overnight. The maximum allowed price changes every working day — but the data is buried in a PDF published in the official Price Bulletin. I built cenovystrop.cz to make it accessible.

The Problem

The Ministry of Finance publishes the maximum fuel price for the following day every weekday at 2PM in a document called the Cenový věstník (Price Bulletin). It's a PDF. There's no API, no widget, no easy way to just check what the price cap is today.

Most people had no idea the regulation even existed, let alone what the actual numbers were.

What I Built

  • Real-time price display — two large metric cards showing today's maximum price for Natural 95 and Diesel, always up to date
  • Price history chart — line chart showing how both prices have evolved since the regulation started on April 8, 2026
  • Automatic daily updates — a GitHub Actions cron job runs every weekday at 3PM, fetches the latest PDF from mfcr.cz, parses the prices, and saves them to the database
  • Price formula explainer — collapsible section explaining exactly how MF ČR calculates the maximum price (wholesale indices, regulated margin, VAT)
  • FAQ section — answers common questions for SEO and general readability
  • Admin panel — password-protected dashboard for manual price entry as a fallback
  • Dynamic OG image — social media preview cards generated server-side with the current prices

Tech Stack

Next.js 15 (App Router), tRPC, Drizzle ORM, PostgreSQL, Tailwind CSS, shadcn/ui, Recharts. Deployed on Vercel with a custom domain. GitHub Actions handles the daily data pipeline.