{"id":30703176,"url":"https://github.com/dfinity/candid-extractor","last_synced_at":"2026-02-23T16:32:04.241Z","repository":{"id":259901189,"uuid":"870800463","full_name":"dfinity/candid-extractor","owner":"dfinity","description":"A CLI tool to extract the Candid interface from a Canister WASM.","archived":false,"fork":false,"pushed_at":"2025-10-24T12:01:55.000Z","size":59,"stargazers_count":5,"open_issues_count":1,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2026-01-16T08:29:48.947Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dfinity.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-10-10T17:32:26.000Z","updated_at":"2025-11-18T07:45:01.000Z","dependencies_parsed_at":"2024-10-28T17:20:03.247Z","dependency_job_id":"3c345bd8-7225-4894-97d1-28dfbdb008ce","html_url":"https://github.com/dfinity/candid-extractor","commit_stats":null,"previous_names":["dfinity/candid-extractor"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/dfinity/candid-extractor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dfinity%2Fcandid-extractor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dfinity%2Fcandid-extractor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dfinity%2Fcandid-extractor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dfinity%2Fcandid-extractor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dfinity","download_url":"https://codeload.github.com/dfinity/candid-extractor/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dfinity%2Fcandid-extractor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29748184,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-23T07:44:07.782Z","status":"ssl_error","status_checked_at":"2026-02-23T07:44:07.432Z","response_time":90,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-09-02T16:56:47.234Z","updated_at":"2026-02-23T16:32:04.198Z","avatar_url":"https://github.com/dfinity.png","language":"Rust","readme":"# candid-extractor\n\nA CLI tool to extract the Candid interface from a Canister WASM.\n\n## Installation\n\n```\ncargo install candid-extractor\n```\n\nYou can also use `cargo-binstall` if it's available.\n\n```\ncargo binstall candid-extractor\n```\n\n## Usage\n\n```\ncandid-extractor path/to/canister.wasm\n```\n\nThe Candid interface will be printed to stdout.\n\n## Prerequisites for Canisters\n\n`candid-extractor` can extract the Candid interface if the Canister meets the following requirements:\n\n* Exports a memory named \"memory\".\n* Exports a function named \"get_candid_pointer\", which returns an index within the \"memory\".\n  * If \"memory\" is 32-bit, the function should return an `i32`.\n  * If \"memory\" is 64-bit, the function should return an `i64`.\n* The Candid interface should be encoded in UTF-8 and stored in \"memory\" starting from the returned index.\n* A \"NUL terminator\" (byte 0x00) should be added at the end of the data if additional content exists after it in \"memory\".\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdfinity%2Fcandid-extractor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdfinity%2Fcandid-extractor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdfinity%2Fcandid-extractor/lists"}