Inspiration

When networks fail (floods, earthquakes, conflict, a prepaid plan that ran out), the web gets heavier, not lighter. A single news page can be several megabytes, while the information people need is a few lines: is the road open, when is the next prayer, where was the quake.

Broadcast teletext solved this decades ago: numbered pages, 40 columns by 24 rows, readable on any screen. It went dark in the 2010s. We wanted to bring it back, not as nostalgia, but as a size budget for crisis information, and to make it bilingual from day one, because a lot of the people on the slowest, most expensive connections read Arabic.

What it does

  • Teletext pages from open data, each a 40×24 grid in English and Arabic (Arabic laid out right to left, Western digits kept intact):
    • 100 Index · 101 About · 200 World news (two public RSS feeds, squeezed by the Page Editor) · 300 Weather (Open-Meteo) · 400 Prayer times (Aladhan) · 888 Earthquakes M4.5+ (USGS) · 666 the Graveyard of dead web tech. Each data source is credited on its page.
  • Tiny: English pages are about 250–820 bytes of text; Arabic pages about 500 bytes to 1.5 KB in UTF-8.
  • Three ways in:
    1. A CRT-style web viewer: type a 3-digit page number like an old TV remote; one click switches language.
    2. Plain text for terminals and scripts: curl https://barood-labs.github.io/teletext666/en/400.txt
    3. SMS-sized parts: …/sms/en/888.txt on the static site, and GET /sms?body=P888 on the full server (an HTTP emulator of a text gateway; no real SMS provider yet).
  • Headless Page Editor: a GitHub Actions job runs every hour (and on every push). It runs the tests, rebuilds every page in both languages from live feeds, turns any dead feed into an "OFF AIR" page instead of crashing, and refuses to deploy if any page breaks 40×24.
  • teletext-mcp: a read-only MCP server (stdio, zero dependencies) with one tool, get_page {page, lang}, so any AI agent can read the pages. It never touches the network and never writes, and returns six distinct errors (MISSING_FIELD, INVALID_PAGE, UNSUPPORTED_LANG, UNKNOWN_PAGE, SNAPSHOT_UNAVAILABLE, GRID_INVALID).
  • Full server (npm start, Node 22, zero runtime dependencies): content negotiation (curl gets text, browsers get the CRT view), ?city= for Boise, London, Amman, Cairo, Gaza and Beirut, and the /sms endpoint. It has a Dockerfile, but it is not deployed publicly yet; the public site is the static, hourly build.

How we built it with Kiro

All of it is logged session by session in KIRO_LOG.md, with the raw prompts and console logs of the December sessions in kiro-sessions/.

Surface: Kiro CLI. Every Kiro session was Kiro CLI 3.0.0 on a Linux box, mostly headless (kiro-cli chat --no-interactive), with the Auto model. We did not use the Kiro IDE, Kiro Web (paid plan) or Kiro Crew, so we can't honestly compare them. What the CLI gave us: a spec → implement → test loop we could script and log, and a session that loads the workspace's steering, hooks and MCP servers (--trust-workspace). The whole December build (four sessions) used 18.56 of the 50 free monthly credits.

Spec-driven development. Six specs in .kiro/specs/ (page-renderer, feed-editor, text-gateway, teletext-mcp, static-publish, content-polish), each with EARS requirements, a design with correctness properties, and a task list Kiro ticked off. Each Kiro session started by writing or extending a spec, then implemented its tasks, then ran the tests. Compared with vibe coding, the spec made Kiro handle edge cases we would have skipped: an empty lang string (UNSUPPORTED_LANG) versus a missing one (MISSING_FIELD), error messages that never leak filesystem paths, and an MCP fixture with a row of exactly 40 columns that includes Arabic diacritics. It also made follow-ups cheap: when the first hourly run published the weather page as OFF AIR, we added requirements R17–R20 to the existing spec and Kiro added retries for the CI run only, leaving the live server unchanged.

Steering. .kiro/steering/ holds product, tech, structure, bilingual and teletext-rules (40×24, 8 colours, wrap on word boundaries, overflow becomes subpages and never silent truncation, page numbers 100–899). tech.md pins zero runtime dependencies and erasable TypeScript run directly by Node; every Kiro session kept to it, with no npm install anywhere.

