Appearance
API reference
Generated from the built .d.mts of every published package — the same files npm ships — so this reference always matches the current release.
Every package is ESM-only and needs Node 22.13 or newer. Capability packages (terrain, worldgen, figures) have no . export: import /kernel for simulation-side code and /client for the three.js side.
| Package | What it is | Entry points |
|---|---|---|
@bendyline/molen-kernel | Molen headless deterministic simulation kernel (no DOM, no three.js) | . · ./aircraft · ./character · ./content · ./determinism · ./kinematics · ./platformer · ./scripting · ./terrain · ./testing · ./vehicles · ./world |
@bendyline/molen-client | Molen rendering client: three.js wrapper, snapshot sync, interpolation | . · ./aircraft · ./audio · ./camera-track · ./markers · ./navigation · ./vehicles · ./vite |
@bendyline/molen-schema | Molen data formats: schemas, validator, and error formatter | . |
@bendyline/molen-tooling | Molen agent tooling: molen CLI and MCP server over a shared ops library | . |
@bendyline/molen-terrain | Molen terrain capability: heightfield sampling (kernel) and chunked LOD meshing (client) | ./kernel · ./client |
@bendyline/molen-worldgen | Molen worldgen capability: data-driven buildings from outlines and prop placement in labeled polygons (kernel) with three.js uploads (client) | ./kernel · ./client |
@bendyline/molen-worldgen-earth | Earth binding for Molen worldgen: terrain-semantics adapter, OSM label mapping, and lon/lat region atlas (kernel) with terrain tile renderers (client) | ./kernel · ./client · ./worker |
@bendyline/molen-earth | Molen Earth view: an embeddable real-world 3D view (streamed terrain, worldgen buildings, orbit/walk/drive navigation, vehicles, and map markers) behind one mountEarthView call | |
@bendyline/molen-figures | Molen figures capability: stylized human, biped and quadruped rigs, gaits and sockets (kernel) with procedural skinned bodies (client) | ./kernel · ./client |
@bendyline/molen-ambient | Molen ambient-life capability: transport networks built from roads, rail and paths, with lane-following NPC cars, trains, aircraft and pedestrians spawned around an observer (kernel) and instanced rendering (client) | ./kernel · ./client |
@bendyline/molen-materials | Molen materials: pixel grids, SVG and procedural material graphs (rungs 2-4). No three.js. | . |
@bendyline/molen-pack | Molen content packs: build, open and read zip packs of models and documents from any source | . · ./cache · ./node |
@bendyline/molen-pathfinding | Molen pathfinding: grid flow fields for many-unit (RTS) movement | . |
@bendyline/molen-physics-rapier | Molen opt-in Rapier rigid-body physics: body<->ECS mirroring, hybrid snapshot | . |
@bendyline/molen-entities | Molen entity library: ids and helpers for the molen.entities content pack (trees, rocks, aircraft, vehicles) | . |
@bendyline/molen-input-react | Molen optional React controls for editing keyboard and joystick profiles | . |
Where to start
@bendyline/molen-kernel—buildWorld, the ECSWorld, commands, and the deterministic scheduler.@bendyline/molen-client—mountExperienceand the three.js renderer.@bendyline/molen-schema— the format registry, validator, and component vocabulary.@bendyline/molen-tooling— every CLI/MCP operation as a plain(input) => outputfunction.