Skip to content

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.

PackageWhat it isEntry points
@bendyline/molen-kernelMolen headless deterministic simulation kernel (no DOM, no three.js). · ./aircraft · ./character · ./content · ./determinism · ./kinematics · ./platformer · ./scripting · ./terrain · ./testing · ./vehicles · ./world
@bendyline/molen-clientMolen rendering client: three.js wrapper, snapshot sync, interpolation. · ./aircraft · ./audio · ./camera-track · ./markers · ./navigation · ./vehicles · ./vite
@bendyline/molen-schemaMolen data formats: schemas, validator, and error formatter.
@bendyline/molen-toolingMolen agent tooling: molen CLI and MCP server over a shared ops library.
@bendyline/molen-terrainMolen terrain capability: heightfield sampling (kernel) and chunked LOD meshing (client)./kernel · ./client
@bendyline/molen-worldgenMolen worldgen capability: data-driven buildings from outlines and prop placement in labeled polygons (kernel) with three.js uploads (client)./kernel · ./client
@bendyline/molen-worldgen-earthEarth 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-earthMolen 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-figuresMolen figures capability: stylized human, biped and quadruped rigs, gaits and sockets (kernel) with procedural skinned bodies (client)./kernel · ./client
@bendyline/molen-ambientMolen 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-materialsMolen materials: pixel grids, SVG and procedural material graphs (rungs 2-4). No three.js..
@bendyline/molen-packMolen content packs: build, open and read zip packs of models and documents from any source. · ./cache · ./node
@bendyline/molen-pathfindingMolen pathfinding: grid flow fields for many-unit (RTS) movement.
@bendyline/molen-physics-rapierMolen opt-in Rapier rigid-body physics: body<->ECS mirroring, hybrid snapshot.
@bendyline/molen-entitiesMolen entity library: ids and helpers for the molen.entities content pack (trees, rocks, aircraft, vehicles).
@bendyline/molen-input-reactMolen optional React controls for editing keyboard and joystick profiles.

Where to start ​

37 guides · 36 schema formats · 41 API entry points · 10 samples. API, CLI and schema pages are generated from the shipped build.