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

meridian-core

v0.2.0

Published

MERIDIAN command-line interface — pre-execution intelligence from your terminal

Downloads

623

Readme

meridian-core

MERIDIAN command-line interface — pre-execution intelligence for Stellar developers, from your terminal.

License: MIT npm

MERIDIAN simulates a Stellar transaction end-to-end, maps every contract it touches downstream, scores what breaks if something goes wrong, and returns a plain-language GenAI risk brief — all before you submit.

Full project docs, architecture, and the REST API live in the monorepo README. This package is the standalone meridian / meridian-core CLI.

Install

npm install -g meridian-core
meridian-core --help

Requirements

  • Node.js >= 20
  • A Soroban RPC endpoint for the network you're targeting (testnet/mainnet)
  • (Optional) An Anthropic API key for GenAI-synthesized briefs — falls back to a deterministic brief without one

Verdict States

| Verdict | Meaning | |---|---| | 🟢 CLEAR | Safe to submit | | 🟡 WARN | Submit with caution — review warnings | | 🔴 ABORT | Do not submit — critical failure predicted |

Commands

| Command | Description | |---|---| | meridian analyze [tx] | Full pipeline: TRACE + FIELD + GRAVITY + BRIEF (default command) | | meridian trace [tx] | TRACE only — simulate and report the execution path | | meridian field [tx] | TRACE + FIELD — map the dependency graph touched by the transaction | | meridian gravity [tx] | TRACE + FIELD + GRAVITY — score the blast radius | | meridian version | Print CLI and engine version | | meridian init [path] | Scaffold a starter ecosystem manifest JSON file | | meridian manifest validate [path] | Validate an ecosystem manifest JSON file | | meridian --help / meridian <command> --help | Show detailed help |

tx is the base64-encoded transaction XDR. It can be passed as an argument, via --file, or piped over stdin.

Options

| Flag | Applies to | Description | |---|---|---| | -n, --network <network> | all | mainnet or testnet (default: testnet) | | --rpc-url <url> | all | Override the Soroban RPC endpoint instead of reading it from env | | -f, --file <path> | all | Read the transaction XDR from a file instead of an argument | | -e, --ecosystem <path> | field, gravity, analyze | Path to an ecosystem manifest JSON file | | --json | all | Print raw JSON instead of a formatted report | | --skip-field | analyze | Skip the FIELD dependency-mapping layer | | --skip-gravity | analyze | Skip the GRAVITY blast-radius layer | | --confidence-threshold <n> | analyze | Minimum confidence (0–1) required for a CLEAR verdict | | --no-brief | analyze | Skip GenAI BRIEF synthesis (structured layers only) | | --api-key <key> | analyze | Anthropic API key for BRIEF synthesis (else read from env) |

Examples

# Full analysis (default command — "analyze" can be omitted)
meridian analyze <base64-xdr> --network testnet

# Read the XDR from a file
meridian analyze --file tx.xdr --network mainnet

# Pipe it in via stdin
cat tx.xdr | meridian analyze --network testnet --json

# Override the RPC endpoint without setting env vars
meridian analyze <base64-xdr> --network testnet --rpc-url https://soroban-testnet.stellar.org

# Score blast radius against a known ecosystem manifest
meridian gravity <base64-xdr> --ecosystem manifest.json --network testnet

# Fast structured-only analysis (no GenAI call)
meridian analyze <base64-xdr> --network testnet --no-brief

# TRACE only, fastest path
meridian trace <base64-xdr> --network testnet

# Check installed versions
meridian version

# Scaffold and validate an ecosystem manifest
meridian init --name my-ecosystem --network testnet
meridian manifest validate manifest.json

Ecosystem Manifest

An optional JSON file describing known contracts in your ecosystem, used by field, gravity, and analyze to enrich dependency mapping, blast-radius scoring, and affected-user counts:

{
  "name": "my-ecosystem",
  "version": "1.0.0",
  "contracts": [
    {
      "name": "token-vault",
      "address": "CABC...XYZ",
      "network": "testnet",
      "dependencies": ["CDEF...UVW"],
      "active_users": 4200,
      "criticality": "HIGH"
    }
  ]
}

Environment Variables

| Variable | Required | Description | |---|---|---| | STELLAR_RPC_TESTNET | For testnet use | Soroban RPC endpoint for testnet | | STELLAR_RPC_MAINNET | For mainnet use | Soroban RPC endpoint for mainnet | | ANTHROPIC_API_KEY | No | Claude API key for BRIEF synthesis — falls back to a deterministic brief if unset |

License

MIT — see the monorepo repository for full source and license details.