Interactive REPL
Run kria with no arguments. Persistent session, multi-line input, and command history.
A dynamic, strongly typed language with a flat bytecode VM and combined loop
instructions for high-performance execution. Write .krx files or use the
interactive REPL.
Run kria with no arguments. Persistent session, multi-line input, and command history.
Named functions, lambdas, and nested closures with copy-on-create capture semantics.
Mutable and immutable arrays, object literals, deep equality, and for-in iteration.
Multi-file projects with export fn and import alias from "./file.krx".
fn greet(name) {
return "Hello, " + name
}
set message = greet("Kria")
print(message)
Explore documentation
Get started with Kria in just a few steps. You can build from source with Rust or use platform-specific installation scripts.
Before building Kria, make sure you have the Rust toolchain installed on your system. If you don't have Rust yet, visit the official installer.
cargo build
This creates a debug build. Useful for development and testing.
cargo build --release
This creates an optimized release binary. The binary is located at target/release/kria.
For Linux / macOS:
cd release
./build.sh install
This installs Kria to ~/.kria/bin. Make sure this directory is in your PATH.
kria
Starts the interactive REPL where you can write and execute Kria code. Variables and functions persist until you exit or reset.
REPL commands:
:help — Show available commands:quit or :exit — Exit the REPL:reset — Clear all variables and functionskria -v
# or
kria --version
kria test.krx
Execute a Kria program from a .krx file.
To create an installer, you'll need NSIS.
cargo build --release
cd release
makensis kria-setup.nsi
# Then run the installer
release\kria-1.0.0-windows-x86_64-setup.exe
Install to ~/.kria/bin (make sure it's in your PATH).
cd release
./build.sh install
Create a distributable archive:
./build.sh package
Creates kria-<version>-<os>-<arch>.tar.gz
Enhance your Kria development experience with the official VS Code extension. Get syntax highlighting, code completion, and go-to-definition support.
Once you've installed Kria, try running a simple script:
kria test.krx
Check out the full source code and releases on GitHub, or dive into the documentation to learn the language.