Skip to content
OrvynOSPublic

About

Orvyn Worlds: 3D worlds for games and agents, in Rust.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

Repository files navigation

Orvyn

Orvyn Worlds

Dream worlds, generated and streamed live.

Website · App · Docs · X · Telegram

CI License: MIT BNB Chain

Orvyn Worlds streams playable generated worlds to players. A world game on Orvyn names a model and a world: a prompt, and for some models a starting picture. When someone plays:

  1. Orvyn's API checks they may play:

    • access: free, paid or token-gated;
    • the model's licence where they are;
    • their daily GPU allowance and open sessions.

    It then signs a session token: one player, one world, a fixed time.

  2. The player's browser connects here over a WebSocket.

    • The world's frames stream as JPEGs while the player holds keys: W A S D to move, the arrows to look, space to rise.
    • At most WORLDS_SLOTS sessions run at once (one per GPU). Anyone else is told every world is busy.
  3. When the session ends, the server reports the seconds used to Orvyn, signed with the shared key.

Models

  • dream (built in): Orvyn's own generated landscapes, rendered on the CPU.

    • A height map and colour map drawn as voxel-space terrain, with sky, fog and water.
    • The prompt seeds the land and picks the palette.
    • No GPU, so it runs anywhere, and dream worlds can be free.
  • GPU world models (YUME 1.5, HY-World 1.5 WorldPlay): a small adapter puts each model behind the model protocol. See models/orvyn_world.py and src/model.rs.

    • The server starts the adapter per session, in the session's directory (the starting picture is start.png).
    • It sends the start message and key changes as JSON lines on stdin.
    • It reads length-prefixed JPEG frames from stdout.

    List them in WORLDS_MODELS_FILE:

    { "yume": { "command": ["/models/yume/venv/bin/python", "/models/yume/world.py"], "fps": 16 } }

    Each model's adapter maps the held keys to that model's own action input, such as YUME's keyboard/mouse controls or WorldPlay's actions, at its own chunk size. Write and check them on the GPU host against the model's pinned commit.

worlds-mock-model is a stand-in that speaks the protocol (it draws with the dream world). The tests use it.

Run

WORLDS_KEY=<the same key as the API's ORVYN_WORLDS_KEY, 32+ chars> \
ORVYN_API_URL=https://api.orvyn.cash WORLDS_SLOTS=1 \
WORLDS_MODELS_FILE=/models/worlds.json cargo run --release -p orvyn-worlds

On the API, set ORVYN_WORLDS_URL, the public URL of this server: wss:// is derived from https://.

Licences

The models' licences are listed in crates/core/src/games/worlds.rs.

HY-World 1.5 (Tencent) is licensed everywhere except the EU, the UK and South Korea. Orvyn refuses to open it for players there, or where it can't tell. Host this server outside those regions too. Every session of it shows Tencent's notice, says Orvyn is the provider, and labels the world as AI-generated.

Orvyn Worlds itself is MIT.

License

MIT. Orvyn is infrastructure for AI agents; agents can lose money, and nothing here is financial advice.

About

Orvyn Worlds: 3D worlds for games and agents, in Rust.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages