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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@abernatskiy/create-squid

v0.0.5

Published

Automatically generate Subsquid blockchain indexers

Downloads

41

Readme

create-squid

Code generation tool for Subsquid indexers a.k.a. squids. Capabilities:

  • works with EVM smart contracts;
  • makes multichain indexers;
  • fetches and decodes event logs, then stores them into Postgres;
  • has tests.

Limitations of the tool (will be removed in the future):

  • it requires a YAML config - no interactive mode;
  • it requires a JSON ABI file in the filesystem for every contract;
  • it has some missing functionality:
    • multiple events with the same name but different signature in a single ABI are not processed correctly;
    • addresses obtained by event decoding will not be consistent with the addresses used in the rest of the data: they will be in mixed case while the SDK-related addresses will be in flat lower case.

Requirements: NodeJS v20 or newer, Docker

Quickstart

  1. Create a folder for your new squid project, then a ./abi subfolder in it.

  2. Create a sample createSquid.yaml file in the current directory:

    # yaml-language-server: $schema=https://cdn.subsquid.io/create-squid/create-squid.schema.json
    name: create-squid-ref-event-tables
    description: Reference squid for the one-table-per-event mode of the create-squid utility
    contracts:
      - name: Tokens
        abi: ./abi/erc20.json
        instances:
          - address: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
            name: usdc
            network: ethereum-mainnet
            range:
              from: 6082465
          - address: "0x1337420dED5ADb9980CFc35f8f2B054ea86f8aB1"
            name: sqd
            network: arbitrum-one
            range:
              from: 194120655
        events:
          - "Transfer(address,address,uint256)"
      - name: AavePool
        abi: ./abi/aave-pool.json
        instances:
          - address: "0x02D84abD89Ee9DB409572f19B6e1596c301F3c81"
            proxy: "0x7d2768dE32b0b80b7a3454c06BdAc94A69DDc7A9"
            name: main
            network: ethereum-mainnet
            range:
              from: 11362579
        events:
          - "LiquidationCall(address,address,address,uint256,uint256,address,bool)"

    The top line works with RedHat's YAML extension on VSCode; edit it to work with your IDE. If you're working with an editor that doesn't use a language server, find the list of available networks here.

  3. Edit createSquid.yaml to request all the events you need from your contracts. Save all ABIs you're using to ./abi.

  4. Run npm create squid.

    • if you prefer Yarn or PNPM to NPM, run npm create squid --skip-install --skip-external-codegens instead.
  5. Follow the post-generation instructions from tool's stdout.