How it works
From two public feeds to one moving map.
Every 15 minutes
It reads the hourly DHMZ station reports and, every few hours, an Open-Meteo forecast for 542 points along the coast.
Model, corrected by stations
The forecast is smooth but coarse. Where a station reports, its error is worked out and blended back in, fading to the model with distance.
Drawn on the GPU
Particles follow the result. Colour is speed, trails are direction, and the label says which wind it is: bura, jugo, maestral.
Where the model is wrong
Bura is narrower than the forecast grid.
A bura comes down through mountain gaps in jets 10 to 20 km wide. The forecast sees the coast in 25 km squares, so it smears them out.
The stations know better, but only at a few points. So the model stays as the base and the stations correct it. At each station the difference between what it measured and what the model said is taken as a wind vector, never as speed and direction separately, so two opposing winds can’t average into a breeze from the wrong side.
Those corrections spread out with inverse-distance weights that reach zero at 45 km, plus a constant background weight. Next to a station the map matches the reading exactly. Out at sea it fades back to the model, instead of carrying the nearest station’s error across the whole Adriatic.
Mountain-top stations like Zavižan are left out, since the wind up there says little about the sea. The last correction keeps nudging the forecast for a few hours, then lets go.
Particles on the GPU
32,000 on a laptop, 8,000 on a phone
Particle positions live in a texture and are moved by a fragment shader, which samples two hourly wind frames and blends between them. Scrubbing the timeline or letting it play stays smooth because the wind is interpolated in time as well as space. Each particle draws one short line per frame, with no vertex buffers, over trails that fade a little every frame.
The CPU only sets a few numbers per frame. The client ships with no dependencies, about 25 kB gzipped.
If frames start taking too long the particle count drops a step, and software-rendered WebGL, the kind Lighthouse runs, gets a lighter version.
Running it for free
Inside the free tiers
DHMZ publishes only the current hour, so Bura keeps its own history by polling. GitHub Actions is the 15-minute clock, since free Vercel cron runs once a day. Everything goes into a single stored file, written only when something changed, about 30 writes a day. Each hour of wind leaves the server as a 30 kB binary frame, cached at the edge.
- Built with
- TypeScript, WebGL2, Vercel functions and Blob
- Data
- DHMZ stations, Open-Meteo forecast, Natural Earth coastline
- Covers
- 24 hours back, 48 ahead
- Source
- github.com/Brkic365/bura
- Live at
- bura-fawn.vercel.app



