dojo-indexer

Index on-chain Dojo world events for GraphQL queries and gRPC subscriptions.

1|Updated Mar 7, 2026
One-click install
npx skills add https://github.com/shariqazeem/Prophecy-Roguelite --skill dojo-indexer-shariqazeem
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dojo-indexer
Source: https://github.com/shariqazeem/Prophecy-Roguelite/tree/main/.agents/skills/dojo-indexer
Command: npx skills add https://github.com/shariqazeem/Prophecy-Roguelite --skill dojo-indexer-shariqazeem

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Torii removes the friction of querying and monitoring Dojo world state by indexing on-chain events and exposing a fast, type-safe GraphQL API, gRPC subscriptions, and direct SQL access so clients, dashboards, and analytics can consume world data reliably.

Core Features & Use Cases

  • Torii orchestration: start and configure Torii for development and production with options for controller indexing and DB persistence.
  • GraphQL & subscriptions: generate model-specific queries, cursor pagination, and real-time entity or event subscriptions for live game clients.
  • SQL access & troubleshooting: inspect the SQLite store for complex aggregations, performance tuning, and debugging.
  • Use case: power a live game client that subscribes to Position updates for smooth UI state, or run backend analytics that aggregate entity metrics across worlds.

Quick Start

Start Torii pointed at your deployed world address, enable controller indexing and expose GraphQL and gRPC endpoints for client queries and subscriptions.

Frequently Asked Questions about dojo-indexer

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

FAQPage Schema
How do I query Dojo world state in real time?

Torii indexes on-chain world events and exposes them for efficient GraphQL queries and real-time gRPC subscriptions, allowing clients to consume world data reliably. This removes the friction of directly polling RPC nodes for state updates.

What is the best way to monitor Dojo entity updates for a live game client?

Monitoring Dojo entity updates is best achieved using Torii's gRPC subscriptions to stream real-time entity or event changes. This enables smooth UI state synchronization by pushing world data directly to live game clients.

Do I need SQLite persistence to run a Dojo indexer locally?

SQLite persistence is optional when running a Dojo indexer. You can start Torii with just a deployed world address and RPC connectivity, enabling SQLite only when you need direct SQL access for complex aggregations or debugging.

Can I use GraphQL to aggregate Dojo world metrics across multiple deployments?

Yes, you can use GraphQL to aggregate Dojo world metrics, and optionally inspect the SQLite store for complex aggregations and performance tuning. Torii generates model-specific queries and supports cursor pagination for efficient data retrieval.

How do I configure CORS for client access to a Dojo GraphQL API?

You configure CORS for client access to a Dojo GraphQL API through Torii's configuration options when exposing endpoints. Proper CORS configuration ensures web clients can securely query the indexed world state and establish gRPC subscriptions.