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

@cobuild/wire

v0.1.6

Published

Shared wire-level contracts for Cobuild clients/services.

Downloads

566

Readme

@cobuild/wire

Shared wire-level contracts for Cobuild clients/services.

Scope

  • OAuth constants + scope/PKCE/redirect validation helpers
  • JWT claim parsing helpers for CLI access token payloads
  • EVM/wallet validation helpers for network/token/mode contracts
  • Bearer token parsing
  • Idempotency key/header contract
  • x402 payload/domain/type builders + payload validation
  • Farcaster signup wire contracts (typed-data, preflight, call-plan + executable-call builders)

Non-goals

  • Signing runtime (wallet/CDP implementations)
  • DB adapters or framework/server bindings
  • UI components

Quick start

pnpm install
pnpm typecheck
pnpm test

Protocol ABI generation

pnpm wagmi and pnpm generate keep Basescan as the default ABI source of truth. For fast post-deploy refreshes inside this workspace, use the local-artifact mode instead.

  • pnpm generate:local (or WIRE_ABI_SOURCE=local pnpm wagmi) uses sibling v1-core/out artifacts so ABI refreshes do not wait on explorer verification.
  • Default mode is Basescan; WIRE_ABI_SOURCE=basescan forces the same behavior explicitly.
  • WIRE_ABI_SOURCE=local requires sibling Forge artifacts and fails fast if they are missing.
  • BASESCAN_API_KEY (fallback ETHERSCAN_API_KEY) is required for default Basescan generation.
  • WIRE_V1_CORE_PATH can override the default sibling v1-core repo location when needed.

Consumer workflow

Committed downstream state should use the published @cobuild/wire package, not a sibling link: or file: dependency.

  • Current direct consumers in this workspace: cli, chat-api, indexer, and interface/apps/web.
  • cli, chat-api, and interface/apps/web expose temporary local integration helpers (wire:use-local / wire:use-published) for testing unpublished wire changes against a sibling checkout.
  • cli, chat-api, interface, and indexer all run wire:ensure-published from pre-commit so local link/file specs do not land in commits by accident.

After publishing a new @cobuild/wire version, bump only the sibling repos that consume the changed surface:

  • ABI/address/event changes usually require indexer first, then any user-facing consumers.
  • Auth, wallet, x402, or Farcaster helper changes usually require chat-api, cli, and/or interface/apps/web.
  • Use each consumer repo's local published-version helper where present; otherwise update the dependency semver directly and refresh the lockfile.

wire now exposes a manual sibling sync helper:

pnpm run sync:repos -- --version 0.1.5 --wait-for-publish

The wrapper delegates to the shared cobuild-sync-dependent-repos helper from @cobuild/repo-tools. Before the next published repo-tools bump lands here, it falls back to the sibling repo-tools checkout in this workspace if the installed bin is not present yet.

Release runs can invoke the same flow automatically after push. Use --no-sync-upstreams or WIRE_SKIP_UPSTREAM_SYNC=1 when you need to prepare a release tag without bumping sibling repos yet.