# Pkl

> A configuration-as-code language with rich validation and tooling

Source: https://talira.ai/catalog/pkl-85gnh4vy
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Programming language
- Categories: [developer tools / programming languages / configuration](https://talira.ai/categories/developer-tools/programming-languages/configuration)
- Platforms: macos, linux, windows[^3]
- Licence: Apache-2.0[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Typing: Dynamic[^4]
- Paradigms: Configuration[^2]
- Latest release: 0.33.1 (18 Nov 2026)[^5]
- Backed by: [Apple](https://talira.ai/orgs/apple.md)
- Funding: public company (NASDAQ:AAPL)[^6]

Pkl (pronounced "pickle") is Apple's configuration-as-code language, a blend of a static configuration format and a general-purpose programming language. You define data once in Pkl, with classes, type annotations and constraints that validate it, and generate JSON, YAML, property lists, Java properties and other formats from it. It can also be embedded in applications for runtime configuration, with code generators for Java, Kotlin, Swift and Go, and a Spring Boot integration. Modules are shared as packages published to any web host and imported by `package://` URI. It ships as a CLI (native executables for macOS, Linux and Windows, or a Java build), a library and a Gradle plugin, with a language server and editor plugins for IntelliJ, VS Code and Neovim. Apache-2.0 licensed.

## Links

- Website: https://pkl-lang.org/
- GitHub: https://github.com/https://github.com/apple/pkl
- Docs: https://pkl-lang.org/main/current/introduction/index.html

## Libraries for Pkl

Talira doesn't list any yet.

## Problems it solves

- generate my Kubernetes YAML from one typed source instead of copying files
- validate configuration values before they reach production
- a typed configuration language that catches mistakes in my YAML
- which config language should we use instead of templated YAML
- share configuration templates between teams as versioned packages
- load typed configuration into a Java, Kotlin, Swift or Go application
- write CI workflow config with checking and reuse instead of raw YAML

## Features

- generate JSON, YAML, property lists and Java properties from one source
- classes, type annotations and constraints that validate configuration
- code generation for Java, Kotlin, Swift and Go
- embed in applications for runtime configuration (JVM, Swift, Go)
- packages published to any host and imported by package:// URI
- pkldoc documentation generator
- language server and IntelliJ, VS Code and Neovim plugins
- native CLI executables that start instantly

## Limitations

- No 1.0 release yet: the latest release is 0.33.1, and release notes for each 0.x version list breaking changes

## Capabilities

- Has a command line tool: plan not known
- Has official SDKs: plan not known

## Trust

Overall: 0.77 out of 1.
Signals: maintenance 1.00, adoption 0.81, momentum 0.77, community 0.79, backing 0.55, extensibility 0.20.

- last commit today
- 118 commits in the last 90 days
- latest release 0.33.1 6 days ago
- 11.6k GitHub stars
- 94 contributors
- backed by Apple
- funding: public company (NASDAQ:AAPL)

## Alternatives

- [CUE](https://talira.ai/catalog/cue-3grjf0fr.md): Validate, define, and use dynamic and text-based data
- [Nickel](https://talira.ai/catalog/nickel-6h57zkq8.md): Better configuration for less
- [KCL](https://talira.ai/catalog/kcl-hq9kgy2r.md): An open-source constraint-based record and functional language for configuration and policy
- [HCL](https://talira.ai/catalog/hcl-pczpmjqa.md): The HashiCorp configuration language
- [Jsonnet](https://talira.ai/catalog/jsonnet-j43k4twn.md): A configuration language for app and tool developers
- [Starlark](https://talira.ai/catalog/starlark-wvv3bmfb.md): A Python dialect designed as a configuration language, made for Bazel

## Sources

[^1]: https://github.com/apple/pkl/blob/main/LICENSE.txt (checked 24 Nov 2026)
[^2]: https://pkl-lang.org/main/current/introduction/index.html (checked 24 Nov 2026)
[^3]: https://pkl-lang.org/main/current/pkl-cli/index.html (checked 24 Nov 2026)
[^4]: https://pkl-lang.org/main/current/language-reference/index.html (checked 24 Nov 2026)
[^5]: https://github.com/apple/pkl/releases/tag/0.33.1 (checked 24 Nov 2026)
[^6]: https://data.sec.gov/submissions/CIK0000320193.json (checked 20 Nov 2026)
