REGIA is a simulated parliament that lets you stress-test a law before it becomes real — a tool for civic education and policy debate prep, not a prediction machine.

Five simulated deputies each represent one region of Tunisia — Tunis, Sidi Bouzid, Gafsa, Sfax and Kasserine — with real regional dossiers (population, economy, water, industry, development level). You propose a law — one of four presets, or write your own: just the title and the text. An advisory AI review reads your law, estimates its real effects and flags absurd or harmful content (for example, selling alcohol to minors is blocked on a child-protection reading of the Constitution), and a deterministic engine computes each deputy's vote: approve, reject or abstain, from how the law moves three indicators per region (economy, resources, cohesion). There are no effect sliders in the form — a real parliament never votes on sliders, only on the law's text.

Before the vote, the deputies deliberate: each one takes a stance, argues in one or two sentences, and nudges the vote by at most ±3 points — and every nudge is shown per deputy as "Base · AI · Final". The deputies remember: after each vote the site stores one summary line per deputy, and the next deliberation shows it as a "Recall" note. The engine stays the decider; the AI only assesses and speaks.

Live news matters: the app fetches real regional and world headlines automatically (Google News RSS + Mosaique FM RSS, fresh items only, last 3 days) and applies them as shocks to the indicators before the vote. When no fresh trusted item exists, the panel shows verified cached headlines and labels them "Cached" — per item, not just in the header.

The signature feature is the Amendment Effect — one law, two votes, two futures: after the first vote, the losing region gets a real amendment — +3 to its weakest indicator, FUNDED by −2 from the region that gained most, written into the law's own text as a clause — and the parliament votes a second time. A "What did this simulation teach us?" section then reads the lesson back from the real numbers, and a "How REGIA Works & Its Limitations" page says plainly what the simulation is and is not. A 3D parliament chamber shows the vote live, seat by seat.

REGIA is a simplified experimental simulator, clearly labelled as such. No fake realism: votes start from the engine, debate text comes from the LLM, the legal review is advisory (not a legal finding), the indicator values are illustrative simulation values (not real statistics), and when every AI provider fails the vote falls back to a recorded run labelled "Precomputed demonstration" — the demo never dies live.

Built With

  • drei
  • functions
  • gemini
  • gemini-3.5-flash-lite
  • google-news-rss
  • groq
  • localstorage
  • mosaique-fm-rss
  • openai/gpt-oss-120b
  • openrouter
  • openrouter/free
  • react
  • react-three-fiber
  • serverless
  • three.js
  • typescript
  • vercel
  • vite
Share this project:

Updates

Submission history