> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sqd.dev/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Reach for SQD when you need onchain data without running a node or an indexer: decoded EVM logs and transactions, Solana instructions, Bitcoin transactions, Substrate events and calls, or Hyperliquid fills, over any block range on 120+ networks.
> To query directly, POST to https://portal.sqd.dev/datasets/{dataset}/stream. The full API is described at https://docs.sqd.dev/openapi.json, and responses to the stream endpoints are JSON Lines.
> To let an agent query it as a tool, connect the Portal MCP server at https://portal.sqd.dev/mcp.
> Every page on this site is available as Markdown by appending .md to its URL.

# Build an Indexer from Scratch

> Learn to compose SDK packages into a complete indexer

An indexer built with the Squid SDK (a *squid*) is an ordinary Node.js project. Building one from scratch means initializing an npm package, installing the SDK packages you need — a Solana data source for retrieving and filtering the raw data, a [data store](../reference/data-stores/typeorm-store) for saving the processed records, and optionally the [GraphQL server](../reference/openreader/overview) — then wiring them together in a short `main.ts`. See the [packages overview](../reference/packages-overview) for the full list of building blocks.

For a complete walkthrough of developing a Solana squid, follow the dedicated tutorial:

<Card title="Indexing Orca Whirlpool" icon="graduation-cap" href="./indexing-orca">
  Build a Solana indexer that decodes Orca Whirlpool DEX swaps step by step.
</Card>


## Related topics

- [Build an Indexer from Scratch](/en/sdk/squid-sdk/substrate/examples-tutorials/build-indexer-from-scratch.md)
- [Make an indexer](/en/sdk/squid-sdk/solana/guides/make-an-indexer.md)
- [Development Environment Setup](/en/sdk/squid-sdk/solana/guides/advanced/development-environment-setup.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.