
Pkl Has a Free API: Apple's Configuration Language That Replaces YAML and JSON
Pkl (pronounced "pickle") is Apple's open-source configuration language that brings type safety, validation, and IDE support to configuration files — replacing error-prone YAML, JSON, and TOML. Why Pkl Matters YAML configs are the #1 source of production incidents. A wrong indent, a missing quote, a string where a number should be — YAML catches none of these. Pkl catches ALL of them at evaluation time. What you get for free: Static types and validation for all configuration IDE support with auto-complete (VS Code, IntelliJ) Generates YAML, JSON, plist, or Java/Kotlin/Swift properties Templates and inheritance — DRY configuration Constraints and validation built into the schema Package management for sharing config schemas Quick Start # Install curl -fsSL https://pkl-lang.org/install.sh | sh # Evaluate a Pkl file to YAML pkl eval config.pkl -f yaml # Evaluate to JSON pkl eval config.pkl -f json # Validate against schema pkl eval --project-dir . config.pkl Basic Configuration // config.
Continue reading on Dev.to DevOps
Opens in a new tab



