What the forecast actually says.
→ plaincast.live · ☕ Support the Project · 💡 Suggest a Feature
The National Weather Service writes a daily weather column for your city. Plaincast typesets and translates it.
Area Forecast Discussions (AFDs) are the real forecasts - written 3-4 times daily by NWS meteorologists who actually read the models and interpret what they mean for your area. They're far deeper than any weather app, but they're written in dense meteorological shorthand that's nearly unreadable for normal people.
Plaincast sets each edition like a fine print publication: plain-English translation beside the original facsimile, a jargon glossary, an almanac ledger, and a forecast changelog - every revision as a delta, because the interesting question is rarely "what's the forecast" and usually "what changed.
Every forecast section is summarized by Claude (Haiku) into natural, readable prose. Not just abbreviation expansion - actual explanation of why weather is happening, what the models show, and what it means for you. Translations are computed once per issuance and served from the CDN, so AI cost is bounded by (offices × issuances), not traffic. Falls back to regex translation if the model is unavailable - the page works, and makes sense, before and without AI.
AI summary on the left, original AFD with jargon annotations on the right. Every highlighted term in the original has a hover tooltip (or tap on mobile) explaining what it means. 230+ term glossary covering synoptic meteorology, aviation, marine, pressure levels, model names, and airport codes, plus 109 abbreviation expansion patterns.
Bold 1-2 sentence summary at the top extracting what matters most from the Synopsis. Skip the details when you just need the headline.
Every retained issuance as a reverse-chronological ledger (?view=changelog): what each revision changed, a one-line AI summary of the delta, whether the forecasters' confidence rose or fell (read from their own language), and the full paragraph diff one fold away. Weather nerds share deltas - this makes the delta the artifact.
Every issuance has a durable URL (/o/LOX/?edition=<id>). The history selector, the changelog ledger, RSS items, and the Share button all mint the same canonical form. With Vercel Blob provisioned, snapshots let permalinks outlive NWS's ~7-day product retention.
Watches and warnings render as the Hazard Ledger - a severity-marked reference table, no emoji. Click any row and it expands inline with a calm plain-English explanation (server-side translation of the official text - what's happening, where, until when, what to do) above the verbatim alert. During severe posture the worst Severe/Extreme Warning is promoted to a Bulletin Slab headline above the ledger, and the page checks for new editions every 2 minutes instead of 10.
Visual indicator analyzing the AFD's language for certainty vs. uncertainty signals. Words like "high confidence" and "consistent" push it up; "uncertain", "tricky", and "wide range" push it down.
Days of the week, hazard terms, temperatures, rainfall amounts, and wind speeds are bolded for skimmability.
Synopsis, Discussion, Short Term, Long Term, Aviation, Marine, Beaches, Fire Weather, Key Messages, and Active Alerts all rendered as separate sections with pill-style jump navigation.
Current watches, warnings, and advisories laid out as a hairline-ruled ledger with emoji-free severity marks (filled for warnings, hatched for watches, hollow outline for advisories, dashed for statements). Rows expand inline, and when enough alerts carry start/end times an optional "On the clock" timetable plots them against the hours ahead.
Every National Weather Service office that writes an Area Forecast Discussion: the contiguous US by region, plus Alaska (Anchorage, Fairbanks, Juneau), Hawaii (Honolulu), Guam, American Samoa (Pago Pago) and Puerto Rico (San Juan). The roster, time zones, stations and climate normals are fetched from NOAA/NWS by scripts/fetch-office-data.mjs and scripts/fetch-climate-normals.mjs; the full list by region is in docs/llms.txt.
┌─────────────────────────────────────────────────┐
│ docs/ │
│ ├─ index.html (markup only, ~350 loc) │
│ ├─ styles.css (all CSS) │
│ ├─ js/app.js (main app logic) │
│ ├─ js/glossary.js (230+ term glossary) │
│ ├─ js/offices.js (123 office data) │
│ ├─ js/abbreviations.js (shared NWS abbrevs) │
│ ├─ js/diff.js (forecast diff engine) │
│ ├─ sw.js (service worker) │
│ └─ manifest.json (PWA manifest) │
│ │
│ NWS API (api.weather.gov) │
│ ├─ /products/types/AFD/locations/{office} │
│ ├─ /products/{id} │
│ ├─ /alerts/active?area={state} │
│ └─ /stations/{id}/observations/latest │
│ │
│ Vercel Serverless │
│ ├─ /api/translate-issuance (whole edition, │
│ │ translated once, CDN-cached) │
│ ├─ /api/translate (per-section fallback) │
│ ├─ /api/changelog (what changed, per id) │
│ ├─ /api/explain-alert (alert in plain terms) │
│ ├─ /api/home (SSR homepage, /) │
│ ├─ /api/office-page (SSR office pages) │
│ ├─ /api/national-desk (SSR national front) │
│ ├─ /api/page (about/contact/privacy) │
│ ├─ /api/not-found (agent-friendly 404) │
│ ├─ /api/api-not-found (JSON 404 for /api/*) │
│ ├─ /api/feed (delta RSS per office) │
│ ├─ /api/og (share cards) │
│ └─ /api/conditions (current weather + avg) │
│ │
│ Every page above serves HTML to browsers and │
│ Markdown to `Accept: text/markdown`, one URL. │
│ │
│ Frontend: shadcn/ui + React SPA (Vite build). │
└─────────────────────────────────────────────────┘
- shadcn/ui frontend - React + Vite SPA in
shadcn/, built intoshadcn/diston deploy; shared data modules (glossary, offices, abbreviations, diff) live indocs/js/ - NWS API - Pulls directly from
api.weather.gov(no API key needed) - AI summaries - Claude Haiku 5.5 on the Claude API (
api/_model.js), billed to the Max plan's monthly API credits - Forecast diff - Paragraph-level comparison showing what changed between AFD versions
- One look sitewide - shadcn/ui components and tokens on every page (see
DESIGN.md) - Light/dark mode - Follows the system setting, with a toggle that persists across pages
- Mobile responsive - Side-by-side stacks to vertical on screens under 768px
- Accessible - ARIA roles on modals and tooltips, focus trapping, keyboard navigation, severity marks
- DST-aware - Zulu time conversion uses IANA timezones per office
- SEO - WebApplication + FAQPage schema, OG image, llms.txt, AI crawler friendly
- Documented API - OpenAPI 3.1 at /openapi.json, developer docs at
/developers. No key, no signup. Every
/api/*error is JSON with a stable machinecode, ahintnaming the fix, and adocslink - Agent-ready - Every page is server-rendered (readable with no JavaScript) and
acceptmarkdown.com compliant:
Accept: text/markdownreturns clean prose from the same URL, withVary: Accept, q-value handling, and406for an Accept it cannot satisfy.llms.txtcarries when-to-use guidance; 404s return a Markdown site map
bun install && (cd shadcn && bun install)
cd shadcn && bun run dev
# Frontend only. AI summaries, SSR pages and Markdown negotiation are
# serverless functions: run `vercel dev` from the repo root for those.
# Without them, sections fall back to regex translation.
bun test tests/ # full suiteWeather apps give you icons and numbers. AFDs give you the reasoning - why the models disagree, what the forecasters are watching, where the uncertainty is. That's the forecast that matters.
The problem is they look like this:
.SYNOPSIS...DEEP SW FLOW WILL CONT TO BRING PCPN TO THE AREA
THRU TUE. TEMPS WILL REMAIN BLO NORMAL. NEXT TROF MOV THRU WED...
Plaincast turns that into:
A deep southwest flow is channeling moisture into Southern California through Tuesday, bringing steady rain to the coast and heavy snow to the mountains. Temperatures will stay 5-10 degrees below average. The next trough moves through Wednesday with increasing winds.
- DESIGN.md — Design system (typography, color, spacing, components)
- SPEC.md — Original product spec
- TODOS.md — Planned features
Built by Jonah Berg. Forecast data from the National Weather Service. Summaries powered by Claude.
MIT - see LICENSE for details.