Skip to content

Decode responses from the Dfinity blockchain in chrome devtools

License

Notifications You must be signed in to change notification settings

icdevs/chrome-dfinity-decoder

 
 

Repository files navigation

logo

Dfinity Decoder

A little chrome extension to decode CBOR/Candid responses from the Dfinity blockchain in Chrome devtools.

Alpha release pending review in chrome webstore now.

ICP Tips: 799d9974ec7604d031c34ea487015ef7efc92f283da4ce0b84a3aaadbeae0934

Why?

Developing on the Dfinity Blockchain, you will see ugly responses in the chrome devtools network tab:

bad

This extension decodes responses from canisters into something more readable:

good

Development

For development with automatic reloading:

npm run start

Open the Extensions Dashboard, enable "Developer mode", click "Load unpacked", and choose the dist folder.

You will see the "Dfinity" tab in your devtools window.

When you make changes in src the background script and any content script will reload automatically.

Production

When it's time to publish your Chrome extension, make a production build to submit to the Chrome Web Store. This boilerplate will use the version in package.json, unless you add a version to src/manifest.json.

Make sure you have updated the name and version of your extension in package.json.

Run the following line:

npm run build

This will create a ZIP file with your package name and version in the releases folder.

This library was incentivized by ICDevs. You can view more about the bounty on the forum or website. The bounty was funded by The ICDevs.org commuity and the award paid to @jorgenbuilder. If you use this library and gain value from it, please consider a donation to ICDevs.

About

Decode responses from the Dfinity blockchain in chrome devtools

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 80.3%
  • HTML 12.7%
  • JavaScript 7.0%