I resurrected WAP with Kiro: the 1999 mobile web, rebuilt for people who pay per megabyte
I wrote this post as part of the Kiroween 2026 hackathon, where the Resurrection category asks you to bring a dead technology back to life. Open the Wikipedia article on Kampala, Uganda's capital, and your browser downlo
I wrote this post as part of the Kiroween 2026 hackathon, where the Resurrection category asks you to bring a dead technology back to life.
Open the Wikipedia article on Kampala, Uganda's capital, and your browser downloads about 726 KB of HTML. That's before a single image, stylesheet or script.
That number matters here. In Uganda and across East Africa, many people still browse on basic phones and buy data in small bundles. Every page costs real money.
So for Kiroween I dug up a technology that solved this problem 25 years ago, and gave it a modern engine. It's called Revenant.
What WAP was, and why it died
In 1999, phones had tiny monochrome screens, slow networks and almost no memory. The Wireless Application Protocol (WAP) was the industry's answer. Instead of web pages, servers sent decks of cards written in WML, a small XML language. Each card was one screen of text. You moved between them with the keypad.
WAP even had its own security layer, WTLS, so pages could travel safely between the phone and the gateway.
Then smartphones arrived with full browsers, and WAP faded away. But the problem it solved never went away. It just moved to the people the modern web forgot.
What Revenant does
Revenant is a modern WAP gateway. A server-side transcoder takes today's content and turns it into small cards that fit a classic 14x6-character phone screen. Every card stays under 1,000 bytes and every deck under 1,400 bytes, and the app shows you exactly what each screen cost.
There are four services:
• Wikipedia: search with T9, then read any article page by page. The Kampala article comes in at about 1.4 KB per deck, over 500 times smaller than the normal page.
• Weather for Kampala, Gulu, Mbarara and Jinja.
• Money: exchange rates in Uganda shillings.
• Ask: type a question, and Gemini answers it from Wikipedia in a few cards. "Capital of Uganda" comes back in about 215 bytes, with a link to its source.
It isn't only a retro skin. The same engine serves Revenant three ways:
- A browser simulator, with a keypad, softkeys, T9 typing and a green LCD.
- /lite, plain HTML with no JavaScript, for real feature-phone browsers. The number keys jump straight to links, and the home page is 557 bytes.
- /wml, genuine WML 1.1, served as text/vnd.wap.wml for actual WAP browsers.
Two more ideas came from WAP itself:
• Signed cards. WAP had WTLS, so Revenant signs every response with Ed25519, and the browser checks each signature with Web Crypto. A green "signed" badge sits next to the byte counter.
• An on-chain proof. A snapshot of signed pages is hashed into a Merkle root and anchored on the Base Sepolia testnet. Anyone can recompute the hashes and compare.
The AI follows two rules. It answers only from the Wikipedia text it was given, and if that text doesn't contain the answer, it says so instead of guessing. If the AI is down or out of quota, Revenant falls back to a plain summary, so it never breaks.
How I built it with Kiro
I built Revenant in the Kiro IDE, starting from an empty repo. Four Kiro features did most of the work.
Steering docs. Before any code, Kiro wrote five short steering files. The most useful was device-constraints.md, which holds the screen sizes, the byte budgets and the key mapping. Once those limits were written down, every feature Kiro added later respected them without me repeating them: WML output, the no-JavaScript site, even the AI answers. I kept each file under 40 lines, because steering is loaded into every request.
One spec. The spec had EARS-style requirements, like "WHEN content exceeds a card's rows, THE system SHALL paginate it into further cards, never dropping words." It also had a design and a task list. Kiro stopped once so I could approve it, then built the core, the adapters, the API and the simulator from the task list. Later features came as short, bounded prompts in Vibe mode, each with the same Definition of Done: typecheck, lint, tests and build must all pass.
Agent hooks. Two hooks run whenever the agent saves a file: the core tests for anything in src/core, and the typecheck for any TypeScript file. One surprise: hooks only load when a session starts, and they fire on the agent's saves, not mine.
My own MCP server. I added a small read-only MCP server to the project with two tools, render_deck and measure_deck. Then I used it from inside Kiro. Asking it to measure the Kampala article returned 11 cards and 1,293 bytes, all within budget. Asking it to render the first card showed something the tests had missed (more on that below).
The bugs the tests caught, and one they didn't
The backbone of Revenant is property-based testing with fast-check. Instead of a few hand-picked examples, each test throws hundreds of generated inputs at a rule: random text of any length, garbage JSON, markup, control characters, even prompt-injection text. Then it checks that the rule always holds.
Those tests caught real bugs:
- Long Wikipedia titles made link paths longer than the API's 200-character limit, so the links would have been rejected. Every hand-written test had used short titles.
- Characters like ] slipped unencoded into /wml and /lite links.
- The AI parser kept stray text after the line where the model lists its sources.
My MCP server found a fourth. Rendering the Kampala article showed (UK: , US: ) on the first card. The sanitizer had stripped out the pronunciations and left the empty brackets behind. Kiro fixed it and added a property that no empty bracket group survives.
The fifth bug taught me the most. On the live site, I asked "capital of Uganda". The first card said Kampala, but the source line split across two cards, leaving a card that just said "Kigali." Kigali is the capital of Rwanda. A second, unrelated search result had been cited, and on a tiny screen it read like the answer. Every test passed. Only looking at the real output caught it. Now Revenant cites only the sources the answer actually used, and a property guarantees that no card is ever just a source fragment.
Building on a credit budget
I'd spent most of my Kiro credits on an earlier, much bigger project, so Revenant had to be lean. If you're a student in the same position, here's what worked for me:
• One compact spec, not several. The spec settled the architecture, and later features fit around it.
• Short steering docs. They load into every request, so every line costs something.
• Tell the agent to be economical. My prompts asked for concise replies, batched file writes, targeted tests per task, and the full checks only at milestones.
• Do the manual steps yourself: deployment, environment variables, keys, the testnet wallet.
• Batch your bug reports. I clicked through the live site myself and sent everything I found in one message.
What's next
I haven't tested /lite and /wml on a physical feature phone or through a real WAP gateway yet, so that's first. After that: cards in Luganda and Swahili, an SMS or USSD front end, offline caching, and anchoring on mainnet.
The web got heavier for 25 years. Revenant is a small bet that it doesn't have to be.
Try it
• Live app: https://revenant-henna.vercel.app/
• Code: https://github.com/kida256-glitch/revenant
Built for Kiroween 2026 with Kiro. #KiroweenHackathon26
Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.