Agent hooks. .kiro/hooks/ has a v1 Stop hook ("run npm test, keep the README page map in sync") and a PostFileSave hook that re-renders every page and enforces 40×24 when page or grid code is saved. The Stop hook visibly fired at the end of each December session: Kiro took an extra turn after its summary to re-run the tests and check the README page map. We have no log evidence that the PostFileSave hook fired in the headless CLI. The older IDE-format .kiro.hook files are kept for comparison.

MCP. Kiro wrote teletext-mcp from its spec in one session, including an end-to-end test that spawns the server and talks JSON-RPC over real stdio. We registered it in .kiro/settings/mcp.json. In the next session, Kiro called our own MCP server (get_page 200/ar returned the Arabic news page; 101/en returned "No snapshot", which is exactly the gap the next spec closed) before it built the publisher. The publisher then uses the same MCP core as its deploy gate.

Property-based testing. We have no PBT library, so the tests use a seeded generator (test/prop.ts): word wrap never exceeds 40 columns, loses no words and keeps digits in order in EN and AR (500 cases); every rendered subpage is exactly 24 rows of 40 columns or fewer (100 random pages); the Page Editor's compressFeed has five properties at 400 runs each; and a 1,000-case MCP property says random page and language strings never throw and always return a success or one of the six defined errors. Honest note: no property has caught a real bug yet. The bugs Kiro fixed were in example-based tests.

Custom agents and Powers. None. The "Page Editor" is deterministic TypeScript run by GitHub Actions, not an LLM agent and not Kiro running in CI.

Pre-existing work disclosure. The repo was created Nov 1, 2026, inside the submission period. The first commit (562a5fa: renderer MVP, first steering and spec drafts, old-format hooks) was drafted with a general AI coding assistant before Kiro was signed in. Everything from Nov 3 onward was built in Kiro CLI sessions, except small hand edits that are listed in KIRO_LOG.md: session dates, a README sentence, a missing sdk: docker line, and repo settings and pushes.

Challenges we ran into

  • Arabic in a fixed grid. String length isn't visible width (diacritics take no column), RTL lines must right-align inside a left-to-right terminal, and numbers have to survive the bidi transform. The width function and tests treat harakat as zero-width.
  • Static hosting has no content negotiation. GitHub Pages can't send curl text and browser HTML from the same URL, so the publisher writes .txt and SMS snapshots next to each viewer, and the viewer's help line links them instead of pretending curl host/100 works.
  • Shared CI egress. The first hourly run got no answer from the weather API. Instead of hiding it, the page goes OFF AIR, the log says why, and the CI-only fetch policy retries with backoff.
  • Arabic navigation bar. The bottom bar of Arabic pages started with a digit, so browsers and terminals laid it out left to right and the items came out scrambled. Kiro moved each label in front of its number, marked the row right to left, right-aligned it in plain text, and added tests for the order, width and direction.
  • Staying lean. Free credits only: three bounded sessions, each with a written prompt and a hard stop.

Accomplishments we're proud of

  • Bilingual pages small enough to arrive as a single packet over 2G.
  • A self-checking pipeline: tests → grid check → publish → MCP validation gate → deploy, every hour, with no secrets.
  • Kiro building an MCP server and then using it in its own next session.
  • 63 tests, all passing, including a test that keeps third-party brand names off our own pages.

What we learned

Specs plus steering are what keep an agent honest about constraints. Kiro kept to zero dependencies, 40×24 and "never truncate silently" in every session because those rules live in files, not in our heads. Writing a spec for a follow-up (R17–R20) was faster than explaining the bug in chat.

What's next

  • A real SMS gateway (text-gateway task 3) so a feature phone can text P888.
  • Deploy the full server (Dockerfile ready) for live curl negotiation and ?city= pages.
  • Mosaic block-graphics headers (page-renderer task 6) and more crisis pages: shelters, water points, clinic hours, in more languages.

Built With

Share this project:

Updates

Submission history