# ToruNiina/toml11

TOML for Modern C++

Repository: https://github.com/ToruNiina/toml11
Canonical: https://ross.abutalabs.com/products/toml11
Homepage: https://toruniina.github.io/toml11/
Language: C++
License: MIT
License Family: permissive
Topics: toml, c-plus-plus-11, c-plus-plus, parser, serializer, c-plus-plus-14, c-plus-plus-17, header-only, toml-parser, c-plus-plus-20
Last push: 2025-12-03T15:01:10+00:00

## Health v2 (maintenance only)
Score: 55/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 55, release rhythm 28, longevity 100
- inputs: {"age_days": 3423, "days_push": 273, "days_rel": 564, "gap_med": 33, "n_releases_24m": 2}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1294, forks 186 (observed 2026-08-28T04:04:16.290797+00:00)

## What it is
toml11 is a feature-rich, header-only TOML parsing and serialization library for C++11/14/17/20. It fully complies with the TOML v1.0.0 specification, provides clear error messages with locations, preserves comments and formatting information, and supports type conversions to STL containers.

## Use cases
- parse TOML configuration files in C++
- serialize C++ data structures to TOML
- read config files with comments preserved
- convert TOML values into STL containers
- get clear error messages with line locations when parsing TOML
- support TOML 1.1 features in a C++ project

## When to choose
- you need a spec-compliant TOML parser for modern C++
- you want a header-only library with no dependencies
- you need to preserve comments and formatting when round-tripping TOML files
- you want detailed, location-aware parse error messages

## When to avoid
- your project uses a language other than C++
- you need a general-purpose configuration format like YAML or JSON instead of TOML
- you need runtime-driven dynamic schemas beyond TOML's type system

## Facets
- artifact type: library
- maturity: stable
- function: parser, serialization
- domain: developer-tools, files
- platform: cpp, cross-platform
- tags: toml, header-only, c-plus-plus, config-files

## Member repositories
- ToruNiina/toml11 (main) score 55

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:16.290797+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:54:03.983828+00:00, confidence not recorded.
  - readme: https://github.com/ToruNiina/toml11 (fetched 2026-08-28T04:04:16.290797+00:00, sha af274d8c31c6)
  - homepage: https://toruniina.github.io/toml11/ (fetched 2026-08-29T12:10:45.919177+00:00, sha 5f9ae056aab2)
- Data as of 2026-08-30T08:39:29.467469+00:00.
