Skyloom pairs the forecast with a sky that matches it: clouds, rain and light change as you move through the hours ahead. Alongside it are rain and wind charts, radar, daylight and moon phases, official warnings and saved places. It needs no account, and the sky is described as what it is, an artistic interpretation of the data.
- 28 ms
- frame-time budget; above it, the sky drops to cheaper settings on its own
- 800
- rain and snow particles on desktop, 350 on phones
- 80/min
- self-imposed radar limit, under the provider’s 100 per minute
- 78
- tests, including daylight-saving and midnight edge cases
How it’s put together
- React 19 and TypeScript, with React Three Fiber for the scene: a full-screen shader ray-marches the clouds, and wind drives rain and snow particles on the GPU.
- Forecasts and city search come from Open-Meteo, postcodes from Photon and OpenStreetMap, radar from RainViewer, and official warnings from the WMO alert feeds. Sun and moon positions are calculated locally.
- It runs on Cloudflare Workers, with API routes validated by Zod.
A 3D sky that stays cheap
- Pixel ratio starts at 1 on small screens and 1.25 elsewhere. If the first 120 frames average more than 28 ms, it drops to 0.75 and the cloud ray-march takes 12 steps instead of 20.
- The render loop stops when the sky is off screen or the tab is hidden.
- The WebGL code only loads after the forecast arrives, and only if motion is allowed. Reduced motion, no WebGL, a shader error or a lost GPU context all fall back to a static sky.
Problems with other people’s APIs
Rate-limited through a shared serverOpen-Meteo returned HTTP 429 to the shared Worker, so everyone was being limited together.
The browser now calls Open-Meteo directly and only falls back to the server on network failures. It never retries 401, 403 or 429 through the server, and it honours Retry-After, with a one-hour cooldown by default.
Old answers arriving lateSwitching places quickly could show the previous place’s forecast.
Switching cancels earlier requests, and identical requests in flight share one call to the provider.
Time is harder than it looksHours repeat when the clocks go back, and a forecast must be read in the place’s own time zone.
Times are kept as Unix timestamps with the place’s IANA time zone, so repeated daylight-saving hours stay distinct.
Small decisions that keep it honest
- Switching between °C and °F happens on the device, so it never makes a network request, and missing values stay missing instead of becoming zero.
- The next-hour rain card hides when rain is below 0.025 mm per quarter-hour or the forecast is more than 15 minutes old.
- No warnings, or an empty radar, is shown as “nothing reported”, not as an all-clear.
- Location is opt-in. Places, units and the motion setting stay in the browser, and the last forecast is kept for at most six hours.
How it’s tested
- About 78 tests cover daylight-saving and midnight, malformed and missing data, request sharing, unit conversion, postcode search and radar.
- CI type-checks, runs the tests, compiles the shaders for both WebGL versions, builds, and smoke-tests the built Worker. Real-device GPU checks are still manual.
Limits and next
Where it falls short
- The cache lives in each Worker instance, so it isn’t a real rate limiter under heavy traffic.
- Open-Meteo’s and RainViewer’s terms need a review before any commercial use.
What’s next
- A shared edge cache and rate limit for high traffic.
- A hosted geocoder, and testing on more real devices.
Built with
Interface
Services
Delivery
Bigger tiles are tools I use in more places, across my projects and my job at Payaza.
