I’m wanting to parse candid files into an AST from Node.js, is there an existing library for this?
No direct support. But here are some options:
- Call the Candid UI canister: Principal a4gq6-oaaaa-aaaab-qaa4q-cai | ic.rocks. See the did_to_js method.
- Compile the Rust candid library into Wasm: GitHub - ic-rocks/didc-js: A JS/Wasm package for generating Candid bindings.
That is we’d like to work on. Let’s collaborate