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.7

Published

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

Downloads

587

Readme

wire-protobuf-bundler

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

Prerequisites

  • Node.js >= 24
  • pnpm >= 10
  • protoc — installed via the protoc npm package or on PATH
  • One of the Wire protoc plugins installed:
    • @wireio/protoc-gen-solana — for Solana/Rust target
    • @wireio/protoc-gen-solidity — for Solidity target

Installation

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 spec: <owner/repo>[/<subfolder>][#<branch>] | | --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-data | No | JSON string with additional package metadata | | --verbose | No | Enable debug logging |

Examples

Generate a Rust crate:

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

Generate an npm package:

wire-protobuf-bundler \
    --repo 'Wire-Network/wire-sysio/libraries/opp#feature/protobuf-support-for-opp' \
    --target solidity \
    --output build/generated/solidity \
    --package-name '@wireio/opp-solidity-models' \
    --package-version 1.0.0

With additional package metadata:

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

Pipeline

The tool executes a three-step pipeline:

  1. Fetch — Downloads proto files from the specified GitHub repo/subfolder/branch using degit
  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

Publish with cargo publish.

Solidity target (npm package)

<output>/
├── package.json
├── index.mjs       # export default {}
├── 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 format       # Prettier formatting
pnpm clean        # Remove build artifacts