protodec
Version, currently 0.1.46 versions
github.com/iv-org/protodec
Command-line tool to encode and decode arbitrary protobuf data
Nothing has been indexed for 0.1.4 yet. The tag is recorded, its shard.yml has not been read, so the manifest and dependency list below are empty because they are unknown rather than because they are absent.
Installation
# Add this to your shard.yml
dependencies:
protodec:
github: iv-org/protodec
version: ~> 0.1.4Then run:
shards installshard.yml
No shard.yml has been indexed for 0.1.4. You can read it on the repository.
Dependencies
Unknown: the shard.yml for this version has not been read yet.
README
This README is the one indexed from the repository at its latest ref, not from the tag for this version.
protodec
Command-line tool to encode and decode arbitrary protobuf data.
Installation
This program requires Crystal. See: https://crystal-lang.org/install/
Standalone
- Clone:
git clone https://github.com/iv-org/protodec && cd protodec - Build:
crystal build src/protodec.cr - See Usage below
As a Crystal library
Add this to your application's shard.yml:
dependencies:
protodec:
github: iv-org/protodec
version: ~> 0.1.5
Usage
$ ./protodec -h
Usage: protodec [arguments]
Command-line encoder and decoder for arbitrary protobuf data. Reads from standard input.
-e, --encode Encode input
-d, --decode Decode input (default)
-b, --base64 STDIN is Base64-encoded
-x, --hex STDIN is space-separated hexstring
-r, --raw STDIN is raw binary data (default)
-p, --pretty Pretty print output
-h, --help Show this help
$ echo 'CkEKCeOCj+OBn+OBlxDSCSIQWmQ730+N8z8tsp3vp8YJQCoSCAESBzA4MDAwMDAaBQ26sSZEKgsIARIHMDgwMDAwMBXD9UhA' | ./protodec -bp
{
"1:0:embedded": {
"1:0:string": "わたし",
"2:1:varint": 1234,
"4:2:bytes": [
90,
100,
59,
223,
79,
141,
243,
63,
45,
178,
157,
239,
167,
198,
9,
64
],
"5:3:embedded": {
"1:0:varint": 1,
"2:1:string": "0800000",
"3:2:embedded": {
"1:0:float32": 666.7769775390625
}
},
"5:4:embedded": {
"1:0:varint": 1,
"2:1:string": "0800000"
}
},
"2:1:float32": 3.140000104904175
}
Windows
Windows users can run the binaries in a linux-on-windows tool (like Git bash or WSL) or use the official protobuf binaries to encode/decode protobuf data.
Contributing
- Fork it (https://github.com/iv-org/protodec/fork)
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request
Contributors
- Omar Roth - creator and maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
0.1.4- Tagged
- Aug 25, 2025
- Commit
f30f2abfde4a- Indexed
- not yet
Dependents
- invidious
- invidious
- invidious
- invidious
- invidious
- invidious
- invidious
- invidious
- invidious
- invidious
- invidious
- invidious
and 2 more
Repository
github.com/iv-org/protodec
Metadata
- Created
- Aug 16, 2026
- Updated
- Sep 18, 2026
- Synced
- Sep 18, 2026
- Versions
- 6