~6 min read · 4 sections

World Editor & World Packs

How to synthesize a one-click template-free procedural exclusive world, switch among 7 built-in worlds and 4 theme styles, remodel shops and rooms in the dark/light offline world editor, and understand current engineering boundaries.

On this page (4)▾

7 Bundled Worlds & 12 Neighborhood Shop Categories

On first launch, you start in the coastal town of Nagiura. Under examples/worlds/ in the release package, nyairo bundles 7 complete world packs across distinct landscapes (plus 1 editor-modified showcase pack, nagiura-edited), featuring 12 neighborhood commercial and public shop categories with freeform open-counter ordering (for instance, buying hot oden at a convenience store, while secondhand bookshop and café owners keep independent staggered schedules and support leaving coaster notes at the counter):

  • Coastal Town · Nagiura (nagiura): Default sample world containing 17 locations—including residence, bookstore, Gull Cafe, park, and beach—connected by 18 roads (plus the remodeled showcase nagiura-edited with 18 locations and 19 roads);
  • Mountain Hot-Spring Town · Onsawa (onsawa) & Linggu (mountain_town-demo): Features Suisawa Open-Air Bathhouse (hot_spring), stone mountain steps, and valley vistas, with 15 locations each;
  • Rural Countryside · Inobe (inobe) & Zexiang (rural_farming-demo): Features Waterwheel Park, paddy footpaths, and village workshops, with 14–15 locations each;
  • Everyday Neighborhood · Wakaba (wakaba) & Daily Neighborhood 1 (daily_neighborhood_v1): Wakaba includes Wakaba Bookstore across 16 everyday neighborhood spots, while Daily Neighborhood 1 offers a compact 7-location loop with opening hours and a reading nook. Every world directory ships with a preview.html file—double-click it to inspect the road-network topology in your browser.

Dark/Light Offline World Editor: Drawing Rooms & Configuring Shops

Inside components/world-editor/, nyairo includes a refreshed, purely local visual spatial editor with dark and light theme switching (listening only on localhost 127.0.0.1, working offline with zero model token usage). You can open it directly from the Neighborhood → Editor tab in the desktop client, or launch it manually from a terminal:

bash
cd ~/.local/share/nyairo/releases/v0.8.0/components/world-editor
python3 server.py --port 8766

Then open http://127.0.0.1:8766 in your browser to start customizing your world:

  1. Convert an Existing World Pack to Editor Format: Run python3 -m components.worldgen editor-export examples/worlds/nagiura to generate editor-world.json inside the pack;
  2. Visual Remodeling & Shop Menu Setup: Import that file in the browser, toggle between dark and light themes at any time, rename bookstores or edit opening hours, add or remove street links, configure open-counter menus (sale_spec) for custom shops, or switch into indoor view to draw walls, cut doors and windows, and place desks, kettles, and desk lamps with storage or matter properties—then click "AI View Preview" to check which furniture your companion can perceive in the room;
  3. One-Click Writeback & Validation: Click "Export nyairo World Pack" in the editor (or run editor-import from the CLI). Only the fields you edited are diff-updated while preserving existing NPCs and ambient events, followed by automatic connectivity checks (if you accidentally sever the only exit road or delete a shop where an NPC still works, the validator pinpoints the exact conflict in plain Chinese so you never export a broken pack).

Template-Free Procedural Exclusive Worlds & Seeded Generation

In v0.8.0, in addition to generating from the four themes—"Coastal Slope Town (coastal_town)", "Mountain Hot-Spring Town (mountain_town)", "Residential Suburb (residential_town)", and "Rural Farmland (rural_farming)"—opening Neighborhood → Generate New Town in the desktop app supports one-click template-free procedural exclusive worlds (procedural mode). Without picking a preset aesthetic, the generator uses a random seed to blend complementary landforms from 6 terrain archetypes (headland slopes, canal alleys, foothill valleys, railway station towns, orchard terraces, and forest lakesides), paired with 4 heterogeneous connected road topologies (star hub, ring loop, long promenade, and branching avenues), 8 commercial shop categories, and multi-room residences (automatically pairing the bedroom with a living room, veranda, kitchenette, or study nook complete with thermal/humidity matter furniture), with support for hot-switching right after generation.

On Linux or WSL terminals, you can also invoke components.worldgen directly with --theme procedural (or any theme) and a numeric seed to generate a deterministic exclusive world in one command:

bash
REL="$HOME/.local/share/nyairo/releases/v0.8.0"
cd "$REL"
# Synthesize a template-free procedural exclusive world from a seed, validate it, and render a preview map
"$REL/vendor/hermes/.venv/bin/python" -m components.worldgen generate \
  --theme procedural --seed 20261118 --out "$HOME/my-world"
"$REL/vendor/hermes/.venv/bin/python" -m components.worldgen validate "$HOME/my-world"
"$REL/vendor/hermes/.venv/bin/python" -m components.worldgen preview "$HOME/my-world" --out "$HOME/my-world/preview.html"

Given the same mode and seed, the generated road travel times, shop menus, and residential room layouts are byte-for-byte reproducible (with zero LLM calls). Pass the environment variable CHIYO_WORLD_PACKAGE="$HOME/my-world" when starting the world service to mount your generated pack.

Current Real Limitations (What Isn't Wired Up Yet)

To set accurate expectations around the editor and world generator, please keep the following engineering boundaries in mind:

  • Zero-Prompt First-Launch World Genesis Is Still Being Polished: Both "Generate New Town" on desktop and --theme procedural on the CLI already produce template-free procedural worlds, but zero-prompt automatic world creation on first launch right after installation—along with the community world-pack workshop—remains on the Roadmap.
  • Walls and Floors Do Not Block Pathing Yet: Walls and floor materials drawn in the editor are saved in scene.json for visual rendering and future re-editing. Under the hood, the runtime currently pathfinds over a node graph ("building entrance ↔ indoor functional zones" such as bedroom or living room, taking 30 seconds per zone transition) rather than computing pixel-level wall collision.
  • Overnight Opening Hours Spanning Midnight Are Not Yet Supported: Generated worlds and custom editor shops both support open-counter ordering (sale_spec), but opening hours cannot yet span midnight (ranges like 22:00–06:00 are explicitly rejected with a clear message on export).
Hit a setup snag or spot a doc issue?