create-anyo-world 0.0.0-stage → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/LICENSE +21 -0
- package/README.md +56 -2
- package/bin/create-anyo-world.mjs +634 -0
- package/contracts/anyo-project-v1.schema.json +56 -0
- package/contracts/anyo-web-app-v1.schema.json +21 -0
- package/contracts/anyo-world-manifest-v1.schema.json +242 -0
- package/docs/cli.md +26 -0
- package/docs/getting-started.md +35 -0
- package/docs/local-development.md +45 -0
- package/docs/project-structure.md +62 -0
- package/docs/publishing-worlds.md +25 -0
- package/docs/web-surfaces.md +35 -0
- package/docs/world-authoring.md +43 -0
- package/package.json +49 -4
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 0.6.1
|
|
4
|
+
|
|
5
|
+
- Create World 0.9 projects with `anyo.project.json` for authoring tools.
|
|
6
|
+
- Start with a single JSON file or use `--modular` to add reusable Object 0.1 documents.
|
|
7
|
+
- Validate and bundle worlds using Anyo core `0.11.0-rc.37`.
|
|
8
|
+
- Preview local worlds in Anyo World Loader `0.6.0-rc.1` using the URL printed by the dev server.
|
|
9
|
+
- Keep Atlas placement and repository Web Surface support.
|
|
10
|
+
- Restrict the dev server to public project files and add a `check` command to generated worlds.
|
|
11
|
+
- Add user guides and support a simple tag-based release workflow.
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 blcklab
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,57 @@
|
|
|
1
|
-
#
|
|
1
|
+
# create-anyo-world
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Create JSON-first 3D world projects for [Anyo](https://github.com/blcklab/anyo), Anyo World Loader, and Atlas. Start with a single world file, or organize a larger world into reusable objects. The CLI has no runtime dependencies.
|
|
4
|
+
|
|
5
|
+
## Getting started
|
|
6
|
+
|
|
7
|
+
Use Node.js 20 or newer.
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
npm create anyo-world@latest my-world -- --mode=loader
|
|
11
|
+
cd my-world
|
|
12
|
+
npm install
|
|
13
|
+
npm run dev
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
Your world is available at `http://127.0.0.1:4174/world.anyo.json`.
|
|
17
|
+
|
|
18
|
+
To see it in 3D, start Anyo World Loader separately and open the preview URL printed by the dev server. Edit `world.anyo.json`, then refresh the Loader. See [local development](docs/local-development.md) for the full setup.
|
|
19
|
+
|
|
20
|
+
## Choose a project
|
|
21
|
+
|
|
22
|
+
| Mode | Use it for |
|
|
23
|
+
| --- | --- |
|
|
24
|
+
| `loader` | Standalone worlds without a geographic location |
|
|
25
|
+
| `atlas` (default) | Worlds placed on a real map |
|
|
26
|
+
| `both` | Geographic worlds intended for both Atlas and World Loader |
|
|
27
|
+
|
|
28
|
+
Add `--modular` to start with a reusable Anyo object, or `--web-surface=dashboard` to include an interactive HTML/CSS/JS application.
|
|
29
|
+
|
|
30
|
+
## Project commands
|
|
31
|
+
|
|
32
|
+
Run these inside your generated world:
|
|
33
|
+
|
|
34
|
+
| Command | What it does |
|
|
35
|
+
| --- | --- |
|
|
36
|
+
| `npm run dev` | Serve JSON and assets locally |
|
|
37
|
+
| `npm run validate` | Check world, imports and repository metadata |
|
|
38
|
+
| `npm run bundle` | Write a single bundled world to `dist/world.anyo.json` |
|
|
39
|
+
| `npm run check` | Validate and bundle |
|
|
40
|
+
|
|
41
|
+
## Documentation
|
|
42
|
+
|
|
43
|
+
- [Getting started](docs/getting-started.md)
|
|
44
|
+
- [CLI options](docs/cli.md)
|
|
45
|
+
- [Project structure and manifests](docs/project-structure.md)
|
|
46
|
+
- [Local development](docs/local-development.md)
|
|
47
|
+
- [JSON world authoring](docs/world-authoring.md)
|
|
48
|
+
- [Web Surfaces](docs/web-surfaces.md)
|
|
49
|
+
- [Publishing a world repository](docs/publishing-worlds.md)
|
|
50
|
+
|
|
51
|
+
## Contributing
|
|
52
|
+
|
|
53
|
+
Clone the repository, run `npm ci`, then `npm run check`. To try the generator from source, run `npm run dev -- my-world --mode=loader`.
|
|
54
|
+
|
|
55
|
+
## License
|
|
56
|
+
|
|
57
|
+
[MIT](LICENSE)
|