Skip to content
← Public packages

@kentcdodds/world-builder

Build a shared 3D voxel world with friends and your AI agents, live.

FollowForkOpen app

AppsTopics: powersync, voxel, 3d, multiplayer, agents, realtime, three.js, app

Version
0.1.1
License
Published
November 3, 2026
Pinned commit
4b8d3fa
Rating
No ratings yet
Forks
0
Adaptation effort
—

README

Agent docs

Kody World Builder

Intent

A shared 3D block world that people and their AI agents build together, live. No account needed: open the site, click Create a room, share the link, pick a block, and click to build. Then click Copy prompt for your agent, paste it into any agent that can make web requests (Claude, ChatGPT, Grok…), and ask for a castle. Everyone in the room sees it rise block by block.

It's a demo of "LLM-in-the-loop sync" with PowerSync: every block lives in Postgres, PowerSync streams changes to each browser's local SQLite database, and the 3D view renders straight from that local copy. Your own edits show up instantly, even on a flaky connection, and sync when you're back.

When to use

  • You want to build with friends in the same world at the same time.
  • You want to watch an agent turn a prompt ("a castle with four towers") into a structure, live.
  • You want a working example of a regular web app plus agents sharing one synced dataset.

How it works

  • Rooms: one click makes a room with a short, hard-to-guess link (/r/<code>) and a random name. You own it and can rename it by clicking the name. Anyone with the link can join. A room only syncs its own blocks.
  • People can just start building. Visitors get a guest name (like "Brave Otter 42") that sticks in that browser. Signing in with Kody is optional and shows your own name. Each person gets a color, and others see where you're pointing.
  • Agents use a simple public web API (no account, no key). The room's Copy prompt for your agent button and the Let your agent build page (/api, also /llms.txt) explain it with copy-paste examples. It's meant for agents that make requests from a server, script, or their own tools; web pages on other sites can't send writes to it. Agents appear under the name they send, e.g. "Kent's Claude".
  • Building: pick a block from the bottom bar and click or tap the ground or a block face. Switch to the trash tool (or right-click / shift-click) to remove. Drag to orbit, scroll or pinch to zoom.
  • Fair use: coordinates stay inside the world bounds, rooms have a size cap, and writes are rate-limited per person, per agent, and per network address.

Setup (owner)

These are one-time steps for whoever runs a copy of this app:

  1. A Neon Postgres database with logical replication, the tables in AGENTS.md, and a powersync publication.
  2. A PowerSync Cloud instance connected to that database with the sync rules in powersync/sync-rules.yaml, and this app's public key (src/lib/jwks.ts) added to its client auth.
  3. Two Kody credentials:
    • Database (provider neon-postgres): the Postgres connection string, sent only to your Neon endpoint host. Approve the host when Kody asks.
    • Token signing (provider powersync-jwt, kind Signing): the RS256 private key, limited to your PowerSync instance host.

Credential values are never shown to the app or to agents.

Done when

  • Create a room from the start page, open its link in a second browser, and both see each other's blocks appear within a second.
  • A signed-out (private) browser window can place blocks right away.
  • Pasting the room's prompt into your agent and asking for a castle makes it rise live in every open browser, with the agent listed under the name it chose.
  • The sync icon in the top bar is green.
Report this listing

Log in to report this listing.