Protobuf toolkit for modern web development
pbkit is a collection of tools for modern web development with protocol buffers.
No native binary dependencies, written in pure TypeScript. Available in Node.js and even in a web browser.🤖
You can use a GitHub repository containing your .proto files as a single pollapo package.📦
Transport messages between Native and WebView using your protobuf schema! Supports TypeScript(Web), Kotlin(Android), Swift(iOS).🌯
Syntax highlight, Goto definition, Find references and more.📝
Compatible with any rpc client you use with pbkit.🌏
To get started, make sure you have the Deno CLI installed.
Then, run the following command to install both `pb` and `pollapo` cli:
brew install pbkit/tap/pbkit
Once installed, you can use the `pollapo` command to install your protobuf schema package.
Now you can generate en/decode typescript code from your protobuf schema.
pb gen ts
A more in-depth getting started guide is available in the docs.
Protocol buffers are Google's language-neutral, platform-neutral, extensible mechanism for serializing structured data – think XML, but smaller, faster, and simpler.
If you want to contribute or get in trouble, feel free to join our Discord!
The pbkit docs is also written in Deno and deployed with Deno deploy.