Repository navigation
Home
Groundbreaking edited this page Oct 2, 2025
·
1 revision
Welcome to the TOMLy wiki!
Welcome to the official documentation for TOMLy - a high-performance, fully compliant TOML v1.0.0 parser for Java.
TOMLy is a modern Java library for parsing and writing TOML configuration files. It offers unique features like comment preservation, flexible configuration options, and a type-safe API while maintaining excellent performance.
Current Version: 1.0.0 Last Updated: October 2025 Java Requirement: 17+
- Full TOML v1.0.0 compliance
- High performance (fastest among Java TOML libraries)
- Comment and blank line preservation
- Type-safe getters with default values
- Round-trip serialization
- Detailed error reporting with line/column information
- Flexible configuration for parsing and writing
- Installation - How to add TOMLy to your project
- Getting Started - Your first steps with TOMLy
- Configuration Options - PreserveOptions and WriterOptions
- Type-Safe API - Working with different data types
- Working With Comments - Preserving and accessing comments
- Modifying And Saving - Changing values and writing TOML
String toml = """
name = "MyApp"
version = "1.0.0"
[database]
host = "localhost"
port = 5432
""";
TomlDocument doc = Tomly.parse(toml, false, PreserveOptions.defaultOptions());
String name = doc.getStr("name"); // "MyApp"
int port = doc.getInt("database.port", 8080); // 5432- Report Issues
- TOML Specification
Found an error in documentation? Want to improve examples? Contributions are welcome! Please open an issue or pull request on GitHub.