Helpful tools for use in Pkl projects.
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-09-02 09:34:04 +01:00
.github Run the Pkl formatter and add a formatting step to CI. 2026-06-17 14:36:40 +01:00
release Add some instructions for making a release. 2025-04-02 17:14:36 +01:00
staticcode Release staticcode@1.1.1 2026-09-02 09:34:04 +01:00
.gitignore Initial implementation. 2025-04-01 12:36:25 +01:00
LICENSE Initial implementation. 2025-04-01 12:36:25 +01:00
README.md Add some instructions for making a release. 2025-04-02 17:14:36 +01:00
SECURITY.md Initial commit 2025-03-31 15:43:20 +01:00

Pkl Tools

Some helpful tools for use across all of our Pkl projects. Currently there is only a single tool, StaticCode, a renderer that generates Swift or Kotlin code with values directly inline within the code (in contrast to pkl-swift and pkl-codegen-kotlin which load the values in at runtime from a .pkl file).

Usage

The tools in this repo are available as Pkl packages in the following format: "package://pkg.pkl-lang.org/github.com/element-hq/pkl-tools/<NAME>@<VERSION>. This can be imported directly into a Pkl file:

import "package://pkg.pkl-lang.org/github.com/element-hq/pkl-tools/staticcode@1.0.0#/StaticCode.pkl"

Or within a project:

amends "pkl:Project"

dependencies {
  ["staticcode"] { uri = "package://pkg.pkl-lang.org/github.com/element-hq/pkl-tools/staticcode@1.0.0" }
}

Releasing

Instructions to make a new release of a package can be found in the release directory.