# Codex: every EnigMafia role, generated from the ruleset

The Codex lists every role in the shipped EnigMafia ruleset (the June 2026 bible: 67 roles and 20 statuses). Each card is generated from the same typed JSON documents the engine resolves, so the text a player reads can never drift from what the game actually does.

## What a role card shows

- The role's faction, its attack and defense levels, and its investigative group.
- Each ability in plain language, with the notes and rulings that apply to it.
- The role's win condition.

## How to use it

Search roles, abilities, rulings and win conditions, or filter the list by faction. The Codex runs entirely in your browser with JavaScript enabled; the ruleset itself is published as JSON in the [EnigMafia repository](https://github.com/KarthikSubramanian07/Enigmafia/tree/main/rulesets/enigmafia-2026-06).

Related pages: the [Arena](https://mafiosa.pages.dev/arena) to watch roles interact, and the [Ruleset Lab](https://mafiosa.pages.dev/lab) to write your own.
