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

@morpho-dev/router

v0.10.0

Published

Router package for Morpho protocol

Readme

Router

Status: Alpha – this is under active development and interfaces/behavior are subject to change.

CLI

CLI install

pnpm add -g @morpho-dev/router
  • Router configuration is read from a TOML file
  • router start only accepts --config-file (or ROUTER_CONFIG_FILE/./router.toml)
  • Seed mock offers with --mock <n> for testing
  • Load offers from JSON file with --file <path>

Examples:

# Start router from a config file
router start --config-file ./router.toml

# Start router using the env fallback
ROUTER_CONFIG_FILE=./router.toml router start

# Start router with mock offers for testing
router start --config-file ./router.toml --mock 100

# Start router with offers loaded from file
router start --config-file ./router.toml --file offers.json

Chain

Use router chain to manage the anvil chain for dev and E2E workflows.

# Start a chain and emit JSON status
router chain start --output json

# Check chain status
router chain status --output json

# Stop the chain and purge state
router chain stop --purge

Example router.toml:

[logging]
level = "info"

[database]
url_env = "DATABASE_URL"

[api]
port = 7891

[indexer]
block_window = 8000
chains = ["ethereum"]

[chains."ethereum"]
rpc_url_env = "ETHEREUM_RPC_URL"

CLI reference

Global

Usage: router [options] [command]

Router package for Morpho protocol

Options:
  -V, --version         output the version number
  -h, --help            display help for command

Commands:
  start [options]       Start Router services.
  chain                 Manage the anvil chain lifecycle.
  gatekeeper [options]  Start Gatekeeper validation service.
  help [command]        display help for command

start

Usage: router start [options]

Start Router services.

Options:
  --config-file <path>  Path to router TOML config file
  --mock <n>            Number of mock offers to seed
  --file <path>         Seed offers from a JSON file
  -h, --help            display help for command

chain

Usage: router chain [options] [command]

Manage the anvil chain lifecycle.

Options:
  -h, --help         display help for command

Commands:
  start [options]    Start an anvil chain.
  status [options]   Show chain status.
  stop [options]     Stop the chain process.
  restart [options]  Restart the chain process.
  logs [options]     Read anvil logs.
  help [command]     display help for command

gatekeeper

Usage: router gatekeeper [options]

Start Gatekeeper validation service.

Options:
  --config-file <path>  Path to router TOML config file
  -h, --help            display help for command