Inspiration

In Uganda and across East Africa, many people browse on basic phones and pay for data by the megabyte. The modern web wasn't built for them: a single Wikipedia article page is about 726 KB of HTML, before any images or scripts. In 1999, WAP solved this with tiny text "decks of cards" made for small screens and expensive networks. Smartphones killed it. We wanted to bring it back with today's tools.

What it does

Revenant is a modern WAP gateway. A server-side transcoder turns Wikipedia, weather, exchange rates and AI answers into small cards that fit a classic 14×6-character phone screen and a strict byte budget: under 1,000 bytes per card and 1,400 bytes per deck.

  • Three ways to load it: a browser feature-phone simulator with T9 typing and softkeys; /lite, plain HTML with no JavaScript for real feature-phone browsers, where keys 1–9 jump to links; and /wml, genuine WML 1.1 for WAP browsers.
  • Every byte is shown. Each screen shows the real size of what it just loaded. The Kampala article arrives in about 1.4 KB per deck:

$$\frac{726\ \text{KB}}{1.4\ \text{KB}} \approx 500\times \text{ smaller}$$

  • AI gateway. Ask answers questions from Wikipedia with Gemini in a few cards and always cites its source ("capital of Uganda" comes back in about 215 bytes). Brief (AI) condenses any article. If the sources don't have the answer, it says so. If the AI fails, it falls back to a plain summary.
  • Signed cards. WAP had WTLS for security. Revenant signs every response with Ed25519, and the browser verifies each signature with Web Crypto. A snapshot of signed pages is anchored on the Base Sepolia testnet, viewable under About → Proof.
  • Built for agents too. A read-only MCP server (render_deck, measure_deck) lets AI agents read the compact web.
  • Data-friendly by design. Weather for Ugandan towns, UGX exchange rates, two screen sizes, and going back costs 0 bytes because visited decks are cached.

How We built it

We built it in Kiro, from an empty repo:

  • Steering docs (5 short files) hold the screen sizes, byte budgets, key mapping, allowed APIs and the Definition of Done, so every feature respected them.
  • One spec with EARS requirements, a design and a task list drove the foundation; later features were added as short, bounded prompts.
  • Two agent hooks run the core tests and the typecheck whenever the agent saves a file.
  • Property-based tests (fast-check) cover pagination, T9, navigation, hostile input, WML well-formedness, /lite safety, signature tampering and AI output.
  • Our own MCP server, used from inside Kiro to render and measure real decks.

Stack: Next.js 15, TypeScript, Vercel. The core is pure TypeScript with no network or framework imports. Signing uses node:crypto, the on-chain anchor uses viem, and the AI calls Gemini with plain fetch. No database, no accounts.

Challenges We ran into

  • Hostile input. Every external string is untrusted, so property tests fed the parsers huge, malformed and prompt-injection text.
  • Honest numbers. The byte counter measures the real uncompressed size of each response, and the comparison counts article HTML only. The README says exactly what each number means.
  • A misleading AI answer. On the live site, "capital of Uganda" first showed a lone "Kigali." card, even though every test passed. I fixed the citation logic and added a property that no card is ever just a source fragment.
  • Limited credits. An earlier, larger project used most of my Kiro credits, so Revenant had to be lean: one spec, short steering docs, batched requests.

Accomplishments that We are proud of

  • Real old protocols, not just a retro skin: valid WML 1.1 and a no-JavaScript feature-phone site, both checked by property tests.
  • Five real bugs caught by property tests, my MCP server and live testing.
  • Grounded AI that cites its source, falls back gracefully and never leaks its key.
  • A cryptographic, on-chain proof of what was served.

What we learned

Spec-driven development with tight steering keeps an AI agent on track, and property-based testing finds edge cases nobody writes by hand. We also learned to check real output: a test suite can pass while the product still says something misleading.

What's next for Revenant

Testing /lite and /wml on physical feature phones and a real WAP gateway, Luganda and Swahili cards, an SMS or USSD front end, offline caching, and mainnet anchoring.

Built With

Share this project:

Updates

Submission history