Guides
Use these guides when you are wiring PistonConfig into an application, choosing a backend, defining typed access, or planning upgrade behavior.
Start with the full startup flow, then branch into the access style or operational feature your project needs.
Core Workflow
Getting Started
Load, merge, override, read, and save a document.
Installation
Install modules with Gradle, Maven, the BOM, Maven Central, and GitHub Packages.
Multi-Format Apps
Dispatch loaders by extension and keep application behavior format-neutral.
Manual API
Edit documents, nodes, comments, paths, and decorations directly.
Typed Access
Custom Serialization
Encode domain value objects through typed serializers or static-field codecs.
Annotation Configs
Map Java records and classes to typed config files.
Static Fields
Declare typed keys once and read values through shared property declarations.
Choose an Access Style
Compare manual nodes, typed stores, static fields, and custom serialization.
Operations
Format Backends
Choose YAML, TOML, HOCON, JSON-family, or properties support.
Merge Defaults
Merge shipped defaults into existing user documents safely.
Environment Overrides
Apply process environment and system property values on top of files.
Migrations
Run ordered schema migrations and store the applied version.
Testing Configs
Test codecs, mappings, migrations, and round-trip behavior.
Diagnostics
Report missing values, invalid types, and source-aware config errors.