LARPiverse

A Reddit-style social network where every user lives in their own fantasy world. All posts, DMs, and images are rewritten to fit your own world while keeping the meaning. A post about your cat knocking your phone off the table becomes a dragon toppling a scrying orb, or a mammoth knocking over the talking rock. Everyone reads the whole site, DMs and pictures included, in their own world.

Try it: https://larpiverse.vercel.app GitHub Repo: https://github.com/cthmayo/larpiverse

This was completed as a solo project.

AI disclaimer: Claude Code was used to assist in the building of this site. Multiple AI APIs are used as part of the site in order to dynamically rewrite content to fit a given theme: Groq (gpt-oss-120b, with gpt-oss-20b and Google Gemini as fallbacks) rewrites text and judges game answers, and Cloudflare Workers AI (FLUX.2 [klein]) repaints profile photos and post images.

Inspiration

For the last 10 years, my Facebook account's language has been in pirate. I wondered what it would be like if everyone could be in their own world, with the content of their social media matching the world they want to LARP in. A pirate and a Victorian lady should be able to argue about the best pub in Cambridge, each hearing the other in their own vernacular. LARPing (live-action role-playing) is all about committing to a world, so I built a social network where the site commits to it for you.

What it does

When you join, you pick one of six worlds: 🚀 Sci-Fi, 🏴‍☠️ Pirate, 🎩 Victorian, 🐉 High Fantasy, 🦴 Caveman or 💘 Rom-Com. You then write normally, and everything is rewritten into every world:

  • Posts and comments keep their meaning but change their world. Comments are rewritten with the post and the comment they reply to as context, so names and places stay consistent through a whole thread.
  • DMs are rewritten into both people's worlds, so a caveman and a starship officer can chat, each in their own voice.
  • Pictures are repainted. Upload a profile photo and each world paints its own portrait of you (a pirate captain, a Victorian sitter, a cave dweller). Attach an image to a post and each world re-imagines it.
  • The interface changes too. Each world has its own skin, fonts, background painting, tab icon and vocabulary ("hollers", "scrawled by"). Hover over, or long-press, any themed word to see the English.
  • Activities. Themed YouTube Shorts ("Reels"), a word game per world (Piratle, Spacele, Crushle…), and a rarity quiz (Piratillion, Dragonillion…) where you score more for naming the rarest correct answer.
  • A (joke) economy. Earn $LARPIV coins (an actual cryptocurrency) in each world's own currency (doubloons, credits, shiny rocks, kisses) and spend them on 24 collectable badges spread across the six worlds' shops, or on a paid blue "Verified" tick. Coins can even be minted as a real ERC-20 on the Base Sepolia testnet.
  • All the social basics: votes, Hot/New/Top, friends with search and suggestions, Facebook-style pokes, notifications, search, editing and deleting (Reddit-style rules), profiles and stats.

How I built it

  • Backend: Python and FastAPI with server-rendered Jinja templates and vanilla JavaScript (no frontend framework), using SQLModel on Postgres (Neon), deployed on Vercel.
  • Rewriting: one LLM call per post or comment returns every world at once, as structured JSON. A fallback chain (Groq gpt-oss-120b → gpt-oss-20b → Gemini) moves on instantly when a model is rate-limited or returns bad output, all inside a shared time budget so a request never hangs.
  • Self-healing translations: if a world is missing a version (a failed call, or a world added later), viewing the page fills it in, so the site repairs itself as people read.
  • Images: uploads are cleaned with Pillow (location and camera metadata stripped), repainted by FLUX.2 [klein] on Cloudflare Workers AI using the photo as a reference image so you stay recognisable, and stored in Cloudflare R2. Each world is painted lazily the first time someone views it there, then cached forever.
  • Games and coins are server-side, so answers never reach the browser early, and every payout has a unique ledger reference so nothing can be paid twice.

Challenges I ran into

  • Free tiers are the real constraint. Groq's free tier allows about 8,000 tokens a minute, and I measured each repainted image at about 200 of Cloudflare's 10,000 free daily "neurons" (about 49 images a day). I designed around that: one call per post for all six worlds, lazy per-world image generation, daily budgets, and placeholders that tell you honestly when the day's allowance is used up.

Accomplishments that I'm proud of

  • It genuinely works across worlds: the same conversation reads completely differently, and still makes sense, depending on who's looking.
  • Image repainting that keeps your likeness, with privacy built in (metadata stripped, originals never shown to anyone else).
  • A site that degrades gracefully: when an AI provider is down or a quota runs out, you see the original text or a friendly placeholder, never an error page.
  • A lot of features for one weekend, all mobile-friendly, and covered by tests.

What I learned

  • How to design around the limits of free AI services: batching, caching, lazy generation, and budgets measured rather than guessed.
  • That good fallbacks matter as much as good prompts: models get rate-limited, deprecated and overloaded.

What's next for LARPiverse

  • More worlds: Noir detective, Wild West, Cyberpunk, Ancient Rome…
  • Subforums ("crews", "guilds", "tribes")
  • Higher capacity APIs to support a wider userbase

Built With

Share this project:

Updates

Submission history