Spire CodexSpire CodexSPIRECODEX
Cards & Combat
Card LibraryRelic CollectionPotion LabPowersKeywords
The Run
CharactersBestiaryEncountersEventsAncientsMerchant
Systems & Meta
Custom ModeMechanicsUnlockables
Reference
TimelineImagesReferenceBadgesCompare CharactersGuides
Jump back in

Pages you open show up here.

Rankings
Tier ListCard MetricsScoring
Aggregate data
Community StatsChartsStatsEncounters
Runs
LeaderboardsBrowse RunsSubmit a Run
Make & share
Tier List MakerShowcase
Companion apps
Overlay (Overwolf)Knowledge Demonbot
Build with the data
DevelopersAPI
Project
Spire CodexChangelogNewsThank You
Support
PatreonKo-fiFeedbackEmail
Elsewhere
DiscordGitHubPrivacyTerms
Live
OverwolfSpire Codex is now on Overwolf. Get the in-game overlay with live card lookups and one-click run uploads. Learn more →

About Spire Codex

Spire Codex is a comprehensive database for Slay the Spire 2, commonly abbreviated StS2, built by reverse-engineering the game files. Every card, relic, monster, potion, event, and power on this site was extracted directly from the game's source code and localization data.

The project started from curiosity about how StS2 was built, and grew into a full API and website. The goal is to provide the kind of detailed, searchable reference that the Spire community deserves.

If you're wanting to get involved, feel free to open a PR on GitHub. This repo is downstream of where the project is hosted, so it may take a bit before your PR gets fully merged. The project has an open API that is free to use and self-hostable. And if you're wanting to chat about the project, come visit the Discord where I send updates and discuss the project.

Big thanks to everyone supporting the project, see the Thank You page for Ko-fi supporters and community contributors.

What's Inside

How It Works

Slay the Spire 2 is built with Godot 4, but all game logic lives in a C#/.NET 8 DLL. The data pipeline:

1
PCK Extraction
GDRE Tools extracts the Godot .pck file, images, Spine animations, localization data (~9,947 files)
2
DLL Decompilation
ILSpy decompiles sts2.dll into ~3,300 C# source files containing all game models
3
Data Parsing
17 Python parsers extract structured data from decompiled C# source + localization JSON
4
Spine Rendering
Headless Node.js renderer assembles skeletal animations into 512×512 portrait PNGs (130+ sprites)
5
API + Frontend
FastAPI serves parsed data as a REST API with 20+ endpoints; Next.js frontend consumes it

Features

Detail Pages
Click-through pages for cards, characters, relics, monsters, and potions with full stats
Global Search
Press . anywhere to search across all categories instantly
Rich Text Rendering
Game BBCode tags rendered with colors, animations, and inline icons
Character Dialogues
NPC conversation trees and character quotes from the game's localization
Spine Renders
130+ monster and character sprites rendered from skeletal animations
REST API
Full API with filtering, search, and Swagger docs for your own projects
Changelog Tracking
Field-level diffs between game updates across all categories
Image Downloads
Browse and download all extracted game art by category

Tech Stack

Backend
Python, FastAPI, Pydantic
Frontend
Next.js, TypeScript, Tailwind
Rendering
Node.js, Playwright, spine-webgl
Infra
Docker, Forgejo CI

This project is for educational purposes. All game data belongs to Mega Crit Games. This should not be used to recompile or redistribute the game.

API·Developers·GitHub·Discord·Ko-Fi··Privacy·Terms·Beta Site