Reusable packages
An asset is a reusable thing. A world describes a region and its composition. A system implements a shared capability. Use schema 2 for new shared-world work. Read One shared world before converting a scene.
World and asset packages depend on assets and require capability contracts. Systems can depend on assets and other systems. The canonical world policy chooses providers. A region cannot choose a second global provider.
An asset can declare library: true when it contains reusable code. Import it
inside another asset or provider. It has no placement bounds and cannot be
placed as an entity. It still needs a README, example, and useful preview.
The examples below also cover schema 1 file packages. Their immutable releases remain installable. A static map or standalone source preview does not prove complete shared-world compatibility.
Find real packages in the package library, with the CLI, or through the public asset API.
threetopia search beacon
threetopia install @threetopia/beacon@1.0.0
@threetopia/beacon is an original, MIT-licensed Threetopia example. Its model export fits a map slot; its world export is scaled for world coordinates. It is an example building block, not an asset copied from a showcase creator.
For an existing scene, start with the conversion workflow: analyze the source, propose cohesive components, then prove reuse. The Tidewater study is an executable example.
Find a package
The package library searches package names, titles, descriptions, creator names and tags. Multiple words narrow the results; partial words match the start of a word, so light finds lighthouse.
Combine package type, category, creator, license and tag filters. Multiple choices in one filter match any of those choices; different filters must all match. Counts show how many packages each choice would match with the other filters applied. Sort by best match, last published update, first publication, active installing creators or title.
Open Packages in the top navigation. You do not need an account to browse. Use Packages → My packages to manage your own packages.
Searches and filters are kept in the URL. Share a search, reload it, or return to it from a package. The API is paginated: read total, page, perPage and pages instead of assuming the first page is the whole library. See the catalog API for parameters and examples. Only published, non-archived packages appear; a private upload does not change search results.
Open a package and select Package version. The preview, fixed page sections, and Dependencies list show that release. Each dependency links to its exact version. Open it to see the next level of dependencies. Shared system providers come from world policy and are not added to this list.
Package page
Fill the eight fixed sections for each version. Use Edit sections
or package-docs.json with the CLI. Usage needs a code example. Composition shows
how the parts connect. Dependencies stay in the existing manifest list.
The server requires all sections before release.
Make your package discoverable
Choose a category and up to 10 tags when creating a package. Tags can describe content, style or use, such as coastal, low poly or rocks. Use short, specific terms, not a list of unrelated keywords.
Available categories: Nature & vegetation, Architecture, Props & objects, Characters & wildlife, Vehicles, Materials & textures, Lighting & effects, Audio, Tools & utilities, and Environments. Packages without a category appear under Uncategorized.
Categories and tags belong to the registry listing, separate from the immutable version manifest. Update an existing listing with authenticated PATCH /api/packages/:id and { "category": "nature", "tags": ["coastal", "rocks"] }. Each tag allows 1–30 letters, numbers, spaces or hyphens; tags are normalized to lowercase and duplicates are removed. Changes become searchable immediately for published packages. Draft packages stay private.
The searchable title, description and license come from the latest published release. Update those fields in your local manifest and publish a new version. Existing CLI versions automatically use the improved search; listing metadata does not require a CLI upgrade.
Asset manifest
{
"schemaVersion": 1,
"name": "@your-handle/coastal-rocks",
"version": "1.0.0",
"kind": "asset",
"title": "Coastal rocks",
"description": "Low-poly rocks for coastal worlds.",
"license": "MIT",
"changelog": "First release of the rock collection.",
"exports": { "model": "assets/rocks.glb" },
"dependencies": {}
}
Put this object in threetopia.json under manifest, and list every file under the project’s top-level files. The CLI scaffold includes the server-assigned package and project IDs.
Installation
Run installation inside a Threetopia project. World packages can also be installed for inspection, but assets and systems follow the dependency rules above. The CLI:
- Resolves exact published versions and transitive dependencies.
- Downloads to a staging folder and verifies every file’s size and SHA-256.
- Writes files under
threetopia_modules/creator/package/. - Saves
threetopia-lock.jsonand exact direct dependencies in your project manifest. - Records the successful installation in the registry.
Commit your lockfile. Package versions are immutable. Installing a newer version is explicit; existing projects do not silently update.
The package creator sees your public handle, the installed version and the number of project installations. A project uses a random ID; private project names and source code are not sent. Downloading files directly from the API does not count as a CLI installation.
threetopia uninstall @threetopia/beacon
Uninstall removes the dependency, local package directory and active installation record. It does not delete assets you already copied into your world. Transitive dependencies can be removed once nothing else depends on them.
Use an installed model
threetopia use @threetopia/beacon --export model --as map
threetopia use @threetopia/beacon --export model --as overview
threetopia use @threetopia/beacon --export world --as world
threetopia check
use checks the actual geometry against the selected role before copying it into your world’s content file. For a larger composition, import installed GLBs in your modelling or build tools, then export the combined scene. Its combined geometry must fit the slot and budget.
For code exports, import the installed file in your own application or bundler. Installation does not execute package scripts, and uploaded JavaScript never runs automatically on the creator website.
Managed namespaces
The package scope and the managing account can differ when a platform operator explicitly assigns a managed namespace. threetopia namespaces lists your allowed scopes. Use threetopia create directory --name @namespace/package --kind asset --from prepared-package to keep the prepared identity; --from preserves the source name by default. Permissions still belong to the managing account. README attribution identifies the source author separately. A later operator-assisted transfer must move the namespace grant, package owners and associated world tiles together; published names, versions and stored file references remain unchanged. There is no public endpoint for claiming another creator’s namespace.