Every library in the loft registry. Each one is written in loft itself, so its source reads like your own code. Install one with loft install <name>, then use <name>; in your program.
| Library | Version | What it gives you |
assets | 0.5.0 | A game's content pack that IS a loft store — art, audio and the scenes that place them, range-read off a static file server. No codec, no parse step, no server-side code. |
audio_bus | 0.1.3 | A mixer for game audio — buses that multiply, and a duck that restores exactly |
fixstep | 0.1.4 | A fixed simulation step in exact integer time — clock, bank, one-shot timer |
game_protocol | 0.1.7 | The message types a multiplayer game's client and server share — envelopes, kinds and constructors; pure loft, transport-agnostic |
input | 0.2.6 | Game input for loft — action/axis bindings resolved to per-tick input state. |
stage | 0.18.10 | A retained 2-D scene for loft: a node tree you mutate, with transforms, clipping, batching, pointer routing and widget states |
time | 0.4.1 | Date/time arithmetic on millisecond-since-epoch integers — proleptic Gregorian, same model as JavaScript Date. Pure-loft; identical results on interp, --native, WASM. |
tween | 0.1.2 | Property tweens in exact integer time — eleven easing curves, chains and groups |
| Library | Version | What it gives you |
hex_body | 0.3.6 | The moving body — rigs, revolute joints with computed limits, pure poses, and collision proxies. hexbody's own body model, part of the hex_* family. |
hex_draw | 0.1.4 | Draw a model into the field, and read its wall surface back. |
hex_edge | 0.2.6 | Collision as an edge set, and the analytic surfaces behind it. |
hex_field | 0.1.7 | Exact-integer hex cell sets and their outlines — the base of the hex_* family. |
hex_fit | 0.1.5 | The doorstep — refuse at authoring time what would not round-trip. |
hex_form | 0.1.7 | The exact turtle form on the hex lattice, and its canonical text. |
hex_grid | 0.1.4 | Hex-grid geometry — pointy-top, ODD-R OFFSET coordinates: coordinate/pixel conversion, neighbours, distance, corners and canonical edges, plus a square local basis for right-angled structures placed on the hex world. |
hex_place | 0.1.3 | Place, seat and combine — the operations a model survives. |
hex_recover | 0.1.6 | Rebuild a model from the field — exactly, or with a reported residual. |
hex_roof | 0.1.9 | Roof profiles as a height field, and the fit that recovers them. |
hex_shape | 0.1.8 | The line primitive, the box and the arc — the shape vocabulary of the hex_* family. |
hex_way | 0.1.6 | A way is an exact centreline plus offsets, never a rasterised band. |
mesh3d | 0.1.5 | 3D geometry primitives — Vec/Mat, Mesh, Scene, Camera, Light. Standalone (pure-loft, no GPU). |
shapes | 0.5.4 | 2D geometry primitives — Rect, Circle, overlap tests, clamp. Pure-loft, no other deps. |
| Library | Version | What it gives you |
drawing | 0.4.3 | Render a .draw scene — a sprite authored as lines of text — pixel-identically to the Python renderer it replaces |
glb | 0.1.7 | glTF 2.0 binary (.glb) writer — exports Mesh / Scene as a glb file readable by Blender, three.js, gltf-validator. Standalone (pure-loft, no GPU). |
graphics | 0.9.12 | 2D canvas + 3D rendering for loft (Canvas pixel surface, Mesh / Scene / glTF, OpenGL bindings). |
gridmesh | 0.2.6 | Chunk-local mesh-generation primitives for world-building algorithms. |
imaging | 0.4.4 | PNG load/save + pixel manipulation for loft (Stage A — interpreter + native; wasm bridge deferred pending loft-host-ffi crate). |
lavition_ui | — | Panel layout, hit-testing and text metrics for an in-engine editor UI: rectangles and hits, with no world, no lattice, no window and no GL. |
mesh3d | 0.1.5 | 3D geometry primitives — Vec/Mat, Mesh, Scene, Camera, Light. Standalone (pure-loft, no GPU). |
stage | 0.18.10 | A retained 2-D scene for loft: a node tree you mutate, with transforms, clipping, batching, pointer routing and widget states |
text2d | 0.4.6 | Text that always draws — a built-in face, a glyph atlas, measured metrics, wrapping and alignment, with no font file and no GL context |
| Library | Version | What it gives you |
html | 0.1.3 | HTML escaping helpers for loft. |
markdown | 0.2.5 | Markdown-to-HTML rendering for loft — headings, inline spans, slugify, link rewriting. |
regex | 0.5.0 | Small-script regex: `search`, `matches`, `capture` / `capture_all` with groups, `replace_on` and a lazy `split_on`, with a thread-local pattern cache. |
text2d | 0.4.6 | Text that always draws — a built-in face, a glyph atlas, measured metrics, wrapping and alignment, with no font file and no GL context |
zttext | 0.1.6 | A text engine for loft: piece-table content core, transactional undo, and portable layout with measurement injected |