This is an addon for Firefox. It decodes CBOR to JSON, making it render using the browser JSON engine. Decoding options are the ones of DAG-CBOR and encoding are DAG-JSON. This is slightly more restrictive than the CBOR spec, but allows for a smooth JSON view.
- Download the latest cbor_viewer.
about:addons
and load the downloaded extension.
Tested with NodeJS v18
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
.