This library is in flux. APIs may change without notice. Generated from source on 3/14/2026.

Package

package.kz - Package manager integration for Koru

package.kz

package.kz - Package manager integration for Koru This module provides events for declaring Koru package dependencies distributed via various package managers (npm, cargo, go, pip). NOTE: These are for importing KORU PACKAGES that happen to be distributed through these package managers, not for importing native JS/Rust/Go/Python code directly into Koru. Usage: ~std.package:requires.npm { "@korulang/sqlite3": "^0.0.1", "@koru/graphics": "^1.0.0" } Then run: koruc main.kz i Or: koruc main.kz install This will: 1. Collect all package:requires.npm invocations from your code 2. Generate package.json 3. Run npm install
~[comptime|command]pub event install {
    program: *const Program,
    allocator: __koru_std.mem.Allocator,
    argv: []const []const u8,
}
// Koru packages distributed via npm
~[comptime|norun]pub event requires.npm {
    source: Source
}
// Koru packages distributed via Cargo
~[comptime|norun]pub event requires.cargo {
    source: Source
}
// Koru packages distributed via Go modules
~[comptime|norun]pub event requires.go {
    source: Source
}
// Koru packages distributed via pip
~[comptime|norun]pub event requires.pip {
    source: Source
}