-
Notifications
You must be signed in to change notification settings - Fork 205
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
npm package #327
Comments
It used to be published as We could potentially revive that package and autopublish it, although it might be doing a bit too much as it is. However, with the growth of the table, we've mostly been recommending people use separate packages just for the codecs (addrs, etc.) that they need, rather than consume the entire table since it can really bloat dependency trees and bundles. It's typically much better to just target what you need for an application, e.g. the sha3 variants can be pulled in with |
With that said, do you have a usecase that would necessitate having the entire table available? |
I'm writing a CID utility tool and would like to be able to pull in the official names and descriptions for all the possible codecs. Also, sites like cid.ipfs.tech appear to be manually converting the CSV from GitHub into JSON at build time which doesn't seem ideal. |
Unfortunately there's not a lot of people-time to lend to something like this since it's a secondary use of this data, but we could revive js-multicodec, strip it right down so it's just publishing the table in some usable form, and set up auto updating (like we do for go-multicodec) and auto publishing so it can be kept updated without too much effort. |
Sure, happy to give it a go! |
OK, I've unarchived it; it's going to need a heavy overhaul - replacement or just severe simplification of the code, an action like the go-multicodec one to do checks and PR if there's updates here, and we'll also probably want to try and get it in to https://github.com/protocol/.github/blob/master/configs/js.json to get the full unified-ci suite that we use on other repos. That will probably mean inheriting the "aegir" based build and publish process; which you can look around at various ipfs, ipld and libp2p projects to see the latest form of. https://github.com/ipld/js-dag-json might be a simple one to look at that is published in this way. The ipfsl/helia* projects have newer typescript forms of this that you could also look at. I'm personally indifferent as long as this new thing is super simple, the table in a form that can be usable with an |
Let me know what you think! |
I noticed there was an effort floated to have a JSON file derived from or maintained in parallel with the CSV (#305 / #311). For ease of consumption within the JavaScript ecosystem it would be great to have the list of codecs made available as an npm package too.
The text was updated successfully, but these errors were encountered: