← ClaudeAtlas

dojo-indexerlisted

Set up and configure Torii indexer for GraphQL queries, gRPC subscriptions, and SQL access. Use when indexing your deployed world for client queries or real-time updates.
diegosouzapw/awesome-omni-skill · ★ 43 · API & Backend · score 61
Install: claude install-skill diegosouzapw/awesome-omni-skill
# Dojo Indexer (Torii) Set up and use Torii, the Dojo indexer, for efficient querying and real-time subscriptions to your world state. ## When to Use This Skill - "Set up Torii indexer" - "Configure GraphQL for my world" - "Create subscriptions for entity updates" - "Query world state efficiently" ## What This Skill Does Manages Torii indexer: - Start and configure Torii - Create GraphQL queries - Set up real-time subscriptions - Access SQL database directly ## Quick Start **Start Torii:** ```bash torii --world <WORLD_ADDRESS> ``` This starts Torii with default settings: - GraphQL API at `http://localhost:8080/graphql` - gRPC API at `http://localhost:8080` - In-memory database (for development) **With Controller indexing (recommended):** ```bash torii --world <WORLD_ADDRESS> --indexing.controllers ``` **Production configuration:** ```bash torii --world <WORLD_ADDRESS> --db-dir ./torii-db --indexing.controllers ``` ## What is Torii? Torii is the Dojo indexer that: - Watches blockchain for world events - Indexes model state changes - Provides GraphQL API for queries - Provides gRPC API for subscriptions - Offers SQL access for complex queries **Why use Torii:** - Faster than direct RPC queries - Complex queries (filters, pagination) - Real-time subscriptions - Type-safe GraphQL schema ## GraphQL API Torii provides GraphQL endpoint at `http://localhost:8080/graphql` Use the GraphiQL IDE in your browser to explore the schema and test queries. ### Schema Structure