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

@wireio/wire-protobuf-bundler

v1.0.13

Published

CLI that fetches .proto files from GitHub, runs protoc with Wire plugins, and generates publishable packages

Readme

@wireio/wire-protobuf-bundler

npm

CLI tool that fetches .proto files from a GitHub repository, runs protoc with Wire plugins, and generates publishable Rust crates or npm packages.

Part of the wire-libraries-ts monorepo.

Prerequisites

Install

npm install -g @wireio/wire-protobuf-bundler

Or use directly with npx:

npx @wireio/wire-protobuf-bundler --help

Usage

wire-protobuf-bundler --repo <repo> --target <target> --output <dir> --package-name <name>

Options

| Flag | Required | Description | |---------------------|----------|---------------------------------------------------------------------------------------| | --repo | Yes | GitHub repo or local path: <owner/repo>[/<subfolder>][#<branch>] or file://<path> | | --target | Yes | Code generation target: solana or solidity | | --output | Yes | Output directory for the generated package | | --package-name | Yes | Name for the generated package | | --package-version | No | Version string for the generated package | | --package-data | No | JSON string with additional package metadata | | --verbose | No | Enable debug logging |

Examples

Generate a Solidity npm package from a local proto directory:

wire-protobuf-bundler \
    --repo 'file://../wire-sysio/libraries/opp/proto' \
    --target solidity \
    --output build/generated/solidity \
    --package-name '@wireio/opp-solidity-models' \
    --package-version 1.0.0

Generate a Rust crate from a GitHub repo:

wire-protobuf-bundler \
    --repo 'Wire-Network/wire-sysio/libraries/opp/proto#master' \
    --target solana \
    --output build/generated/solana \
    --package-name 'wire-opp-solana-models'

With additional package metadata:

wire-protobuf-bundler \
    --repo 'Wire-Network/wire-sysio/libraries/opp/proto#master' \
    --target solana \
    --output build/generated/solana \
    --package-name 'wire-opp-solana-models' \
    --package-version 1.0.0 \
    --package-data '{ "license": "MIT" }'

Pipeline

The tool executes a three-step pipeline:

  1. Fetch — Downloads proto files from the specified repo/path using degit (or copies from a local file:// path)
  2. Compile — Runs protoc with the appropriate Wire plugin (protoc-gen-solana or protoc-gen-solidity)
  3. Package — Renders Handlebars templates to produce a publishable crate or npm package

Output Structure

Solana target (Rust crate)

<output>/
├── Cargo.toml
├── README.md
├── proto/                    # Original .proto source files
└── src/
    ├── lib.rs                # Barrel file re-exporting all modules
    ├── *.rs                  # Generated protobuf modules
    └── protobuf_runtime.rs   # Shared wire format primitives

Publish with cargo publish.

Solidity target (npm package)

<output>/
├── package.json
├── index.mjs
├── README.md
├── proto/                    # Original .proto source files
└── contracts/
    └── *.sol                 # Generated Solidity contracts

Publish with npm publish.

Development

pnpm install
pnpm build        # TypeScript compilation
pnpm bundle       # esbuild bundling
pnpm dist         # Full build + pkg binary
pnpm dev          # Watch mode (build + bundle)
pnpm test         # Run unit tests
pnpm format       # Prettier formatting
pnpm clean        # Remove build artifacts

License

MIT