Vigil

News that expires in a week unless readers vote to keep it alive, built on Arkiv.

Vigil

Created At

ETHGlobal Mumbai

Project Description

Vigil is a news app where every story has a lifespan. An editor posts a story with a one-week fuse. Readers watch it burn down and vote to keep it burning or let it fade. When voting closes with a day left, the count is frozen. If enough people took part and more than half chose keep, the story is renewed for another week. Otherwise it expires and disappears.

Most news is read today and forgotten tomorrow, and the stories that matter most, like an unresolved water cut or a promised review that never happens, drop off the feed before anything is resolved. Vigil lets readers decide what stays visible, instead of an algorithm. A story survives only while people choose to keep it alive.

An editor pulls candidates from live RSS feeds (starting with The Hindu's national feed) and posts them. Each story and each vote is a record on Arkiv, a Web3 database with built-in expiry, so a story's lifetime is a real property of the data, not a cron job on our server. Votes are public and anonymous: a vote stores only a choice and a salted hash, so anyone can recount the tally from Arkiv instead of trusting us.

Status: the full loop works from RSS to Arkiv to voting to renewal or fade. World ID verification is simulated in this build (identity is a placeholder cookie). The vote path is built so a verified World ID nullifier can replace it.

How it's Made

Stack: Next.js 15 (App Router), React 19, TypeScript and Tailwind CSS v4. The UI is a dark "night watch" design. Its signature element is a CSS "burn line", a fuse that shortens as a story runs out of time, with a tick marking where voting closes.

Arkiv is our only database. Stories and votes are typed entities on the Rabdi testnet, written with @arkiv-network/sdk 1.0 and viem. Schemas use indexed columns for the fields we filter on, and a JSON bytes column for headline and summary, because string columns are capped at 128 bytes. Stories use the readonly flag and a 7-day expiration. We deliberately left permissionless extension off, since it would let anyone override the vote. Reads are scoped by $creator so only our editor and relayer wallets are trusted, because anyone can write entities under our schema name. Tallies use filtered count queries, and the keeper renews passing stories with extendEntity. Arkiv gave us expiry, queries and tamper-evidence with no backend database.

Working:

  • RSS inbox: a small standard-library RSS parser (no dependency) that handles CDATA and entities, and skips items missing a title, description, category, link or date.
  • Editor page: a key-protected "Post to Vigil" route writes the story entity.
  • Vote relayer: a separate wallet writes one readonly vote entity per voter per round, so readers need no wallet or gas. The voter id is a salted hash of identity, story and round, so votes can't be linked across stories or rounds.
  • Keeper: a route plus a small Node loop script. After voting closes it reads the tally, applies the same rule function the UI uses, and extends the story if it passes. Arkiv emits no expiry event, so it polls.

Hacky bits worth mentioning:

  • Rounds without extra entities: each vote carries the story's expiry block as its round id. Extending a story changes that block, so a renewal starts a fresh empty round with no extra write.
  • Rabdi write reliability: following Arkiv's own guidance, every write sets an explicit nonce read at "latest", plus gasPrice and gas. A per-wallet queue serializes writes so nonces never collide.
  • Round length and quorum are environment variables, so a week-long vote can be demoed in about 10 minutes.
background image mobile

Join the mailing list

Get the latest news and updates