All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Swimming. Open water is something you get into:
Ocean,LakeandPoolpublish where their surface is, and thePlayerwades (slowing from the knee up), swims where the still water is over half its height, and stands again a little shallower. Afloat it rides the swell the water draws, with its eye just over the surface. NewPlayerprops:swimSpeed(1.5),swimSprintSpeed(2.6, with therunkey) andswim(falseturns it all off). - Diving. Leaving the ground over water at least a body deep, moving, with the feet 0.3 m or more over the surface, is a dive: head first, a glide under the surface, then up. From a standstill the avatar drops in feet first.
- Climbing out. A swimmer pushed into a bank, a step, or a ledge up to 0.6 m over the water (a pool's rim, a low dock) is lifted onto it, so a shore too steep for the controller's ground spring still lets you out.
Personswims. Strokes are built in as canonical humanoid poses: it treads water when still, swims breaststroke up to 1.9 m/s and a front crawl above, and makes an arrow of itself in a dive. APlayer's body follows the avatar; a figure placed in water over half its height treads at the surface, and a walker swims the stretch of its route that crosses water. Names, bubbles, emotes and prompts ride over a swimmer's head. New propswim(falsekeeps a figure on its feet under water).strokePose(stroke, phase, pose)and theStroketype are exported.PlayerMotion.swim('swim' | 'dive' | 'glide' | null),immersionandsubmerged, so a remote copy of a player swims as they do.PoseContextcarriesswimandsubmerged; aPoseSourcewith aswim(ctx, out)method is asked for the stroke in the water, and one without it leaves the built-in strokes to play.useWater(body),waterAt(waters, x, top, z),planeWater(object, size, { wave, depth })anduseWorld().watersin@runek/core: the registry of water a figure can get into. A water component of your own joins with oneuseWatercall.- Swimming down. Hold the new
divecontrol (C by default) and a swimmer goes under at the swimming speed, as far as the bed; let go and it floats back up. A dive carries on down while it is held.PlayerMotion.swimgains'under', and aPersonswims it with a long pull and a frog kick, lying along the way it moves.diveis a world control like the rest: remap it incontrols, or bind it to[]to turn it off. - The view from under water. While a
Player's camera is below the surface, the world's fog becomes the water (its color, and a range as short as the water is clear) and a backdrop of that color stands in for the sky and everything further off; back above, the world's fog is as it was.OceanandLakeare drawn from below too: the sky's light through a window overhead, the sun where it comes down through the surface, a shade of the deep past that, fading out with distance.Pool's water is drawn on both sides. NewPlayerpropunderwater(falseleaves the view as it is above);player/Underwater.tsxcan be mounted beside a camera of your own. Works underWebGLRendererandWebGPURenderer. WaterBody.colorandclarity(what the water looks like from inside), set byOcean,LakeandPooland accepted byplaneWater. The samplewaterAtreturns now carries thebodyit found.- A climbing pose. Getting out over a wall (a pool's rim, a dock: a ledge
over the water whose top stands 0.9 m or more over the bed) is published
as
PlayerMotion.swim: 'climb', withsubmergedcounting down the height the feet still have to rise. APersonreaches for the top, presses up on its hands, brings a knee up and stands. Banks and steps are still a plain lift.Strokegains'under'and'climb'. - Splashes, ripples and a wake. A body in water leaves rings that spread
and fade: a line of them behind a swimmer opens into a wake, a slow one
now and then round a figure treading water or wading, and going in is a
splash sized by the fall, with drops thrown up from a dive. Drawn for the
Player(in first person too) and for everyPersonin water, as two instanced draws that exist only once a body has been in water.Player'sseedsets how its splashes scatter.water/trail.tsxexportsWaterTrailfor a body of your own. Terraingainsshore: the width, in units, of a beach around an island (one withfalloff). Past the land's edge the ground falls 2 units across it at one slope, from just above the world ground to wading depth, before it drops to the deep, so an avatar can walk up out of the sea:shore: 6slopes at about 18°, where the coast of a small island without it runs past 60°. Land near the coast is lowered to meet the beach. Worlds that don't setshorekeep every height they had. The workshop's "Island cove" template has one, and its dock now starts on the beach.
- Breaking: a
Playerno longer walks the bed under anOcean, aLakeor aPool: it floats and swims, and water from the knee up slows its walk. APersonplaced in water over half its height floats up to the surface. Passswim={false}to either for the old behavior. - The third-person camera rides higher behind a swimmer: at least 20 degrees over an avatar afloat at the surface, looking down at it, where it used to skim the water at the swimmer's eye level. The mouse and the look keys still raise it further, and under water it follows level.
- The default controls bind
KeyCtodive. A world that already uses C for an action of its own will also dive on it in water: move one of the two, or binddive: [].
OceanandLakestood still underWebGLRenderer, and theOcean's horizon ignored the range of the world's fog: react-three-fiber copies the uniforms it is handed for a<shaderMaterial>, so the clock and the fog range written each frame never reached the shader. The waves move again, and a swimmer rides the swell that is drawn. Both now build their material themselves.Person: no clothing layer passes through another. Each garment sits a few millimetres over the layers under it wherever it covers them, so a hoodie no longer shows the seat of the jeans as two dark ovals and a coat clears a thick sweater, while hems, necklines, sleeve ends and open fronts still show what is under them.Person: a hoodie reads as one, with its hood lying on the upper back and a pouch across the belly, each a fold shade of the hoodie's color.Person: abeltaccessory goes on the bottoms under a top that hangs over the waist (a hoodie, a jacket) instead of round it, and stays over a tunic, coat, dress or robe.Pool's exit steps can be walked: the stockPlayerclimbs from the basin floor onto the deck and back down. The steps were three 0.4 m blocks with a 0.47 m rise to the coping, taller than the avatar floats above the ground, so it stalled against them. The flight now has 0.25 m risers, as many as the depth needs, under one sloped collider that ends level with the coping.Pool's basin walls are solid. They were drawn without colliders, so an avatar walking into one from the basin floor was pressed under the coping, went out through the wall and fell off the edge of the basin floor.Playerkeeps its pace on a slope whichever way it walks. Backing down a 32° ramp went 0.6 m/s and walking across it 0.9 m/s, against 2.2 and 2.5 facing the way it went, and stairs taken backwards were slow the same way. ecctrl's slope ray stayed in front of the camera; it now leads the way the avatar is moving.
0.18.0 - 2026-11-14
- Material slots: a look can name the surface it stands for (
slot: 'asphalt','glass','wood', …, listed inMATERIAL_SLOTS), and<World materials>answers slots with an app's own materials, or a function that makes one from the look. One entry changes every such surface in the world with no component edits; slots it leaves out draw as before. Registry components name their slots (Roaddeckasphalt,Wallplaster,Windowglass, furniturewood, …). (#62) fonts.fallback: a font URL, or a list in order of preference, for text a role's font can't fully draw. ASignis drawn in whichever declared face covers most of its text.runek validatewarns about aSignwhose text the bundled font can't draw, and about unknown font roles. (#66)- Shared reflections:
useMirrorMaterial(look, strength)gives a flat surface the world's reflection for its height, and<World mirrors>caps how many heights reflect (default 2, at half the screen's size). Every reflective surface at one height shares one extra scene render a frame, drawn only while one of them is in view.FloorreflectandRoadwetuse it.scenePass()/inScenePass()keep passes that draw the scene (mirrors,Rift) from nesting. (#63) - Tiled lighting under
WebGPURenderer: everyuseLightpoint lamp gets a light of its own (up tolightBudget.point, default 1024 there), shaded by three'sTiledLighting, so a street of 200 lamps is fully lit with no hand-offs. Spotlights, andWebGLRenderer, keep the light pool. (#65) - Every registry component renders under
WebGPURenderer:Lake,Ocean,Grass,Screen's static,Portal,Rift(live far view included),Skyand its stars,Personskin,Signtext, mirror surfaces and the first-person lens each carry a node (TSL) twin of their GLSL, loaded only when the renderer is WebGPU, so WebGL worlds never downloadthree/webgpu.useNodeRenderer()andlazyModule()in@runek/corelet any component do the same. Under WebGPU aRiftskips its cut-away plane and aSigndraws noglowhalo. (#67) - Streaming for dense worlds:
"stream": true(or{ radius, cell }) in a world file mounts only the top-level nodes near the viewer, from a cell index of their positions and footprints (compositebounds, orsize), with a margin so boundaries don't flicker. 2,000 crates go from 29k meshes to about 300 near the viewer.Player,Sky,Ocean,CloudsandLightRigstay mounted.WorldRenderertakesstreamto override the file. (#64) - Component builds: a component can export its geometry as data,
Component.build = (props, ctx) => Built(parts, colliders, lights), and render it with<BuiltView>/useBuilt. A streamed world mounts such components straight into the scene and the physics world without a React component per node (BuiltNodes), roughly halving the cost of loading a neighbourhood; identical shapes share one geometry and identical nodes build once.CrateandBenchhave builds;stream.build: falseopts out. (#64) <World now>: the world's wall clock, in epoch milliseconds (defaultDate.now). WalkingPersons, theirdepartAttrips, live day/night andClockall read it throughuseWorld().now(), so a multiplayer app can hand every player one server-synced clock and see the same world.clockHours,currentHoursandresolveWorldTimetake an optional instant to read at. (#53)<World renderer>: the renderer to draw with, passed to the canvas as R3F'sgl(parameters, an instance, or a sync or async factory), so an app can run on three'sWebGPURenderer.shadowRatenow also works where the renderer has no shared shadow switch, through each shadow-casting light's own. (#54)useWorld().playerControl: a teleport handle for the player's avatar.playerControl.current?.teleport([x, y, z], { yaw, keepVelocity })moves the body and its camera together, so the view doesn't sweep, and works from outside the canvas (a network message, a button).Riftcarries the avatar through it. (#52)Playerprops for the body and its pace:height,radius,eyeHeight,speed,sprintSpeed, andcameraDistancefor third person. The defaults are the old fixed values. (#55)- A canonical humanoid skeleton on
Personrigs: the bones under their VRM 1.0 names, andapplyPose(rig, pose, weight)writing a pose given relative to a T-pose facing +Z, so the identity pose stands any figure in a T-pose and one authored pose reads the same on every build. Names a rig lacks (upperChest, the shoulders) fold into the bones below.HUMANOID_BONES,HumanoidPoseandhumanoidFromTPose(which measures a glTF rig standing in T-pose) let other rigs share the same clips. (#56) PersonposeSource, andPoseSourceContextto give every figure below it one: a source fills a canonical pose each frame from the figure's speed, distance walked, heading, look direction and leg length, in place of the built-in walk cycle. Authored poses (sitting, waving, drinking) and the head turning to look still play over it, and removing it brings the built-in motion back without a remount. (#57)useWorld().playerMotion: the avatar's live motion for net code, in every view. (#58)- World
luminance: how bright each kind of glowing surface is (screen,sign,tube,lamp,flame), in scene-linear units relative to diffuse white, on<World luminance>and in world files. Screens, monitors, TVs and arcade screens followscreen,NeonStripand an arcade marqueetube, lamp bulbs and the shades and glass they lightlamp, and campfires and torchesflame, so one number in the world file rescales every surface of that kind and a world sets its exposure in one place. Every level defaults to 1, today's look.useLuminance()reads the levels andglowLook(color, level)builds the shared unlit look for a color at one. (#60) Signlit: the text glows, unlit and brightened by the world'ssignlevel (or another level by name), so it reaches bloom. (#60)SigntwoSided: two faces back to back, so a sign standing free of a wall reads left to right from both sides and neither face shows through the other. (#69)- A city kit.
Tower: a procedural tower from a seeded shape grammar (podium, setback, shaft, crown) in foureras (concrete,tenement,glass,makeshift), with shop bays, lit rooms, trims and decals drawn by one shared facade shader that batches, and a facade kit hung on the faces infrontage(lit shops with their names, blade signs, awnings, AC units, pipes, cables, one big sign, light pooled on the pavement). The kit's parts are components too:AcUnit,PipeRun,CableSag,Vent,Awning,RollerShutter,BladeSignandVendingMachine, each an instance in the world's shared kit meshes, so a street of them is four draws. - Street light and signs:
StreetLamp(a lens, a haze cone and a pool of light on the street, two draws for any number of lamps),NeonSign(words bent out of tube that hum, buzz and drop out on the world clock),Billboard(ads as data, cut one to the next through torn strips, withSAMPLE_ADS) andHologram(a beam and a cage of rings that keep time). - Weather and street:
WetStreet(a rain-soakedRoadwith puddles, paint and crossings, reflecting per pixel through the shared mirror),Rain(streaks, splashes, snow and puddle rings around the camera, sheltered under roofs, withweatherAt(unixMs)as the weather on a clock) andSteamVent. - Distance and crowds:
GlowSky(a night sky lit from below, with a cloud deck that parts on stars and a moon in its phase),Skyline(a district on the horizon),Crowd(walkers in bulk on node-local lanes, three draws however many) andFlyingTraffic(hovercar lanes on the world clock). CoffeeGear: what a cafe brews with and shows off, onekindto a node (espresso machine, grinder, pour-over bar, siphon, cold drip, roaster and more).- Under
WebGPURendererthe city kit has TSL twins, simpler in places:Raindraws nothing,WetStreetis damp asphalt with an even reflection,NeonSignflickers as one,Hologramhas no scan lines,GlowSky's deck stays closed, and the tower facade has no interiors or decals. CeilingLightreach(how far its light carries, so a dim room light wins the light pool while the viewer is in its room),light(off, the fitting glows without asking for a real light) andkind: 'panel'(a lit strip, never seeded).skipMirrors(object)keeps an object out of every mirror plane;useMirrorMaterial(look, strength, surface)takes aMirrorSurfacethat varies the reflection per pixel;shareMaterial(material)lets the static batcher merge a material a component made itself. A streamed world reads a node's footprint fromwidthanddepthprops too.Personstyle: 'punk': a figure drawn the way an animator would, with long legs, tall flat eyes under a lash line, a tick for a nose, hair in chunky locks, and flat two-tone color inside an ink line. UnderWebGPURendererit takes three's toon node material, without the rim light and the ink line.Personbodies are built in layers (frame, muscle, soft tissue), with four new builds:athletic,heavy,petiteandlanky. A seed still rolls onlyslim,averageandstocky.anatomybuilds the bare frame (bones), the frame with its muscles (muscle) or the finished body (surface, the default).Personhairstylesbob,twintails,spiky,fringeandcurtain, and a street wardrobe:jacket,croptop,tank,cargo,pleated,stockings,sneakers,runner,shell,techvest,joggersandhightops; outfitsbomber,crop,tank,pleated,shorts,runner,shell,rigandstreet; abeanie; and the accessoriesheadphones,mask,backpackandvisor. Street wear has lit seams intrimColor, which shine on a punk figure.PERSON_COLORS.hairDyedlists dyed hair colors.playerControl.pin(spot, to?)holds the avatar at a spot (a seat, a ladder rung) with its own movement off, carrying it there and facing itspot.yaw. Its motion reads as standing still, sitting (pose: 'sit') or climbing (climb), and a carriedPersonsits when told to.pin(null, to)lets it go.playerControl.limitSpeed(speed)caps the avatar's speed over the ground while something slows it (deep water, mud, snow).PlayerMotioncourse,pose,climbandsag, andPoseContextcourse,climbandposition: in first person, below a jog, an avatar that backs up or steps aside keeps facing where it looks and publishes the way it travels, so a pose source can play a backpedal or a sidestep.routed, fromPerson: every figure walking a route, with where it stands now andwhere(t)for where its route has it at any other time.CAMERA_PASSES:collisionGroupsfor a collider the third-person camera may pass through (glass, a stool) while bodies still run into it.
just perfcounts draw calls per frame without shadow passes, and the shadow passes' draws per pass, and budgets each. Shadow maps redraw 30 times a second, so the old per-frame total rose as the frame rate fell: the same build read about 100 draws higher on a slow run, and CI's software renderer, which carries a shadow pass in every frame, sat one draw under the spawn budget. The library's gallery exhibits also settle in seconds instead of frames, so CI, at a frame every few seconds, measures the whole gallery instead of one still hiding its exhibits.- Contract §2: wall-clock motion and time of day read the world's clock
(
useWorld().now()), notDate.now()ornew Date()directly. - Breaking:
PlayerMotionhas six new required fields (distance,vertical,grounded,heading,lookYaw,lookPitch), so aPlayerMotionContextvalue you build yourself must fill them.Playerpublishes the fuller motion after every physics step in every view, so the body it carries strides with the same frame's distance. The body turns to face the way it travels and holds that heading when it stops, instead of strafing square to the camera; in first person at rest it turns to the camera. APersonbody looks where the camera looks, and a teleport'syawturns the body too. (#58) - Changing a
Person's look without changing its proportions (a shirt color, a hat) keeps its skeleton, so a walking figure no longer snaps back to its bind pose and restarts its stride. (#70) - A
Screenbanner's text glows with the screen (at thescreenlevel, not tone mapped), like its backdrop already did, so it reads a little brighter than before. (#60) - Contract §4: a texture a component computes itself at runtime (a seeded data texture, a canvas painted from the world's fonts, a depth map drawn from the scene) is not a binary asset. (#61)
- The third-person and overhead cameras stop at walls, floors and roofs: a ball the size of the camera's near plane is swept through the physics world from the avatar's head. ecctrl's own wall test missed walls that static batching had merged, and overhead flew over roofs. Thin posts don't stop it.
- A
slimorstockyPersonnow takes its build's stature and head size in every style (a stocky adult is about 7% shorter, with a slightly larger head).averagebodies and every face are unchanged. Personis posed every frame within 22 units of the camera, every third frame to 45 and every sixth beyond. A far figure's garments draw as one mesh per material, bones rebuild their matrices only when posed, and the figure scheduler builds for at most 3 ms a frame and keeps 8 full-detail builds.
serializeWorldkeeps a world'sluminance, which saving from the editor or the workshop used to drop.- Text never fetches a font from a CDN: a character no declared font has
(an arrow, a CJK character, an emoji) used to send troika-three-text to a
public font index.
Signnow sets troika's default font to a face built in code that draws a box for it, sorunek add signnow also installstroika-three-text(the same version drei already brings). (#66) - A walking
Personwith its own body strides with the distance its drawn body has reached, a frame behind its route, so its feet no longer run a frame ahead of where the body is drawn. (#57) - Shared materials keep colors brighter than 1 apart:
useMaterialkeyed colors by their 8-bit hex, which clamps, so white at 4x and white at 20x got the same material. (#59) - A large
Screenseen from a distance no longer flickers: the gaps between its layers (the mat, the picture, a banner's text) grow with the screen instead of staying a fraction of a millimetre. (#68) - A helper shared by several registry items (
nodes/uniforms.ts) no longer makes them depend on one another:player,sky,lakeandgrassdepended onscreen.
0.17.0 - 2026-10-31
useMaterial(look)anduseMaterials(looks)in@runek/core: one shared, read-only material per distinct look (color, roughness, metalness, emissive, …), so every part in the world that looks the same draws with the same material. Pass a record or an array of looks touseMaterialsto get the same shape back. A material nothing uses any more is disposed a moment later.- Static batching.
<World>merges parts that share a material and don't move into one mesh per material per 20 m cell, so draw calls follow the number of looks instead of the number of parts. Facing the gallery hall the library draws 1,170 times a frame instead of 3,700. Parts that move after mount, interactive parts and anything inside the new<Dynamic>are handled: a part that moves leaves its batch and renders itself, and rejoins once it's still; hover and click still reach batched parts.batching={false}turns it off,batching={{ cell }}sizes the cells. useLight(look)and<World lightBudget>: lamps register light emitters instead of mounting their own lights, and the world lends a fixed pool of real lights (6 point and 2 spot by default) to the ones that matter most to the view, fading as they hand off. The light count never changes, so materials never recompile as lamps come and go. In your own<Canvas>, wrap the scene in<LightBudget>.<World shadowRate>: shadow maps redraw 30 times a second by default instead of every frame. Redrawing walks the whole scene for the sun's camera, about 1.5 ms a frame in the docs library; moving shadows still read as smooth.Infinityrestores every frame.<Dynamic>in@runek/corekeeps a subtree out of static batching: wrap the parts a component animates.<World dpr>sets the pixel ratio the world renders at. The default,[1, 1.5], follows the screen's own ratio up to 1.5 and steps down toward 1 while frames run slow, climbing back when they recover. Pass a number to pin it, or[1, 2]for the old full-density look.just perfbuilds the docs and measures the library world: standing at the spawn, facing the gallery hall, and turning. It counts draw calls, full-scene passes, shadow passes, lights, shadow casters and render-target allocations per frame againstscripts/perf-budget.json, and CI fails a pull request that goes over.--timingalso enforces the fps floor on a machine with a real GPU.just perf updatealso measures at pixel densities 1, 1.5 and 2 and saves the machine's results (OS, CPU, GPU, browser, no personal details) for the docs site's new Performance page, which lists every measured machine. The landing page shows the newest one.--gpumeasures on the GPU on Linux.Ship: a big three-masted sailing ship you can board and walk through. A plank runs up from a dock to the waist; hatches drop to a gun deck (a cannon at every port, hammocks slung forward, a mess table) and on to the cargo hold; stairs climb to the quarterdeck and its wheel and the forecastle and its bell; doors open into the captain's cabin under the stern windows and the crew quarters in the bow. Lanterns light the decks below.length,beam,masts,sails(set,furled,none),guns,gangwayand colours; the seed varies the planking, sails, gunport lids and cargo. Publishes its decks as a surface, soanchor: "surface"nodes stand on deck. Furnished from the catalog'sBarrel,Crate,Table,Chair,Bed,StaircaseandFlag.NeonStrip: a neon tube that glows at any hour, for cove lighting or a line round a room;lightalso washes nearby walls in its colour. (#34)Lighthouse: a banded tower with a gallery and a glazed lantern whose two beams sweep round after dusk (nightOnly). (#35)Cave: the mouth of a sea cave, a seeded vault of faceted stone to set into aCliffat the waterline. No collider, so a boat can go in. (#36)GlassWall: a floor-to-ceiling glass partition with an optional doorway, for meeting rooms; a dark tint makes it a smoked partition. (#33)KitchenUnits: a fitted kitchen run with seeded door and drawer fronts, a sink, a hob over an oven, wall units with a hood, and anoverhangto make an island. (#31)- Music room:
Piano(a grand with its lid propped and a bench),DrumKit(five pieces and cymbals, seeded finish),Guitar(acoustic, electric or bass on a stand) andDiffuser(a skyline acoustic diffuser cut to a quadratic-residue pattern). (#37, #38, #39, #43) - Beach:
BeachChair(a sun lounger with a back raised torecline, seeded cushion and teak or white frame) andUmbrella(a striped canopy sagging between its ribs, on a pole thin enough to run up through aTable;tiltleans it). (#27, #28) - Reading:
Newspapers(folded papers and fanned magazines to leave on a table) andMagazineRack(sloped tiers of magazines, papers on the foot). Both share seeded covers and draw every page in one go. (#29, #30) GlassRail: a straight glass balustrade for galleries and mezzanines, matchingCurvedWall's glass, that stops a player walking off the edge. (#32)- Studio:
MicStand(straight, or on aboomover a seated player),Speaker(a studiomonitoron a stand, apacabinet or a guitaramp),AcousticPanel(wall panel or ceiling cloud) andBassTrap(a foam column for a room's corner). (#40, #41, #42, #44)
- Breaking: materials are shared. Every component takes its static
materials from
useMaterial, so parts with the same look anywhere in the world draw with one material (the docs library: 2,088 instances to 421). Code that reached into a Runek part and changed its material (mesh.material.color.set(…)) now changes every part with that look: give the part its own first (mesh.material = mesh.material.clone()). Materials that change after mount (screens drawn into,Grasssway,Personskin) were already their own and still are. - Breaking: static batching is on by default. A batched part stays in
the scene but moves to
BATCHED_LAYER, which no camera draws, so a raycaster of your own misses it unless it enables that layer (raycaster.layers.enable(BATCHED_LAYER)); pointer events already do. A part you move from your own code leaves its batch on its own, and wrapping it in<Dynamic>skips the churn.<World batching={false}>restores the old behavior. - Breaking: lamps light through the world's light pool.
Lamp,DeskLamp,CeilingLight,Chandelier,PictureLight,TikiTorchandCampfireno longer mount three.js lights: inside<World>they light as before up to itslightBudget, the nearest and brightest first; raise it if a room needs more. In your own<Canvas>they give no light unless the scene is wrapped in<LightBudget>. The docs world (budget 8) goes from 23 real lights to 10 and from 25 to 69 fps at the spawn. - Breaking: worlds render at up to 1.5x pixel density by default
instead of 2x on high-density screens (see
dprabove), which cuts the pixels drawn by almost half. Passdpr={[1, 2]}for the old look. - Copied components now import
useMaterial,useLightandDynamicfrom@runek/core, so pull them with the matching core (runek adddoes by default). Birdsno longer cast shadows: at their height the shadows were too small to see, and each bird cost a draw in every shadow update.- A
Riftshows the other end live only once its opening is big enough on screen (a radius of about 40 px); a smaller or more distant one shows a slow shimmer and costs no second render. The live view renders at half resolution. Chandelier's crystal drops are glossy see-through glass instead of refractive (transmission), which made three.js draw every solid object in the world a second time each frame.- The first-person lens draws the world once on screens up to 150° across (every common shape up to 16:9 at the default 140°): one wide render, warped into the curve. It used to draw it three times (ahead, left and right), which ultrawides still do. About 2 ms a frame in the docs library.
- The lens blurs its periphery with a few filtered taps that follow how the view maps onto the screen, instead of 32 taps that each re-traced the lens. It looks the same and costs a fraction of the time.
- The docs library world holds 60 fps in first person: 11 to 82 fps at the spawn and 4.6 to 71 facing the gallery hall (headless Chrome on an Apple GPU; before at 2x pixel density, after at the new 1.5x default). It had slowed down because every part was its own draw call, all 23 lamps lit every pixel, the Rift exhibit and the chandelier's glass each re-rendered the whole world, and the lens drew it three times.
- Turning in first person near a
Riftno longer reallocates its render target each time it crosses between the lens's views; each end keeps one target per view size. - The first-person lens no longer shows an
Ocean(or anything else under walkable ground) through that ground at the sides of a wide view. Its side views faced away from the slice of the screen they draw, and some renderers (Chrome's software fallback, SwiftShader) dropped parts of large ground triangles through that lopsided view; each side view now faces the middle of its slice. At 16:9 and narrower the lens no longer uses side views at all. (#45)
0.16.0 - 2026-10-24
Rift, a pair of linked rifts for walkable shortcuts within one world. Each end is a ragged, breathing tear in the air with an iridescent pink, violet and cyan rim that sheds glitter, and shows the other end live with real parallax. Walk into either and you come out of the other, momentum and all. Set the far end withdestination. Withactive={false}both rest as small shimmering bubbles. For travel to another world or page,Portalis still the one to use.Grasstakes a height preset:height="short"(a lawn),"medium"(the default, unchanged),"tall"(a meadow) or"very-tall"(reeds up to your chest). A number in units still works. Taller grass grows thicker blades that lean a little, so it doesn't read as needles.- Keyboard navigation in
<WorldEditor>and the workshop's Build view: holdWASDto pan across the ground (Q/Efor down and up) and the arrow keys to orbit, with⇧to go faster. With a node selected,WASDQEstep it along the world axis nearest the camera instead (0.1 m, or one snap step in the workshop;⇧for ten), and a burst of steps undoes as one.@runek/coreexports the camera half asuseOrbitKeysfor your own orbit views. - The registry is versioned:
/r/<version>/serves each release's components, and/r/versions.jsonlists them.runek add(andlist,info,validate,skill) now read the snapshot that matches your project's@runek/core, so the source you pull only uses core APIs you have.--core <version|latest>picks another one;--core latestalso upgrades@runek/core. A registry withoutversions.json(a local checkout, a fork) works as before.
- Breaking:
rng(seed)scrambles the seed before its first step, so every seeded component looks different for the same seed after you upgrade. Re-pick any seed you chose by eye. Before, the first value drawn for a small seed was close to 0 (everyPersonseed below 100 came out with the same gender), andrng(0)returned 0 forever. Same seed, same result still holds within a version. - Duplicate moved from
dto⌘Din<WorldEditor>and the workshop, and the workshop's World panel fromwto,, to make room for WASD. Player's first-person view is much wider and softer at the edges, closer to how people see. It shows 140° across on a 16:9 screen (was about 90°) through a gently curved lens, so the room wraps around you without the tunnel stretch a flat camera gives at that width. Like most games it follows the screen's shape: an ultrawide sees more across (about 160° at 21:9, up to 200°), a narrower screen less, down to 110°, and a phone held upright shows a narrower slice of that. Focus falls off smoothly with the angle off straight ahead, so turning toward something brings it into focus. Tune them with the newfovandperipheralBlurprops (peripheralBlur={0}turns the blur off). Clicks and hover labels follow the lens. Third-person and overhead views are unchanged.@runek/coreexportsuseLensPositionfor your own<Html>labels.Portalis now a swirling vortex around a lightless core instead of a spinning ring: spiral arms, a bright photon rim, drifting motes that fall inward, a soft halo, and light pooled on the ground beneath it. It faces the camera from any side, andseednow shapes the swirl and the motes.Palmgrows a full, feathery crown instead of a handful of drooping ribbons: each frond is an arching midrib lined with leaflets, the young fronds stand up at the top, and the older ones arch out and hang lower, turning slightly yellow.frondsnow defaults to 16 (was 11) andfrondLengthto 2.8 (was 2.2), so an existing seed grows a different crown.Personturns its head toward the player from 5 units away instead of 9, so figures across a room no longer all stare at you. SetlookRadiusto change it.BookandBookshelfbooks are only hoverable and clickable once the player's avatar is within reach (3 units from its eyes), so a shelf across the room can't be opened from where you stand. Tune it with the newreachprop. Without aPlayer(an orbit camera, the editor) everything stays clickable.@runek/coreexports the check asuseReachfor your own clickable meshes.
runek addno longer installs components that need a newer@runek/corethan npm has. The registry at/rserved source from the unreleased main branch, sorunek add bookshelfwith@runek/core0.15.0 failed to typecheck (useReachandDEFAULT_REACHmissing)./rnow serves the latest release, which also fixes older CLIs. (#21)<WorldEditor>'s props panel keeps up with the world: it shows where a node is after a gizmo drag, a nudge, or an undo instead of the numbers it opened with, and editing one field no longer snaps the node's other fields (or earlier edits) back to those stale values.- The workshop inspector's number fields keep a value stepped with the arrow keys (it reverted on blur), show up to three decimals instead of rounding to the step (so a y of 0.002 no longer reads as 0), and no longer rewrite a value just because you clicked in and out.
- The workshop's wall sign no longer draws its "build · tune · share" line over the WORKSHOP lettering.
- The camera no longer shakes while walking, most visibly in first person
and on high refresh rate displays.
<World>now steps physics once per rendered frame (splitting long frames into short sub-steps), in step with the avatar controller, instead of on a fixed 1/60 s clock. - A custom
Playerbody (aPersonfrom the workshop's "use as play avatar", say) stands on the ground instead of hovering about 26 cm above it. The controller floats its capsule on a spring, andPlayernow lowers the body (and the default capsule) by that float, at any frame rate. Bodies placed as documented, feet aty = -0.65, need no change. If you lowered yours by hand to make up for it, put it back.
0.15.0 - 2026-10-18
- The workshop's avatar studio: a room behind the hall's west door for
customising a
Person. Open it from the inspector's customize, the doorway, the Studio mode, or4. The figure stands on a turntable while the Avatar panel edits it tab by tab (looks, body, face, hair, clothes, hat and extras, pose) with picture tiles, color swatches, and sliders, and the camera frames the part you are on. Clothes are a drag-to-reorder layer stack that shows what tucks in. Each trait shows whether you set it or it came from the skin, the kind, the seed, or a default, with reset, pin, and a per-tab shuffle. A 3 × 3 seed grid, look export and import (.look.json), and "use as play avatar" round it out. resolvePerson(props)reports what each of aPerson's traits resolves to and where it came from (prop,skin,kind,seed, ordefault), without building any geometry.PERSON_COLORSholds the curated skin, hair, and eye colors a seed rolls from.- Lights:
TikiTorch(a bamboo torch with a flickering flame),CeilingLight(flush, pendant, or spot),Chandelier(one or two rings of arms, instanced, one shared light),DeskLamp(a banker's lamp), andPictureLight(over a picture or on a bookshelf). Each takesonandnightOnly, which lights it only while the world's sun is down. Tableware: a plate, bowl, glass, cup, or water jug, or a whole placesetting, with a drinkfillline and stacking plates and bowls.GameConsolewith up to four controllers,TableTennisat regulation size, andChessBoard, set from a FEN position or played out from the seed, on a table or its own pedestal (chessPiecesgives the placement without rendering).Screen, a display of anysizeon a wall, a stand, a desk foot, or in a frame, showing a seeded picture or desktop, a text banner, animated static, or a color.Poster, a wall print of seeded flat art with an optional caption and frame.- A code-only
textureprop onScreen,Poster,Tv, andMonitor: hand it a texture your app owns (a video, a canvas, a render target) to show instead of the built-in content. The components still load nothing themselves, and the prop schema lists it as code only. ArcadeCabinetgame:invaders(the default, unchanged),blocks,maze,snake, orpaddle, each laid out from the seed.useSun()in@runek/core: the sun for the world's time of day, for components that react to day and night.SkyandLightRignow use it.isCodeOnly(prop)in@runek/core/data, and aninstanceprop type in the prop schema for live three.js objects such as aTexture.Staircaseform:solid(the default, unchanged) orfloating, thin treads on two sloped stringers, open underneath, for a flight that spans a void such as an atrium, a loft, or a mezzanine.- The docs site's navbar shows the current Runek version in a pill next to the title.
- The library world's component gallery is now a three-floor hall around an open atrium instead of one long corridor. Each floor holds a category (Grounds, Structures, Interiors), exhibits run alphabetically along the walls with a label where each section starts, and two floating flights cross the atrium between floors. A directory on the ground floor shows what each floor holds. The hall widens on its own as the catalog grows.
- Gallery miniatures live in their own paused physics world, so an
exhibit's colliders can no longer block or push visitors (a
TerrainorShoreminiature used to leave an invisible full-size floor over the walkway).
0.14.0 - 2026-10-07
- Agent-friendly docs:
/llms.txtindexes every guide and component,/llms-full.txtis the whole docs set in one file, every docs page is also served as Markdown at/docs/<slug>.md, and a new "Runek for agents" guide walks through discover, install, compose, validate, and preview. Component pages now list every prop with its type, default, and description. - A machine-readable catalog:
/r/props.json(every component's props, types, defaults, and docs, generated from the TypeScript byjust registry) and/r/world.schema.json, a JSON Schema for world files. Add"$schema": "https://runek.nullorder.org/r/world.schema.json"to a world for completion and checks in your editor. The$schemaURLs thatregistry.jsonandrunek.config.jsonalready point at (/registry/schema.json,/registry/config-schema.json) now resolve. runek validate <world.json>: checks a world against the catalog (unknown components, misspelled props, wrong value types, bad anchors, duplicate ids) with did-you-mean suggestions. Components you wrote yourself are recognized from your install directory.runek info <name>: a component's props (type, default, docs), dependencies, and a world-node and JSX example.runek preview <world.json>: prints a workshop link that opens the world in the browser.runek skill: installs a Runek agent skill into your project (.claude/skills/runek/SKILL.mdby default).--jsonoutput forrunek list,runek check-world, andrunek validate.runek --version(-v, orrunek version) prints the CLI version: a Pixelspace banner in a terminal, the bare version when piped.validateWorld,suggest,matches,describeType, and the prop schema types (SchemaMap,ComponentSchema,PropSchema) are exported from@runek/coreand@runek/core/data, so the same world checks run in the workshop, the CLI, and your own tooling.- A world file may carry a
$schemakey;serializeWorldkeeps it. - Every component now accepts
seed, as the contract requires. The 25 that had none (Bench,Chair,Table,Wall,Door,Window,Roof,Floor,Staircase,Arch,Pillar,Barrel,Bed,Shelf,Clock,Lamp,Sign,Well,Fountain,Lake,Shore,Ocean,Sky,LightRig,Player) accept it with no seeded variation, so nothing renders differently. The prop schema marks each componentseededor not, and the workshop only offers seed controls where a seed changes something. - Component pages show the component's source in a collapsible panel.
- The workshop: an in-browser workbench at
/workshopon the docs site, and a door from the library to it. Your world renders live in a room, with the tools floating over it. An inspector generated from each component's TypeScript edits every prop (sliders, palette-aware colors, enums, vectors, nested lists likeclothesoropenings).world.jsonedits two ways, with completion and checks. A liveApp.tsxruns in a sandboxed iframe and keeps itsworld.jsonimport in sync. A component lab has bounds, scale, wireframe, normals, colliders, stats, a seed grid, an A/B compare and a determinism check. There are templates, snippets, play mode, a ⌘K palette, undo, autosave, share links that carry the world in the URL, and exports (world.json, App.tsx, PNG, the prop schema). Gallery cards and component docs open their component in the lab. Personis configurable part by part, all as plain JSON:body(build,tone,height),face(eye color and size, brow color and weight,noseshape, lip color and fullness,blush),hairas{ style, color }, andclothes, an ordered list of garment layers (tshirt,shirt,sweater,vest,tunic,coat,dress,robe,apron,trousers,jeans,shorts,skirt,shoes,boots,belt,scarf,cape), each with its owncolorand, for tops,sleevesandneck. Layers go inner to outer and the order decides the fit: a shirt listed before the jeans is tucked in.clothes={[]}is the bare base body. The flat props (outfit,topColor,skinTone,hairColor, ...) still work as shorthands. Newswepthairstyle andpreppyskin.useWorld().player: a ref to the mountedPlayer's avatar (at eye height), ornullwhen there's noPlayer. Components can react to where the player stands instead of where the camera is.- The ground is queryable:
groundAt(x, z)returns the highest walkable top at a point, computed from the same functions that build the meshes (no raycasts, no physics).createGroundIndex(world, registry)indexes a world once;useGround()gives the query inside a world;checkWorldreports problems. All of it also ships from the React-free@runek/core/dataentry, for Node scripts and tests. - Anchored nodes: a world node's
anchor("ground"or"surface") makes itsposition[1]an offset above the ground at its (x, z), so props stay on uneven terrain. The file keeps the offset, so moving or reseeding the terrain re-seats everything anchored to it. Works for any node, including groups, composites, andPlayer. - Surfaces:
TerrainandShore(terrain),Dock,Floor, andSlab(decks), andLake(water) publish their tops asComponent.surface, with the math in a plainsurfaces/*.tsmodule thatrunek addcopies alongside the component. People, trees, furniture, and buildings (including thehouseandroomcomposites) are markedgroundSitting. - Editor: Drop to ground / Drop to surface for the selection, an Anchor switch that keeps the node in place, and anchored nodes slide along the ground when dragged.
runek check-world <file>: flags buried and floating nodes and open water standing above its shore, with a suggested Y for each.--fixwrites them into the file;--strictexits non-zero for CI.Terrainacceptsrotation, like every other component.- Guide: "Placing things on uneven ground".
Personwalks.patroltakes waypoints relative to itsposition(they turn withrotation);wandertakes a radius and walks a seeded loop inside it.speed(by age: 1.3 m/s for an adult),pauseat each waypoint, andloop("loop"or"pingpong") shape the route. Where a figure is on its route depends only on the clock and the seed, so everyone viewing the world sees it in the same place. It follows the ground under it, eases in and out of each stop, turns into its corners, and swings its arms and legs in a walk cycle keyed to the distance walked, so feet don't slide. The authoredposeplays at each pause (a merchant walks to the stall, then works). Walkers step aside for the player and for each other (passing on the right when head-on), and wait when a wall blocks both sides. A walking figure's collider is kinematic; a standing one costs what it did.Persongait: the walk-cycle speed for a figure something else moves. As aPlayer's body it now walks in step with the avatar instead of sliding.useWorld().walkers(the figures walking right now, for components that want to steer around them) andPlayerMotionContext(the enclosingPlayer's live speed).Worldinput: setfalseto ignore the keyboard (e.g. while a modal is open). Keys held at that moment are released.Worldpaused: stops the frame loop and physics, so a world that isn't on screen costs nothing. Animations resume where they stopped.isEditableTarget(target): whether a key event belongs to a text field rather than the world.Persontakes trips:routeis a one-way walk through waypoints (relative toposition, likepatrol) that sets off atdepartAt(epoch ms), waits at its first point before then, and stays at its last point after, in itspose. Where it is depends only on the clock, so every viewer agrees and a reopened page needs no replay.onArrivefires once per trip, even when the arrival happened while the world was paused or unmounted.tripAt()gives where a trip had got to, for starting the next one from there.Personactions,actionRadius, andonAction: walk near a figure and a prompt over its head shows what you can do (T Talk,I Info) with the keys the world'scontrolsbind; press one andonActiongets its id. Only the nearest figure in range shows a prompt and takes the key, and keys yield to text fields.Interactable: wrap anything in it to offer the player the same prompt and actions (sit on a sofa, use a desk).useInteraction(anchor, { actions, radius, onAction })in core, the hook behind both, for components that draw their own prompt;keyLabel(code)turnsKeyTintoTfor display.useWorld().keyboard: the key events the world reads (none aimed at text fields, none whileinputis off or the world is paused).Signoutline: a crisp edge in a color, so text reads against any background.Desk: a work desk on slim legs, a drawer pedestal, or side panels, with a modesty panel at the back. Base and drawer count are seeded.Monitor: a desk monitor on a foot, plate, or legs. Switched on, its screen glows in itsscreencolor with a few seeded windows of text on it;on={false}is dark glass.Sofa: one to four seats, with square, rolled, or slim arms, split or bench cushions in soft shades of the fabric, pegs or a plinth, and throw pillows, all seeded and each pinnable.- Guide: "Embedding a world in an app" (content security policy, desktop webviews, lazy loading, input, pausing, and figures driven by app state).
Personposestype(seated, fingers on the keys),play(hands on controls),drink(a mug held at the chest, sipped now and then), andlie(on its back, centered onposition, head toward -Z, so it takes aBed's position and rotation at mattress height).Personbubble: a short line in a speech bubble over the head.emote: a small animated sign instead (sleeprising z's,alerta bouncing !,thinkpulsing dots,happya heart,coffeea steaming cup), drawn from shapes and the world font.- Office and casual clothes:
hoodieandblazergarment layers,outfitshorthandstshirt,sweater,hoodie, andblazer, achefhat, and theoffice,casual,hoodie, andchefskins. Playerview="overhead"(andavatar: "overhead"in a world): the camera high above at a fixed tilt, following the avatar, with scroll to zoom and WASD walking relative to the screen. Aviewcontrol in the world'scontrolscycles first, third, and overhead at runtime, keeping the avatar where it stands.OfficeChair,Tv(on a stand, a console, or a wall, with a seeded picture),Whiteboard(seeded marker diagrams and optionaltext),Fridge,CoffeeMachine(espresso or drip, with steam),ArcadeCabinet(a seeded pixel game on its screen), andPoolTable(balls racked or mid-game).Tablebase="pedestal"andends="round", for a conference table;Counterhobfor a kitchen stove (a glass cooktop and an oven).SignonBounds: the laid-out text's size, for fitting a backdrop.
- Breaking:
WorldEditormoved to its own entry point. Import it from@runek/core/editorinstead of@runek/core.levais now an optional peer dependency, needed only by apps that use the editor. - The world no longer reads keys typed into a text field (
input,textarea,select, orcontenteditable), so typing "wasd" into a form beside the canvas doesn't walk the avatar. Keys held when the window loses focus are released instead of staying stuck down. @runek/clideclares Node 24 or newer (engines.nodewas>=20), matching the version the repo develops and tests on.Personhas a new look: one continuous sculpted body (no seams at the joints) with a sculpted face, eyelids that blink, eyes that follow you, and hands with fingers, skinned to an 18-bone skeleton so it bends as one. Clothes, hair, and hats are layers fitted to the body, so any garment fits any build, age, or style. The defaultstyleis nowstylized(an animated-film look);realisticandanimeremain. Meshes build in the background a few milliseconds at a time, coarse first; full detail builds only within ~10 units of the camera, and identical figures share one build.Personturns its head toward the player's avatar, not the camera. In third person the camera trails behind, so figures used to look past you; now they meet your avatar's eyes, andlookRadiusis measured from the avatar. Without aPlayer(e.g. an orbit view) it still watches the camera. APersonused as thePlayer's own body no longer tries to track anything.Player's capsule no longer tips over: its rotation is locked and only the visible body turns to face the way it walks. At low frame rates the old balancing could topple the avatar. The avatar also starts facing the way the camera looks.- A seated
Person's name, bubble, and prompt sit over its head at seat height instead of floating at standing height. Playerholds still until there's ground under it (or half a second passes) before gravity takes over, so a spawn can't drop through a collider that hasn't arrived yet.
- The library's gallery fits every exhibit to its pedestal: each
miniature is measured once, then scaled and centered, so large
pieces (
CurvedWall,Cliff,Clouds,Pool,Roof,Palm,Flag, ...) no longer overhang the corridor or stand in front of their pedestal,Oceanshows again, and the emptyInteractableexhibit is gone. CurvedWallpreviews (gallery cards and its docs page) show a smaller arc centered on the frame instead of a wall standing in front of the camera.- Setting one
Persontrait (a skin tone, a build) no longer reshuffles the seeded rolls of the others. - A
Playerspawned over displacedTerraincould fall through it: the trimesh collider was derived one render after the mesh.Terrainnow builds it in the same render.
0.13.0 - 2026-09-18
-
Personcomponent: a procedural human figure, so worlds can have people in them. The body is built from smooth lathe surfaces (tapered limbs, one hip-to-shoulder torso profile) on an articulated joint rig that breathes, shifts its weight, blinks, and turns its head to watch you; detail drops to a cheap silhouette past ~18 units. Astyletemplate sets the whole look:anime(default; bigger head, large lit eyes, tapered chin, longer legs, chunky fringe) orrealistic(canonical 7.5-head proportions). Traits resolve explicit prop first, then theskincosmetic bundle, then thekindrole preset (villager, merchant, guard, sailor, farmer, noble, scholar, traveler), then the seed, so<Person seed={3} />is a complete villager and every prop narrows it:gender,age,height,build,skinTone,hair,facialHair,outfit, clothing colors,hat,accessories, andpose.skin(aPersonSkin) bundles clothes, colors, headwear, hair, and accessories as one plain-JSON prop, so an editor or in-world UI can swap a figure's whole look in a single write; nine named presets ship asPERSON_SKINS(festival, harvest, winter, voyage, ceremony, atelier, pirate, bartender, sailor — wardrobe only, never hair), andskinaccepts a preset name ("winter") or a bundle.positionis the spawn point; one capsule collider makes the figure solid, andphysics={false}yields a bare visual you can hand toPlayeras a third-person body. Movement and dialogue come later. -
Slabcomponent: a rounded structural plate (pillordisc) for curved-modernist floor decks, cantilevered roofs, terraces, or a lawn disc. Walkable, one convex-hull collider; top surface at the origin likeFloor. -
CurvedWallcomponent: an arc of wall around the origin —solidconcrete or a floor-to-ceilingglasscurtain wall with mullions and rails. Instanced chords, each carrying a cuboid collider; compose several arcs to leave door gaps. -
Poolcomponent: a built swimming pool flush with the deck — coping rim, walkable plastered basin with corner exit steps, translucent water just under the lip. -
Palmcomponent: a coconut palm with a leaning bowed trunk and a crown of drooping instanced fronds; seed drives lean, spread, and the coconut cluster. -
Docs library: a librarian and a traveler now stand in the reading room, and the player's third-person body is a
Person.
- Contribute modal: "Suggest changes upstream" downloads
world.jsonandsnapshot.pngwith one button instead of two, so the snapshot that step 4 asks for is no longer skipped. The PNG is now namedsnapshot.pngto match the instructions (wasworld-snapshot.png).
0.12.0 - 2026-07-19
- Docs library: the reading-room shelves are labeled category sections
(Intro / Guides / Reference) instead of an unlabeled even deal, so a
new doc only joins its own section rather than reshuffling every
shelf. Reference docs (CLI, changelog) now shelve too, and the
changelog book reads the root
CHANGELOG.mdin-world. Books spread across each case's rows (the CLI reference sits on the Reference shelf's top row, the changelog on its bottom). The painted RUNEK mark carries the current version beneath it. BookSpec.shelf: pin aBookshelfbook to a specific row (0 = top, clamped); books without a row keep auto-packing bottom-up around the placed ones.Bookcomponent: a single procedural book —standing,lying, oropen— with a seeded cloth cover and optionalhref/onSelectinteraction (hover pop + title label). The standalone, placeable sibling ofBookshelf's instanced spines; decorative, no collider. The gallery wing's guide books now use it (open, on their stands).controls: input bindings are a world setting. A partialaction → KeyboardEvent.code[]map merged over the defaults, onWorldData/<World>and resolved atuseWorld().controls— remap for AZERTY ({ "forward": ["KeyW", "KeyZ"] }), disable an action with[], or add custom action names your own components read viauseKeyboardControls. Orthogonal toavatar; the JSXkeyboardMapprop remains the verbatim escape hatch and wins when given.- Composites: a new registry kind holding a named arrangement of
component nodes as JSON instead of code. A world places one node
(
{ "type": "House" }); the renderer expands the arrangement in place, and an instanceseeddeterministically re-rolls children that don't pin their own. The editor lists composites in its add menu and gains an Unpack action that replaces an instance with an editableGroupsubtree.runek add <composite>copies the arrangement JSON plus the source of every part it references. (CONTRACT §11.) Levelcomponent: a stackable wall ring plus optional slab, with per-side wall configs (openings, color, or an omitted side) and a stairwell hole — the unit buildings are composed from.Floorgains a rectangularopening(a stairwell hole); the slab splits into strips around it so collision matches the visual.- Built-in
Groupnode type in worlds-as-data: a plain transform container for children. - Gable
Roofs cap their open end triangles (ends, default on) with wall-colored prisms, so the attic no longer shows the sky (Roof migration guide for keeping the old open look). scripts/migrate-buildings.mjs: bakes pre-compositeHouse/Roomnodes (with non-default props) into equivalent part arrangements.- Docs: "The building kit" guide; the library world's gallery wing ends
at a walkable two-level show home built from the
housecomposite. - Docs: component pages gain a Migrate section — a side-by-side
before/after panel per version bump. Four components carry a
0.11.0 → 0.12.0 guide:
Wall,House,Room, andRoof. Entries live inapps/docs/scripts/migrations.mjsand accumulate across versions.
- Arrow-key camera look now works in first person too (it was third-person only): Left/Right turn, Up/Down look, in both views, composing with mouse-drag as before.
Bookshelfdefaults to 3 rows (shelveswas 4); passshelves={1}orshelves={2}for a shorter case, or any other count.- Breaking:
HouseandRoomare no longer coded components — the registry names now resolve to composites (the defaulthouseis a two-level dwelling with a working staircase). Worlds that placed them with default props keep rendering; worlds that relied on non-default props can bake the old look withscripts/migrate-buildings.mjs.HouseProps/RoomPropsare gone from@runek/components. Migration guides: House, Room. - Breaking:
Wall's singleopeningprop is replaced byopenings: WallOpening[]— one wall can now carry a door and windows together. Migration (opening: X→openings: [X]): Wall migration guide.
0.11.0 - 2026-07-10
Hut,Tent,Counter,Stool,Road, andCliffcomponents.CompassHUD component: a screen-fixed dial that tracks the camera heading, with an optional wind and bearing readout.Bookshelfgains alabelprop (pluslabelColorandlabelSize) that draws aSignfloating above the shelf frame.Pathgains aheightselevation profile so trails can follow the terrain they climb.Playergains achildrenslot for a custom avatar that replaces the default capsule and hides in first-person view.- Keyboard camera control: Left/Right arrows turn (yaw) and Up/Down arrows look (pitch), composing with mouse drag.
- Breaking: the default
keyboardMapin@runek/coreno longer binds the arrow keys to movement. WASD moves the character; the arrow keys steer the camera. - Docs site: search moved to Pagefind's Component UI, and the walkable library world gained a gallery wing.
- The brand font bundled in
@runek/coreis embedded as woff (was woff2, which troika-three-text cannot parse), so text components render the brand face instead of falling back to a fetched default. - Docs generator: props tables were missing for any component whose
props interface uses an
extendsclause.
0.10.4 - 2026-06-30
Portalcomponent: a glowing travel gate with a physics sensor that firesonEnter(or navigates toto) when the avatar or a vehicle passes through.Signpostcomponent: a post-and-plank signboard that renders a name in the world's display font.
WorldNodesno longer passes an explicitnullchild to leaf nodes, which clobbered a component's ownchildrendefault; text authored in world JSON (aSign's label, for example) now round-trips correctly.
0.10.2 - 2026-06-29
Dock,Flag,Sailboat, andWindmillcomponents.Sailboatgains aphysicsprop: set it tofalseto render the boat as a bare visual so a parent controller (a steerable vehicle) can own the physics body.- Prerelease publish channels:
just publish alpha|beta|rcships to the matching npm dist-tag and marks the GitHub release a pre-release.
0.10.1 - 2026-06-27
Oceancomponent: a procedural animated-shader sea that follows the camera and blends into the distance fog, defaulting to the palette's water colors and the world ground baseline.Terraingainsfalloff(radial island falloff with a shoreline at the rim) andcollider(setfalsefor backdrop terrain the player never walks).
WorldEditorandWorldRendererforwardgroundandfontsto the world context instead of silently dropping them.
0.10.0 - 2026-06-26
Folds in the 0.7.0 through 0.9.0 milestones, which were versioned in the repository but never published to npm.
- World identity and git-native contribution:
WorldData.meta(title, description, authors, license, source), stable nodeids withassignNodeIds(), a canonical key order inserializeWorldso unchanged nodes never churn a diff, and aWorldAboutpanel. - World settings and rules:
<World time>pins a reproducible time-of-day and<World timezone>tracks a live clock, driving a day/night cycle inSkyandLightRig;<World avatar>sets the default camera view forPlayer. - World fonts and the
Signtext component: a world declares fonts by role andSignrenders from them, with a default face bundled in@runek/core. Text is the single sanctioned exception to the asset-free rule. - 18 components rounding out the catalog:
Fence,Bridge,Path,Arch,Pillar,Bush,Flowers,Hedge,Well,Fountain,Bench,Bed,Crate,Barrel,Plant,Clouds,Campfire, andBirds. groundworld baseline (a Y value, default 0) thatFloorandLakeplace themselves against, plus the open-water rule inCONTRACT.md.- Docs site search (Pagefind).
- All workspace packages aligned to a single 0.10.0 version line.
- The release flow regenerates the served registry manifests before publishing and refuses to ship from a dirty tree, so manifests can no longer drift from the released version.
0.6.0 - 2026-06-18
- Clickable
Bookshelfbooks: a serializablebooksarray ({ id, title?, color?, href? }) with hover feedback and anonBookSelectcallback; without a callback, a click navigates the book'shref. Clockcomponent: a procedural analog clock tracking the local system clock or a given IANAtimezone.
- Breaking: components import the runtime from the published
@runek/corenpm package instead of a copy vendored by the CLI, andcoreImportis removed fromrunek.config.json. Core improvements now reach existing projects via a normal dependency update. - Breaking: the CLI is published as the scoped
@runek/cli(previously the unscopedrunek). - Breaking:
Bookshelf'sfillnow defaults to0, rendering an empty shelf; passfillexplicitly for the old decorative look. - The editor exports the world as a
world.jsonfile download instead of copying JSON to the clipboard.
0.5.0 - 2026-06-18
Initial public release.
@runek/core: the<World>provider (canvas, physics, keyboard controls, lighting),useWorld, deterministic seededrnghelpers, world palette and fog, and the shared component contract.- Data-driven worlds: the
WorldData/WorldNodeJSON model withserializeWorld/parseWorld, aWorldRendererthat mounts world data against a component registry, and an in-browserWorldEditorwith selection gizmos and JSON export. - The
runekCLI (init,add,list) and the source registry:addcopies editable component source into your project along with its dependencies. - Starter catalog:
Player,Terrain,Room, andBookshelf, plus the structure, furnishing, nature, and lighting component sets. - Docs site with flat pages, a live component gallery, and a walkable 3D library world.