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

@moltbankhq/polymarket-mod

v0.1.2

Published

Polymarket Capability. Provides cap.polymarket.markets (read) and cap.moltbank.polymarket (Moltbank-orchestrated trade flows: create-order / cancel-order / withdraw-to-safe). Composes Polymarket CLOB protocol calls with the Moltbank backend MCP (status, b

Readme

Polymarket Mod

Polymarket prediction-market Capability. Read-side surfaces market data (Gamma API + CLOB v2); trade-side runs Moltbank-orchestrated multi-step flows (status check → wallet registration → budget bootstrap → on-chain approvals → POL gas funding → pUSD wrap → CLOB order placement → audit recording) plus withdraw-to-safe bridge flow.

See SKILL.md for the full capability surface and required Moltbank MCP tools.

Auth model

This mod never holds wallet keys. All EVM signing delegates to the host's cap.signer.evm (per architecture spec §10.1: only the trusted core signs). The mod builds the order body or the on-chain approval calldata, calls cap.signer.evm for the signature, and submits the signed payload to the CLOB / a Polygon RPC.

Capabilities

  • cap.polymarket.markets — read-only market metadata + the caller's authenticated reads (markets / market / order-book / midpoint / get-order / get-orders / get-trades).
  • cap.moltbank.polymarket — Moltbank-orchestrated trade flows (create-order, cancel-order, withdraw-to-safe).

The protocol-level handlers (raw CLOB order placement / cancel / approve) are reachable only by the orchestrator pipeline through the in-process router at src/orchestrator/cap-call.ts. They are not exposed publicly — anything that mutates state flows through the audit / budget / status pipeline backing cap.moltbank.polymarket.

This package is the result of merging the former polymarket-mod (protocol-level) and polymarket-orchestrator-mod (Moltbank- flavored). Option A of the merge dropped cap.polymarket.orders from the public surface; the protocol code lives on as internal modules invoked by the orchestrator.

Configuration

Optional config at ~/.moltbank/mods/polymarket/config.json:

{
  "clobBaseUrl": "https://clob-v2.polymarket.com",
  "gammaBaseUrl": "https://gamma-api.polymarket.com",
  "polygonRpcUrl": "https://polygon-bor-rpc.publicnode.com",
  "defaultMarketLimit": 50,
  "defaultWeeklyBudgetUsdc": 25,
  "polGasFundingUsdc": 1
}

Defaults apply when the file is absent.

Spec alignment

  • §10.1 (only the trusted core signs): signer integration is via cap.signer.evm, not direct private-key access.
  • §9 (riskLevel: trade): community installs of equivalent third-party trade mods would require explicit cap.budget.spend grants + per-run estimate confirmation. This mod is tier: official so it doesn't need community-tier gates, but it still publishes per-run USDC estimates via mod estimate polymarket.
  • §6 (capability ids): cap.polymarket.markets and cap.moltbank.polymarket are this mod's two public capability ids.