https://github.com/thibmeu/cbor-viewer
Firefox addon decoding CBOR as JSON to be viewed in browser
https://github.com/thibmeu/cbor-viewer
cbor dag-cbor firefox-addon ipld json
Last synced: 3 months ago
JSON representation
Firefox addon decoding CBOR as JSON to be viewed in browser
- Host: GitHub
- URL: https://github.com/thibmeu/cbor-viewer
- Owner: thibmeu
- License: mit
- Created: 2022-11-05T09:33:25.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-12T17:56:34.000Z (over 3 years ago)
- Last Synced: 2025-01-17T08:36:49.000Z (over 1 year ago)
- Topics: cbor, dag-cbor, firefox-addon, ipld, json
- Language: JavaScript
- Homepage: https://addons.mozilla.org/firefox/addon/cbor-viewer/
- Size: 265 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CBOR to JSON decoder extension
This is an addon for Firefox. It decodes [CBOR](https://cbor.io/) to JSON, making it render using the browser JSON engine.
Decoding options are the ones of [DAG-CBOR](https://ipld.io/docs/codecs/known/dag-cbor/) and encoding are [DAG-JSON](https://ipld.io/docs/codecs/known/dag-json/). This is slightly more restrictive than the CBOR spec, but allows for a smooth JSON view.
## Install
1. Download the latest [cbor_viewer](https://github.com/thibmeu/cbor-viewer/releases).
2. [`about:addons`](about:addons) and load the downloaded extension.
## Development
Tested with NodeJS v18
```bash
npm install # install modules
npm run build # generate background.js
npm run bundle # bundle the packed extension
```
You can then load the unpacked extension from [`about:debugging#/runtime/this-firefox`](about:debugging#/runtime/this-firefox).