Cometa.js

Hello everyone, I just wanted to introduce a new TypeScript/JavaScript library, Cometa.js. It’s the first binding for libcardano-c, and it’s feature-complete up to the latest Conway era. It’s extremely fast and tiny; the library is self-contained, no dependencies, the libcardano-c library is compiled, compressed, and inlined into a single JavaScript file that can be served in about ~350kb (including the JS glue code).

This single file works in all JavaScript environments and with all bundlers. It comes with three module variants: CommonJS, ESM, and a browser-ready IIFE build for direct CDN use. The library provides a fully documented high-level API with TypeScript support. You can use it in the browser out of the box:

<script src="https://unpkg.com/@biglup/cometa@1.1.102/dist/iife/index.global.js"></script> 

and you’re ready to go.

If you are interested you can check it at https://github.com/Biglup/cometa.js

This is a small pure js/no-build dApp I created with it https://github.com/Biglup/multi-deleg-drep-delegation-tool as a POC

1 Like

thanks @AngelCastilloB… it looks distinct enough from Cardano-C that it might also be included in the Developer Portal category (it’s worth submitting another PR, I think, to discuss this): https://developers.cardano.org/tools?tags=c

1 Like

Done here Add Cometa.js and Cometa.py builder tools by AngelCastilloB · Pull Request #1695 · cardano-foundation/developer-portal · GitHub @COSDpool I also added my new binding to the PR, so that PR tries to add two tools (cometa.py and cometa.js)

1 Like