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

@overline/proto

v0.4.0

Published

Protobufs for Overline

Downloads

144

Readme

Overline Protobufs

Protocol buffer definitions are in protos/ directory

This is not usable with yarn 1.x as a "raw dependency" (e.g. from github) due to yarn 1.x not running lifecycle scripts properly (see yarn#5047 issue)

Updates, changes

If you want to make a change to a protocol buffer definition, you're then supposed to update all generated implementations and release a new version

steps:

  • make desired changes in .proto file
  • javascript
    • npm run proto
    • add all changes files in impl/javascript/
  • rust - noop, see Rust section here

Releasing new version

  • do your work in topic branch, then merge to master
  • when merged in master, you can then run npx release-it to take care of all the steps except the final npm publish
  • wait until build in CI for the newly pushed tag finished
  • you can then run npm publish --access public
  • BEWARE: when adding new language implementation, release-it has to also bump the version in the other languages package descriptor first and also this list needs step for publishing the respective package

Language specific guides

Javascript

Javascript / Typescript generated classes are in impl/javascript/proto/ directory in the repository, if you want to inspect them. But when using a this package as a dependency, you can import them as e.g const { Block } = require('@overline-proto/proto/core_pb')

Usage

  • add @overline/proto as dependency into you project
  • import classes and use them:
const { BcBlock, BlockchainHeaders } = require('@overline/proto/proto/core_pb')
const { WirelessBcBlock } = require('@overline/proto/proto/wireless_pb')
const { codec } = require('@overline/proto/util/wireless-bridge')

console.log(new BcBlock().toObject())

const block = new BcBlock()
block.setBlockchainHeaders(new BlockchainHeaders())
const rawWirelessBcBlock = codec.encodeBcBlockForWireless(block.serializeBinary())
console.log(WirelessBcBlock.deserializeBinary(rawWirelessBcBlock).toObject())

Rust

Rust implementation is a noop for now - we use PROST! as protocol buffers implementation in Rust which which takes care of building the protocol buffers in the cargo project you use it in. The directory exists only for the purpose of completeness.

Intended way of use now is to add protos directory with the .proto files as a git submodule.

Usage

See prost_build documentation for more examples.

build.rs:

fn main() -> Result<(), Box<dyn std::error::Error>> {
    prost_build::compile_protos(
        &[
            "<path_to_protos>/protos/bc.proto",
            "<path_to_protos>/protos/core.proto",
            "<path_to_protos>/protos/db.proto",
            "<path_to_protos>/protos/miner.proto",
            "<path_to_protos>/protos/p2p.proto",
            "<path_to_protos>/protos/rover.proto",
            "<path_to_protos>/protos/wireless.proto",
        ],
        &["<path_to_protos>/protos/"],
    )?;
    Ok(())
}

src/lib.rs:

pub mod proto {
    pub mod core {
        include!(concat!(env!("OUT_DIR"), "/bc.core.rs"));
    }
}