dojo-client

Integrate Dojo client SDKs with JavaScript/TypeScript game frontends for entity queries and system executions.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/Kepler22bee/House-of-Stark --skill dojo-client-kepler22bee
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dojo-client
Source: https://github.com/Kepler22bee/House-of-Stark/tree/main/contracts/.agents/skills/dojo-client
Command: npx skills add https://github.com/Kepler22bee/House-of-Stark --skill dojo-client-kepler22bee

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Connecting game frontends and engines to a deployed Dojo world requires manifest handling, typed bindings, authentication, and real-time subscriptions; this Skill consolidates those steps so clients can reliably read state and execute systems.

Core Features & Use Cases

  • JavaScript/TypeScript Integration: Install SDK packages, import the manifest, generate TypeScript bindings, and initialize the SDK to query entities and execute systems from React or other frontends.
  • Controller & Authentication: Configure Cartridge Controller connector policies and integrate with starknet-react for session-based accounts and secure transaction signing.
  • Queries, Subscriptions, and Bindings: Build Torii queries and subscriptions, subscribe to entity changes, and generate language-specific bindings for Unity, Unreal, Godot, and Bevy to synchronize engine state.
  • Use Case: Set up a React client that subscribes to player entities, renders HUD updates in real time, and executes spawn, move, and dig systems using a Controller session.

Quick Start

Initialize the JavaScript SDK with your manifest, point the client to your Torii URL and world address, and verify a test query returns entities.

Frequently Asked Questions about dojo-client

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I connect a game frontend to a Dojo world for entity queries and system execution?

To connect a game frontend to a Dojo world, you must install the SDK packages, import your manifest, generate TypeScript bindings, and initialize the client. This setup enables your frontend to query entities, subscribe to state changes, and execute systems.

Does the Dojo client SDK support game engines like Unity, Unreal, Godot, and Bevy?

Yes, the Dojo client SDK supports game engines like Unity, Unreal, Godot, and Bevy. It generates language-specific typed bindings for these engines, allowing you to synchronize engine state directly with your deployed Dojo world.

How do I set up Torii subscriptions to sync real-time entity state changes in my game?

You can set up Torii subscriptions by building Torii queries within your initialized SDK. This allows your game client to subscribe to specific entity changes and receive real-time state updates from the deployed Dojo world.

What is needed to configure Controller session authentication for a Dojo game client?

Configuring Controller session authentication requires setting up Cartridge Controller connector policies and integrating with starknet-react. This provides session-based accounts and secure transaction signing for executing Dojo systems.

Do I need a deployed world with accessible endpoints before integrating the Dojo client SDK?

Yes, you must have a deployed Dojo world with accessible RPC and Torii endpoints before integrating the client SDK. The SDK initialization requires pointing your client to a valid Torii URL and world address to fetch state.

Why are my generated TypeScript bindings failing to query entities from my Dojo world?

TypeScript bindings fail to query entities when the SDK is initialized with an incorrect Torii URL or world address. You must ensure your deployed world is accessible and verify your manifest imports match the deployed world configuration.