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

@indexing/jiti

v0.1.4

Published

Just In Time Indexing, for all

Readme

JITI - Just In Time Indexing

Open source template library for extracting and transforming blockchain data across 15+ networks. Built by Indexing Co.

Installation

npm install @indexing/jiti

Overview

JITI provides a unified interface for extracting structured data from raw blockchain blocks. It ships with built-in templates for common use cases and utility functions for working with multi-chain data.

Supported Networks

| VM Type | Networks | |---------|----------| | EVM | Ethereum, Polygon, Arbitrum, Base, Optimism, Avalanche, and 100+ more | | SVM | Solana, Eclipse | | UTXO | Bitcoin, Litecoin, Dogecoin, Zcash | | Substrate | Polkadot, Kusama, Astar, Bittensor, Enjin | | Cosmos | Cosmos Hub and Tendermint-based chains | | Aptos | Aptos, Movement | | Cardano | Cardano | | Sui | Sui | | Starknet | Starknet | | Stellar | Stellar | | Filecoin | Filecoin | | Ripple | XRP Ledger | | TON | The Open Network |

Usage

Token Transfers

Extract token transfers from any supported block with a single interface:

import { templates } from '@indexing/jiti';

const transfers = templates.tokenTransfers.transform(block, {
  params: {
    network: 'ETHEREUM',
    walletAddress: '0x...', // optional - filter by wallet
    contractAddress: '0x...', // optional - filter by token contract
    tokenTypes: ['NATIVE', 'TOKEN', 'NFT'], // optional - filter by type
  },
});

Each transfer follows the NetworkTransfer type:

type NetworkTransfer = {
  amount: number | bigint;
  blockNumber: number;
  from: string;
  to: string;
  token?: string;
  tokenId?: string;
  tokenType: 'NATIVE' | 'TOKEN' | 'NFT';
  transactionHash: string;
  transactionGasFee: bigint;
  timestamp: string;
};

Utilities

import { utils } from '@indexing/jiti';

// Detect the VM type from a raw block
utils.blockToVM(block); // 'EVM' | 'SVM' | 'CARDANO' | ...

// Extract block number, timestamp, or tx hashes from any block
utils.blockToBeat(block);
utils.blockToTimestamp(block);
utils.blockToTransactionHashes(block);

// EVM-specific helpers
utils.evmChainToId('ETHEREUM'); // 1
utils.evmIdToChain(137); // 'POLYGON'
utils.evmAddressToChecksum('0xabc...');
utils.evmDecodeLog(log, abi);

Development

# Install dependencies
npm install

# Run tests
npm test

# Build
npm run build

# Lint & format
npm run lint

Adding a New Network

Token transfer templates live in src/templates/token-transfers/. Each network implements the SubTemplate interface:

import { SubTemplate } from '../../types';

export const MyChainTokenTransfers: SubTemplate = {
  match: (block) => /* return true if this block belongs to your chain */,
  transform(block) {
    // Parse the block and return NetworkTransfer[]
  },
  tests: [
    {
      params: { network: 'MY_CHAIN', walletAddress: '...' },
      payload: 'https://jiti.indexing.co/networks/my_chain/12345',
      output: [/* expected NetworkTransfer objects */],
    },
  ],
};

Then register it in src/templates/token-transfers/index.ts.

Contributing

Contributions are welcome! Please open an issue or submit a pull request.

License

GPL-3.0-or-later - Copyright 2024 The Indexing Company