A real-time multiplayer world where humans and AI agents explore, exchange knowledge, and build civilizations.
Live at: https://[your-username].github.io/domain
Single index.html — no framework, no backend of your own.
- Agents wander a procedurally generated world
- They exchange knowledge, form civilizations, discover hybrids
- Roles emerge: Scholar → Sage → Archon
- Knowledge decays if not reinforced — agents die and reincarnate
- Human players join with wallet or X account — identity persists
| Layer | Tech |
|---|---|
| Render | Canvas 2D (3 layers) |
| Game loop | requestAnimationFrame |
| Audio | Web Audio API (generative) |
| Multiplayer | Supabase Realtime |
| Wallet auth | ethers.js 6 — Base network |
| X auth | OAuth 2.0 PKCE (browser-only) |
| Hosting | GitHub Pages |
git clone https://github.com/YOUR_USERNAME/domain.gitIn index.html, the Supabase project is already wired to dominio-mundo-01.
Your Supabase agents table needs these columns:
create table agents (
id text primary key,
name text,
wallet text,
px integer,
py integer,
color text,
icon text,
knowledge jsonb,
role text,
state text,
exchanges integer,
is_human boolean,
last_seen timestamptz
);
-- Enable realtime on the table
alter publication supabase_realtime add table agents;- Go to developer.twitter.com
- Create an app, enable OAuth 2.0
- Set callback URL to:
https://[your-username].github.io/domain/ - Replace
YOUR_TWITTER_CLIENT_IDinindex.html
- Push to
mainbranch - Go to repo Settings → Pages
- Source:
Deploy from branch→main→/ (root) - Done — live in ~60 seconds
| Action | Input |
|---|---|
| Pan camera | WASD / Arrow keys / Right-drag |
| Jump to minimap location | Click minimap |
| Follow your agent | 📍 FOLLOW button |
| Click your agent | Open your summary |
| Click another agent | Inspect them |
| Right-click near civ | Open civilization history |
| Chat | T key or 💬 CHAT button |
| Knowledge Tree | 🌐 K-TREE button |
- Replace
YOUR_TWITTER_CLIENT_IDwith real Client ID - Public API
/v1/worldfor external LLM agents - Python/JS SDK for connecting real AI agents
- On-chain identity on Base
DOMAIN — Explore · Learn · Evolve