What problem does it solve?
This Skill solves the core problem of slow, costly direct chain queries for Sails app frontend and integration data needs by providing a structured, production-grade workflow to build event-driven read-side indexers with projected data models and GraphQL APIs.
Core Features & Use Cases
- IDL-Driven Event Decoding: Automatically decode Sails program events using .idl files for consistent, type-safe data extraction without manual SCALE parsing.
- Event-Driven Projection Pipeline: Build scalable Postgres read models from chain events, with support for enrichment, aggregates, and idempotent replay for production workloads.
- Thin GraphQL API: Expose a browser-safe GraphQL endpoint for frontend consumption, with built-in guidance for CORS configuration and dev proxy setup.
Use Case: For a Sails app with activity feeds, portfolio pages, and aggregated metrics, use this Skill to build an indexer that processes chain events into a Postgres read model, cutting frontend data load times by eliminating repeated expensive direct chain queries.
Quick Start
Use the sails-indexer skill to design and implement a production-ready read-side indexer with a GraphQL API for your Gear/Vara Sails app's frontend data requirements.