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

@blockflow-labs/cli

v2.0.3

Published

CLI tool for building blockflow pipelines

Downloads

101

Readme

BlockFlow Studio

Build Status

BlockFlow is a cutting-edge data infrastructure platform that revolutionizes how you interact with on-chain data. Our platform enables seamless data transformation, streaming, and integration capabilities, supporting both real-time and historical data access.

With BlockFlow's robust command-line interface (CLI), you can unlock the platform's full potential. Focus on building innovative features for your Web3 application while we manage the complex backend infrastructure.

Installation

BlockFlow requires Docker and Node.js v18+ with TypeScript support.

npm i -g @blockflow-labs/cli

Verify your installation:

blockflow --version

Set up your BlockFlow credentials to get started. Find your credentials here.

blockflow configure

Project Initialization

Create a new project in an empty directory using the blockflow init command. This launches an interactive setup wizard where you can either configure your project from scratch or build upon existing templates.

blockflow init

Configuration

BlockFlow Studio uses a YAML configuration file (studio.yaml) in your project's root directory to manage settings. Here are the key configuration components:

| Configuration | Description | | ------------- | ------------------------------------------------------------------------------ | | Version | Specifies the BlockFlow YAML template version (currently 2.0.0) | | Type | Determines the deployment mode: either instance or api | | Metadata | Contains your instance name and description | | Auth | Stores BlockFlow credentials required for deployment | | Path | Specifies locations of your docker-compose and studio.schema.ts files | | Environment | Defines settings for testing and deployment (network, chain, startBlock, RPCs) | | Secrets | Stores sensitive variables securely for runtime injection | | Resources | Specifies smart contracts for indexing or APIs built on indexed data |

Resources

The resources section lets you define multiple data sources from blockchain networks, smart contracts, or APIs. Each data source includes:

| Parameters | Description | | ---------- | ------------------------------------------------------------------ | | name | Unique identifier for the data source | | type | Resource category specification | | abi | Location of the smart contract's ABI file for interface definition | | address | Data source's blockchain address | | triggers | Maps smart contract events/functions to their handler functions |

For detailed configuration information, visit our documentation.

Blockflow Commands

Validate your configuration:

blockflow validate

Generate event/function listings in studio.yaml:

blockflow generate

Create handlers in your project:

blockflow codegen

Test locally using Docker with MongoDB and PostgreSQL:

blockflow test

Deployment

Deploy your tested project to the BlockFlow server:

blockflow deploy

Template Usage

Jump-start development using pre-built templates:

blockflow apply --template template-name

Available templates from the BlockFlow team:

| Template | Description | | --------- | -------------------------------------------------------------- | | ERC20 | Standard fungible token interface for Ethereum | | ERC4337 | Account abstraction protocol for enhanced wallet functionality | | ERC721 | Standard non-fungible token (NFT) interface for Ethereum | | Lido | Liquid ETH staking protocol with maintained liquidity | | ENS | Decentralized domain naming system for Ethereum |

For comprehensive details about BlockFlow Studio and its capabilities, explore our documentation.

Interested in contributing or exploring examples? We'd love your involvement! Star our examples repository.