# marzer/tomlplusplus

Header-only TOML config file parser and serializer for C++17.

Repository: https://github.com/marzer/tomlplusplus
Canonical: https://ross.abutalabs.com/products/tomlplusplus
Homepage: https://marzer.github.io/tomlplusplus/
Language: C++
License: MIT
License Family: permissive
Topics: toml, cplusplus-17, cplusplus-20, header-only, configuration-files, cpp, cpp17, cpp20, parser, serializer, c-plus-plus-17, c-plus-plus-20, toml-parser, toml-parsing, json, no-dependencies, utf-8, unicode, single-file, tomlplusplus
Last push: 2026-07-21T09:41:59+00:00

## Health v2 (maintenance only)
Score: 65/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 93, release rhythm 8, longevity 100
- inputs: {"age_days": 2471, "days_push": 43, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2132, forks 215 (observed 2026-08-28T04:06:17.239902+00:00)

## What it is
toml++ is a header-only C++17 library for parsing and serializing TOML configuration files, with optional serialization to JSON and YAML. It passes the full toml-test suite, handles UTF-8 properly, and works with or without exceptions and RTTI.

## Use cases
- parse toml config files in c++
- read configuration files in a c++17 project
- convert toml to json or yaml in c++
- write toml files from c++
- header-only toml parser with no dependencies
- parse toml from strings or streams

## When to choose
- you need a spec-compliant TOML v1.0.0 parser for C++17 or later
- you want a dependency-free, header-only library you can drop into a project
- you need to serialize TOML data to JSON or YAML
- you need proper UTF-8 handling and support for compilers without RTTI or exceptions

## When to avoid
- you need a runtime library rather than a compile-time header-only dependency
- your project targets C++ standards older than C++17
- you need a general-purpose configuration format beyond TOML/JSON/YAML
- you need incremental or streaming parsing of very large files

## Facets
- artifact type: library
- maturity: stable
- function: parser, serialization, json, configuration-management
- domain: parsers, developer-tools, files, cross-platform
- platform: cpp, cross-platform, windows
- tags: toml, header-only, cpp17, cpp20, yaml, unicode, single-file, no-dependencies, linux, macos

## Member repositories
- marzer/tomlplusplus (main) score 65

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:17.239902+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-30T02:52:05.443663+00:00, confidence not recorded.
  - readme: https://github.com/marzer/tomlplusplus (fetched 2026-08-28T04:06:17.239902+00:00, sha 44e5f1d31ecd)
  - homepage: https://marzer.github.io/tomlplusplus/ (fetched 2026-08-29T10:32:05.646028+00:00, sha a98f6d775df5)
- Data as of 2026-08-30T08:39:29.467469+00:00.
