Your dataoutlivesthe app.
ART/GTO Solver writes each solve as .art, its native binary format, and exports it to .artgto. The export is built on two open standards, zstd and CBOR, wrapped in a documented container layout. Anyone, in any language, with no proprietary tooling, can write a reader for it.
Commercial solvers — PioSolver, GTO+, MonkerSolver — store output in undocumented proprietary binaries. Reverse-engineering usually violates the licence. Migrating between solvers is impossible. If the company shuts down or stops shipping updates, the libraries you paid for go with them.
zstd and CBOR, in a documented container
The export is built on zstd for compression and CBOR (RFC 8949) for binary data encoding, wrapped in a short container layout. The full spec fits on a page. zstd and CBOR are maintained by IETF working groups and Facebook — not by a poker company.
What the open export buys you.
Your data outlives the app.
If ART/GTO ceases development tomorrow, every .artgto file you own stays fully readable. The underlying encodings are maintained by IETF and Facebook, not a poker vendor.
No vendor lock-in.
Switching viewers, building your own inspector, integrating solved data into other tools — none of it requires permission.
Multi-language ecosystem.
Python, JavaScript, Rust, Go, C++, Java, Swift, Kotlin, Ruby, C# — all have first-class zstd + CBOR libraries. A working reader is typically a few dozen lines.
Web-native.
Header at the front, index at the end. HTTP range requests fetch just the section needed at any moment — browser viewers don’t download multi-hundred-MB files to display one runout.
Multiple viewers, one dataset.
Anyone can build a specialised viewer — a mobile training app, a coach’s quiz interface, a side-by-side comparison tool — without the source.
Statistical aggregation at scale.
5,000-spot libraries enable analytics closed formats can’t: average bluff frequencies, c-bet sizing distributions, mixed-strategy prevalence by board texture. A weekend project, not a PhD thesis.
The solver, not the data.
The open format covers consumption of solved data. Production — the CFR engine itself — remains ART/GTO’s. A third party can build any viewer they like on top of .artgto, but they can’t produce their own without the solver. This asymmetry is deliberate: it makes the data the product and the viewer a commodity that anyone is free to improve.
Building on .artgto.
The full specification follows, written densely enough that pasting it into an AI coding assistant (Claude, ChatGPT, Copilot) produces a working reader in any language with one well-formed prompt. No external documentation required.
Read the full specification here
Container layout
bytes 0..4 Magic number: ASCII "ARTG" (0x41 0x52 0x54 0x47) bytes 4..8 Format version: u32 little-endian (currently 1) bytes 8..16 Index offset: u64 little-endian — byte position of the index bytes 16..N Payload sections (one or more) bytes N..EOF Index section
The header is written last during export, so its index_offset field always points at the actually-written index. To read: validate magic, read the index offset, range-fetch the index from there to EOF, then range-fetch payload sections on demand.
Section encoding
section_bytes = zstd_compress(cbor_encode(<section_object>))
Every section is an independent zstd stream — no shared dictionary, no need to read the whole file to decode one. CBOR (RFC 8949) is a binary equivalent of JSON; any CBOR library returns a native object (map, array, string, integer, float).
Index section
{
"format_version": 1,
"precision": "u8",
"sections": {
"manifest": { "offset": u64, "length": u64 },
"rivers": {
"<section_key>": { "offset": u64, "length": u64 },
...
}
},
"meta": { ... }
}River section keys follow "{chance_external_id}_{turn_card}{river_card}" (e.g. "42_2c7h"). The manifest lives under the literal key "manifest".
Manifest section
The manifest contains metadata (board, ranges, pot, stacks), the global action dictionary (shared across the spot), and the top of the tree from the flop root down to but not including each river subtree.
{
"version": 1,
"kind": "manifest",
"metadata": {
"board": ["2h", "3h", "9d"],
"starting_pot": <int>,
"effective_stack": <int>,
"rake_rate": <float>,
"rake_cap": <float>,
"bet_sizing_profile": <string>,
"oop_range": <string>,
"ip_range": <string>,
"solver_iterations": <int>,
"solver_target_pct": <float>
},
"actions": [
{ "id": <u32>, "kind": <string>, "label": <string>,
"amount": <int>, "player": "OOP" | "IP" },
...
],
"nodes": [ ...flat array of node objects... ]
}Action kind values: fold, check, call, bet, raise, allin. Children referenced by id; parents via parent on each child.
River sections
{
"version": 1,
"kind": "river_tree",
"tree_id": <u32>,
"turn_card": "<card>",
"river_card": "<card>",
"nodes": [ ...flat array of node objects... ]
}Critical: within each river section, node ids restart at 0. The section is self-contained — its root node (the post-river-deal decision) has id 0, and all child references are local. tree_id is the only cross-section pointer, linking back to the parent chance_external in the manifest.
Node types
Three node types appear in any nodes array, discriminated by type:
{
"id": <u32>, "parent": <u32 | null>, "via_action": <u32 | null>,
"via_card": <string | null>, "type": "decision",
"street": "flop" | "turn" | "river",
"to_act": "OOP" | "IP",
"pot": <int>,
"available": [<action_id>, ...],
"strategy": { "<combo_class>": [<freq>, ...] },
"combos": {
"<combo_class>": [
{ "c": "<combo>", "w": <weight>, "p": [<freq>, ...], "eq": <equity> },
...
]
},
"freqs": [<total_freq>, ...]
}combo_class = hand category ("AA", "AKs"). c = exact combo ("AcKd"). w = weight in range. p = per-action mix. eq = combo equity vs opponent range.
{
"id": <u32>, "parent": <u32 | null>, "via_action": <u32 | null>,
"type": "chance",
"from_street": "flop" | "turn",
"to_street": "turn" | "river",
"children": { "<card>": <child_id>, ... }
}Used when the next-street subtree is small enough to keep inline. Children refer to nodes within the same section.
{
"id": <u32>, "parent": <u32 | null>, "via_action": <u32 | null>,
"type": "chance_external",
"from_street": "turn", "to_street": "river",
"external_refs": { "<card>": "<section_key>", ... }
}Used at turn→river when each river subtree is large enough to warrant its own section. external_refs[card] is a key in the index’s sections.rivers map.
Numeric quantization
The precision field in the index is currently "u8". All strategy frequencies (strategy[*], p, freqs), combo weights (w), and equities (eq) are stored as unsigned bytes in 0..=255 and decoded by dividing by 255:
float_value = byte_value / 255.0
Costs ~0.2% precision, roughly halves file size vs f32. Future versions may use other precision strings ("f32", "f16"); readers should branch on precision.
Reading flow
- Read 16 bytes from offset 0. Validate magic =
b"ARTG". Parseversion(u32 LE) andindex_offset(u64 LE). - Range-read
index_offsetto EOF. zstd-decompress, CBOR-decode → index object. - Note
index.precision— determines how to decode numeric values. - For the spot summary: use
index.metadirectly. - For the strategy tree: range-read
index.sections.manifest, decompress, decode. Walkmanifest.nodesfromid == 0. - At a
chance_externalnode: look up the chosen card inexternal_refs→ section key → byte range fromindex.sections.rivers. Range-read, decompress, decode. Walk from the river section’sid == 0. - When applying numeric fields: divide stored u8 by 255 to recover the 0..1 float.
Reference implementations
Loads an .artgto file, decodes every section, validates structure, cross-checks against legacy JSON. Use as a reference for decoding logic. Requires cbor2 and zstandard.
The HTML/JavaScript viewer that powers the inspector. Uses fzstd (WebAssembly zstd) and an inline CBOR decoder. Section reading starts at artgtoReadHeader and artgtoFetchSection.
AI prompt note
This page is self-contained. Paste the technical reference into Claude, ChatGPT, or Copilot with a request like “write a Rust reader for this .artgto format” and you’ll get a working implementation. The format spec is short enough to fit in a single prompt; the reference implementations above are short enough to read end-to-end.
Format versioning
The header reserves a version field (currently 1). Breaking changes ship as version bumps; readers should branch on version and reject unsupported values rather than guess. The format_version field in the index mirrors the header for defence in depth.