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

# Indexer SDK Installation

> Lightweight SDK for interacting with the Namespace Indexer to read indexed data from smart contracts.

You can install the library:

<Tabs>
  <Tab title="npm">
    ```bash theme={null}
    npm install @thenamespace/indexer
    ```
  </Tab>

  <Tab title="yarn">
    ```bash theme={null}
    yarn add @thenamespace/indexer
    ```
  </Tab>

  <Tab title="pnpm">
    ```bash theme={null}
    pnpm add @thenamespace/indexer
    ```
  </Tab>
</Tabs>

### Usage

<CodeGroup>
  ```typescript Default theme={null}
  import { createIndexerClient } from "@thenamespace/indexer";

  const indexer = createIndexerClient();
  ```

  ```typescript Custom Endpoint theme={null}
  import { createIndexerClient } from "@thenamespace/indexer";

  // Custom endpoint and timeout
  const indexer = createIndexerClient({
    indexerUri: "https://indexer.namespace.ninja",
    timeout: 15000,
  });
  ```
</CodeGroup>

### Configuration

* indexerUri (optional, string): Base URL of the Indexer service to query. If omitted, the SDK uses its internal default service URL.
* timeout (optional, number): HTTP request timeout in milliseconds. Default is 30000ms.
