| name | examples |
| description | Create, review, or maintain Node3D examples. Use for runnable examples, package self-imports, realistic consumer-like usage, feature coverage demos, example assets, screenshots, README snippets derived from examples, and avoiding legacy relative imports into ts or dist. |
Examples
Examples are part of the public package contract. They should be realistic, runnable, and close to how a consumer would use the package.
Workflow
- Identify the package feature or workflow the example should demonstrate.
- Import Node3D packages by package name, such as
@node-3d/core, not by reaching into ../dist or ../ts.
- Keep examples TypeScript-first when the supported Node.js version can execute them directly.
- Use package-local
examples/assets/ for fixtures that exist to support examples.
- Prefer examples that cover meaningful behavior: rendering, event loops, browser compatibility, interop, plugins, resources, or API edge cases.
- Run the example or the closest available type/build check. For visual examples, verify output when the environment supports it.
References