npm.io
0.2.0 • Published 14h agoCLI

@caffeineai/bindgen

Licence
Apache-2.0
Version
0.2.0
Deps
1
Size
7.0 MB
Vulns
0
Weekly
0

Caffeine Bindgen

Generate modern TypeScript bindings for Internet Computer (IC) canisters used by Caffeine from Candid .did files. This tool is based on ICP Js bindgen and introduces additional features used by Caffeine apps:

  • error message parsing
  • blob storage hooks

The tool can be used in three ways:

Note: Generated code references @icp-sdk/core (agents, candid, principals). Install it in your app if you plan to compile/run the generated code. See js.icp.build/core.

Note: Generated code imports ExternalBlob from @caffeineai/object-storage for blob storage hooks. Install it in your frontend package alongside @icp-sdk/core.

Keywords