npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@artwoooood/store-indexer

v0.1.6

Published

Minimal Typescript indexer for Store

Downloads

873

Readme

store-indexer

A minimal Typescript indexer for MUD Store events (built on store-sync)

Usage

Install and run with:

npm install @latticexyz/store-indexer

npm sqlite-indexer
# or
npm postgres-indexer & npm postgres-frontend

or execute the one of the package bins directly:

npx -p @latticexyz/store-indexer sqlite-indexer
# or
npx -p @latticexyz/store-indexer postgres-indexer & npx -p @latticexyz/store-indexer postgres-frontend

Configuration

Each indexer can be configured with environment variables.

Common environment variables for indexer

| Variable | Description | Default | | ------------------ | ------------------------------------------------------------------------------------------------------------- | ------- | | RPC_HTTP_URL | HTTP URL for Ethereum RPC to fetch data from | | | RPC_WS_URL | WebSocket URL for Ethereum RPC to fetch data from | | | START_BLOCK | Block number to start indexing from | 0 | | MAX_BLOCK_RANGE | Maximum number of blocks to fetch from the RPC per request | 1000 | | POLLING_INTERVAL | How often to poll for new blocks (in milliseconds) | 1000 | | STORE_ADDRESS | Optional address of the MUD Store to index. By default, store-indexer will index all MUD Stores on the chain. | |

Note that you only need one of RPC_HTTP_URL or RPC_WS_URL, but we recommend both. The WebSocket URL will be prioritized and fall back to the HTTP URL if there are any connection issues.

Common environment variables for frontend

| Variable | Description | Default | | -------- | ------------------------------------------------ | --------- | | HOST | Host that the indexer frontend server listens on | 0.0.0.0 | | PORT | Port that the indexer frontend server listens on | 3001 |

Postgres indexer environment variables

| Variable | Description | Default | | ------------------ | --------------------------------------------------- | ------- | | DATABASE_URL | Postgres connection URL | | | HEALTHCHECK_HOST | Host that the indexer healthcheck server listens on | | | HEATHCHECK_PORT | Port that the indexer healthcheck server listens on | |

SQLite indexer environment variables

| Variable | Description | Default | | ----------------- | ------------------------ | ------------ | | SQLITE_FILENAME | SQLite database filename | indexer.db |