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

mycomesh-consumer

v0.1.51

Published

Native Node.js MycoMesh Consumer and OpenAI-compatible request CLI.

Readme

mycomesh-consumer

Native Node.js Consumer for the MycoMesh Settlement V8 Relay network. It runs on the user's machine with no Docker, Python runtime, Compose file, or public Gateway dependency.

Install

Requirements: Node.js 20 or newer. The package contains only the small cryptographic dependencies needed for V8 EIP-712 payment-key authorizations; Codex is an independent client.

npm install --global mycomesh-consumer
mycomesh-consumer

For a checkout:

npm install --global ./packages/mycomesh-cli

The command starts the Consumer API on 127.0.0.1:8110, prints and optionally opens the local credentials page, and stays available for any OpenAI-compatible client. It does not start or configure Codex.

The page starts with a wallet signature check. The selected wallet must match the local payment key's active on-chain grant before the API key/export and inference are enabled. It exposes only the local API URL, payment key/export, prepaid balance, key operations, and local consumption history. It has no conversation or request-session UI. The payment key is generated once and stored at ~/.mycomesh/consumer/payment-key with mode 0600; set MYCOMESH_CONSUMER_DATA_DIR to choose another directory.

Connect a client

The default command is already service-only. Sign in on the local page first, then load the export block into a shell and use Codex or another compatible client:

mycomesh-consumer --no-browser
eval "$(curl -sS http://127.0.0.1:8110/credentials)"
codex

The optional convenience wrapper is explicit:

mycomesh-consumer --codex

Use --no-browser on a headless machine. Stop the process without deleting the key or history with mycomesh-consumer --stop. A full reset is explicit:

MYCOMESH_CONFIRM_RESET=RESET mycomesh-consumer --reset-local

The local API is OpenAI-compatible:

export OPENAI_BASE_URL=http://127.0.0.1:8110/v1
export OPENAI_API_KEY='myco_sk_...'
mycomesh responses --input 'hello' --model mycomesh-codex-standard-v1

The browser's export block is the canonical way to obtain both values after wallet verification. --codex waits for that verification before launching Codex.

Temporary sharing

The local page can create one time-limited HTTPS API URL and an independent myco_share_... key for testing an OpenAI-compatible client outside the Consumer machine. Install cloudflared, choose a lifetime, and click Start sharing. The public endpoint exposes only models, Responses, Chat Completions, and Codex search routes; it does not expose the dashboard or the payment key. Stopping the share, reaching its expiry, or restarting the Consumer invalidates the temporary key.

Relay scheduling and V8 payments

The Consumer checks each configured Relay's V8 health and automatically tries the next Relay after a health, timeout, or retryable HTTP failure. A single request ID is preserved across failover. Each attempt carries a fresh V8 EIP-712 payment authorization signed by the persisted key; the Relay resolves the key address to its on-chain grant and settles the signed receipt. A wallet signature unlocks each Consumer process once; inference has no per-request wallet signature or Consumer-managed conversation state.

Configure multiple Relay origins and an optional outbound proxy:

export MYCOMESH_V8_RELAY_URLS='https://relay-a.example,https://relay-b.example'
mycomesh-consumer --proxy http://127.0.0.1:10792

The default Relay is https://bridge.mycomesh.xyz. The V8 deployment and RPC defaults are embedded in the package; MYCOMESH_CONSUMER_NETWORK_CONFIG and MYCOMESH_CONSUMER_SETTLEMENT_RPC_URLS can override them for another network.

Stateless request CLI

The package also keeps the stateless API commands:

mycomesh health
mycomesh models
mycomesh responses --input 'Summarize this' --max-output-tokens 500
mycomesh chat --message 'Explain this function'

Use --json @file, --json -, or piped JSON for complete OpenAI-shaped requests. --stream returns buffered-compatible SSE events from the Relay.

Development

cd packages/mycomesh-cli
npm test