One of you is lying. A party game for your phone, in English, French and German.
Full manual with a step-by-step playthrough: docs/MANUAL.md
- Everyone gets the same secret word, except the imposter, who only gets the topic (or nothing).
- Take turns saying one word about the secret. Don't make it too easy: the imposter is listening.
- Vote for who you think the imposter is. A tie means you discuss again.
- Caught? The crew wins. Wrong person? The imposters win.
- Two ways to play
- One phone: pass it around. Each player taps to see their card, then hides it for the next.
- Every phone: the host creates a room, and everyone else joins with a 5-character code, a shared link or by scanning the QR code in the app. Each phone only ever receives its own card.
- 1,080 words across 27 topics, from Food and Animals to Switzerland, Space, Fantasy and Nerd, all in EN/FR/DE with Swiss German wording (Velo, Glace, Gipfeli).
- Your own words: each player secretly writes words and hints, then the game draws from them. Whoever wrote a word is never the imposter for it.
- AI help (on by default, optional): words players write themselves are checked on submit. Typos are autocorrected, words that are too hard are rejected, and if someone writes a word another player already wrote (exactly or with the same meaning), both are cancelled and both players write a new one. A crew member who doesn't know their word can tap Explain with AI. Built with the Vercel AI SDK and OpenAI.
- Joker mode: an imposter who survives a vote earns a joker. Next time they're the imposter, they get a hint for the word (
S _ _ _ _ _, or the writer's hint). - Multiple imposters, an optional topic clue for the imposter, and topics you can pick or pick all.
- Stats after every round: leaderboard, crew vs. imposter wins, awards (MVP, best liar, detective, most suspected) and charts.
- Settings: light / dark / auto, four color themes (Night, Classic, Forest, Berry) and three languages.
- Built for phones: big tap targets, safe areas, reduced-motion support, and you can add it to your home screen. A reload or accidental Back resumes the game where you left off.
| App | Next.js 16 (App Router) · React 19 · TypeScript · Tailwind CSS 4 |
| Online rooms | Route handlers + Upstash Redis. Roles are computed on the server, and phones check for updates every 1.5 s |
| AI | AI SDK: gpt-6-luna via OpenRouter (OPENROUTER_API_KEY, OPENROUTER_MODEL), OpenAI's priority tier; falls back to gpt-6-luna at OpenAI (OPENAI_API_KEY, OPENAI_MODEL). Server only, rate-limited per client |
| Icons / QR | lucide-react · qrcode · jsqr (only loaded when you scan) |
| Tests | node:test unit tests · Playwright end-to-end tests on a phone viewport, including a fake camera for the QR scanner |
| Hosting | Vercel |
src/
app/page.tsx one-phone game + setup
app/r/[code]/page.tsx online room (one per phone)
app/api/rooms/ create / join / act / view
components/ settings sheet, scanner, stats, joker, icons
lib/game.ts rounds, word picking, jokers
lib/room.ts room state machine (server)
lib/i18n.ts, topics.ts, vocab.ts texts + word lists
just setup # dependencies, git hooks (prek), Playwright browser
just dev # http://localhost:3000, online rooms use an in-memory store
just test # unit tests
just e2e # Playwright end-to-end tests (starts the dev server)
just check # everything before a releasejust lists all recipes (see also AGENTS.md).
scripts/upstash-local.mjs serves Upstash's REST API from a local Redis:
redis-server --port 6380 --daemonize yes
npm run redis:local
export UPSTASH_REDIS_REST_URL=http://localhost:8079 UPSTASH_REDIS_REST_TOKEN=local
npm run build && npx next start -p 3100
BASE_URL=http://localhost:3100 npm run e2eVercel with the Upstash for Redis integration, which sets KV_REST_API_URL / KV_REST_API_TOKEN, plus OPENAI_API_KEY for AI help. Without Redis, the one-phone game works, online rooms answer "not available yet", and AI stays off: its rate limit needs shared storage. Without an OpenAI key, word checks fall back to exact duplicates only.
Pushes to main deploy to production automatically (./scripts/connect-vercel-git.sh re-links the repo if needed).
Install / apps: the site is an installable PWA (Settings → Install app; one-phone games work offline). Native wrappers via Capacitor load the live site, so every deploy updates them too: just app-android builds a debug APK (Android SDK + JDK 21), just app-ios opens the Xcode project (needs full Xcode). Icons/splash come from assets/ (npx capacitor-assets generate). Note: Google blocks sign-in inside app web views, so AI sign-in in the apps needs an in-app browser flow before a store release.
Admin page (/admin): games per day, rooms, sign-ins, AI calls and tokens, the list of signed-in accounts, and a switch that turns AI off for everyone. Only the Google/GitHub accounts in ADMIN_EMAIL (comma-separated, set in Vercel) can open it; everyone else gets a 404. The numbers are Redis counters (metrics:*), kept for about a year.
Sign-in for AI help (Google, GitHub, Microsoft via Better Auth): register the callback https://whoislying.ch/api/auth/callback/<provider> (and http://localhost:3000/... for local dev) with each provider, then run just auth-setup. It asks for the client IDs and secrets (never echoed), stores them in .env.local and Vercel production, and sets BETTER_AUTH_SECRET / BETTER_AUTH_URL. just redeploy puts them live.