Skip to content
Konjure / spatial intelligence
Browse docs

Konjure DSL

Write reusable programs with types, enums, traits and typed systems.

A type owns data and methods. An enum makes alternatives explicit. A trait defines a contract. An entity holds components, and a system schedules their behavior. Start with ordinary values and functions, then use them to build an active world.

Chapters

Try a program

This function adds a list of numbers. The output is 7. Change 4 to 8 and press Run; the output becomes 11. The same Rust implementation checks and runs the source in the browser and in native applications.

More
Tick 0 · 0.00 s
main.kj⌘ / Ctrl + Enter
Results
Loading the language runtime…
Output 0
No output.

Continue with Language basics, or follow the first scene tutorial to build and control three rotating objects.

Reference

The earlier declarative compiler has its own scene format reference.