Skip to content

apple/pkl-pantry

Repository files navigation

Pkl Pantry

This is a monorepo of packages that are maintained and published by the Pkl team.

Using packages

Packages within this repository are published as package://pkg.pkl-lang.org/pkl-pantry/<NAME>@<VERSION>.

Direct imports

Modules from package can be imported directly. For example, the below line imports module toml.pkl from package pkl.toml at version 1.0.0:

import "package://pkg.pkl-lang.org/pkl-pantry/pkl.toml@1.0.0#/toml.pkl"

In a project

If using a project, add a package as a dependency:

amends "pkl:Project"

dependencies {
  ["toml"] { uri = "package://pkg.pkl-lang.org/pkl-pantry/pkl.toml@1.0.0" }
}

Documentation

The documentation for all packages published here can be found in our Package Docs website.