Skip to content

Firefox addon decoding CBOR as JSON to be viewed in browser

License

Notifications You must be signed in to change notification settings

thibmeu/cbor-viewer

Repository files navigation

CBOR to JSON decoder extension

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.

Install

  1. Download the latest cbor_viewer.
  2. about:addons and load the downloaded extension.

Development

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.