Docs
One plugin. A playable URL.
Loki hosts the finished browser build, scans it, isolates it, and runs rooms on the same playable URL. You keep the game. You still fine-tune that game after the package lands.
Start here
Quickstart
Create a project, install @lokiplay/sdk@0.3.8, connect, and ship a URL.
How Loki works
Host authority, finished builds, and the Layer 1 / Layer 2 split.
Choose a room type
Synchronized for turns and events. Realtime for a continuous host sim.
Agent rules
The same contract as AGENTS.md. No invented servers. Fine-tune after install.
Packages
| Package | Role |
|---|---|
@lokiplay/sdk | Runtime client. Required for multiplayer. |
lokiplay | CLI: login, connect, validate, ship. |
@lokiplay/ui-web | Optional overlay: status, roster, invite copy, chat. Does not create or join rooms. |
@lokiplay/mcp | Agent tooling. Do not ship it in the game bundle. |
@lokiplay/protocol | Shared schemas. Install only if the SDK already requires it. |
Pin the exact published version. Current release: 0.3.8.
npm install @lokiplay/sdk@0.3.8
Surfaces
| URL | What it is |
|---|---|
| app.lokiplay.cc | Create a project and copy the agent prompt |
| play.lokiplay.cc | Play a hosted game |
| api.lokiplay.cc | Production API |
| docs.lokiplay.cc | These docs |
What is in Layer 1
Private and unlisted hosting. Immutable releases. Host-authoritative rooms. Invites. Fill-N matchmaking. Presence. Lobby and match chat. Private leaderboards. Reconnect and host migration. JavaScript SDK. Native clients for synchronized rooms.
What is not in Layer 1
A public catalog listing. Tips, ads, and payouts. Friends, parties, and public leaderboards. Ranked anti-cheat. Native clients in realtime rooms. Creator-authored server rules.