Start with the original scene
Use Node.js 22.13 or later. Install the versioned CLI tarball, then sign in:
npm install -g https://docs.threetopia.com/downloads/threetopia-cli-0.9.0.tgz
threetopia login
threetopia analyze ./original --json
threetopia audit ./original --out conversion.json --json
The audit exits with code 1 until behavior is reviewed. This is expected. Read the original code and license. Pin its revision. Inventory every visual, shader, motion, simulation, interaction, audio, and asset feature.
Propose reusable packages before refactoring. Use the creator's handle. Keep attribution when another account manages that handle.
Create reusable packages
threetopia create coastal-boat --shared --kind asset --name @your-handle/coastal-boat
threetopia create coastal-water --shared --kind system
threetopia create coast --shared --kind world
These starters are deliberately incomplete. Fill in definition.ts, the source
pin, and conversion.json. Add the original behavior, a README with composition
code, and a preview with settings. Record evidence for each preserved feature.
Keep reusable logic in Three.js or TypeScript. A thin R3F adapter connects it to the shared renderer, camera, clock, and services. Do not create a second host.
If behavior does not fit, report the exact source location and propose a shared model that can preserve it. Discuss that model before changing world rules.
Validate and review
threetopia check coast --json
threetopia push coast
threetopia candidate coast
threetopia candidates --json
The server builds a candidate with current neighbors. Open its preview from World review. Acceptance needs visual, behavior, boundary, and lifecycle evidence. The package cannot accept itself.
Assets and systems can use threetopia publish after validation. A shared region
is published when a reviewer accepts its exact world revision.
Existing fixed tiles still use the legacy tile workflow. Their static map models and source previews do not prove complete shared-world conversion.