All projects

MadeInChat

Checking

Owner · Developer

Made in Chat is a Twitch-chat mafia game where viewers rise through the ranks by typing commands, form crews and fight for turf on a city map, with an OBS overlay and website.

TypescriptHonoDrizzlePostgresTailwindCSSTwitch
MadeInChat preview

Uptime

Embed a status badge
MadeInChat status badge
[![MadeInChat status](https://tomdev.xyz/badge/madeinchat.svg)](https://tomdev.xyz/status)
<a href="https://tomdev.xyz/status"><img src="https://tomdev.xyz/badge/madeinchat.svg" alt="MadeInChat status"></a>

Overview

A mafia game played entirely through Twitch chat. Viewers rise from Lurker to Head of the Table by typing commands, form their own crews and fight other crews for turf on a city map.

The problem

Chat games usually stop the moment a stream ends and flood chat with bot replies. The goal was a game that runs around the clock, works for a few minutes of casual play, and stays inside Twitch rate limits.

How it's built

  • Chat is the input; an OBS overlay and a website carry the rich output, so the bot stays well within Twitch rate limits.
  • The game is always on: crimes, banking, crews and turf work at any time, and going live adds bonuses, events and ceremonies on top.
  • Content such as crimes, ranks, items and events is data, not code, so new features are additions rather than rewrites.
  • Balance is tunable from a single economy file: crew size and district caps, underdog bonuses, and fights decided by odds.
  • A pnpm monorepo splits the bot, the Hono API, the web overlay and shared database code, with load-test and balance tooling alongside.
  • Self-hosted on a Windows Server VPS behind a Cloudflare tunnel.

Architecture

  1. Players
  2. Services
  3. Shared
  4. Infrastructure

Twitch chat: The only input. Viewers type commands, so there's nothing to install and anyone in chat can play.

Features

  • Rank progression from Lurker to Head of the Table
  • Crimes, cooldowns, jail and an in-game economy with banking
  • Viewer-run crews (up to 8 members) fighting for districts on a city map
  • Held turf keeps a standing garrison and locks down after each fight
  • Live-stream bonuses driven by Twitch online/offline events
  • OBS overlay pages and a companion website
  • Per-account rate limits and caps per viewer, with no pay-to-win

From the devlog