🍺 BREW Explorer

← all formulae

ic-wasm

brew install ic-wasm v0.9.11 Apache-2.0

CLI tool for performing Wasm transformations specific to ICP canisters

34
30-day installs · #5505
122
90-day · #5164
220
365-day · #7122
120
★ GitHub stars · updated 3mo ago

Build dependencies

Links

Raw metadata
{
  "aliases": [],
  "alternatives": [],
  "build_dependencies": [
    "rust"
  ],
  "categories": [],
  "caveats": null,
  "conflicts_with": [],
  "dependencies": [],
  "deprecated": 0,
  "deprecation_reason": null,
  "desc": "CLI tool for performing Wasm transformations specific to ICP canisters",
  "disable_reason": null,
  "disabled": 0,
  "enrichment_fetched_at": "2026-06-20T23:38:45+00:00",
  "first_seen": "2026-06-20T23:34:18+00:00",
  "full_name": "ic-wasm",
  "github_default_branch": "main",
  "github_last_commit_at": "2026-05-12T14:23:59Z",
  "github_readme_excerpt": "# `ic-wasm`\n\nA library for transforming Wasm canisters running on the Internet Computer\n\n## Installation\n\n### Via npm (all platforms)\n\n```bash\nnpm install -g @icp-sdk/ic-wasm\n```\n\n### Precompiled binaries\n\n**Linux and macOS:**\n\n```bash\ncurl --proto \u0027=https\u0027 --tlsv1.2 -LsSf https://github.com/dfinity/ic-wasm/releases/latest/download/ic-wasm-installer.sh | sh\n```\n\n**Windows (PowerShell):**\n\n```powershell\nirm https://github.com/dfinity/ic-wasm/releases/latest/download/ic-wasm-installer.ps1 | iex\n```\n\n### Using cargo-binstall\n\nIf you have [cargo-binstall](https://github.com/cargo-bins/cargo-binstall) installed:\n\n```bash\ncargo binstall ic-wasm\n```\n\n### From source\n\nTo build and install from source:\n\n```bash\ncargo install ic-wasm\n```\n\n## Usage\n\n### Metadata\n\nManage metadata in the Wasm module.\n\nUsage: `ic-wasm \u003cinput.wasm\u003e [-o \u003coutput.wasm\u003e] metadata [name] [-d \u003ctext content\u003e | -f \u003cfile content\u003e] [-v \u003cpublic|private\u003e]`\n\n* List current metadata sections\n```\n$ ic-wasm input.wasm metadata\n```\n\n* List a specific metadata content\n```\n$ ic-wasm input.wasm metadata candid:service\n```\n\n* Add/overwrite a private metadata section\n\n**Note**: the hashes of private metadata sections are readable by anyone. If a section contains low-entropy data, the attacker could brute-force the contents.\n```\n$ ic-wasm input.wasm -o output.wasm metadata new_section -d \"hello, world\"\n```\n\n* Add/overwrite a public metadata section from file\n```\n$ ic-wasm input.wasm -o output.wasm metadata candid:service -f service.did -v public\n```\n\n### Info\n\nPrint information about the Wasm canister\n\nUsage: `ic-wasm \u003cinput.wasm\u003e info`\n\n### Shrink\n\nRemove unused functions and debug info.\n\nNote: The `icp` metadata sections are preserved through the shrink.\n\nUsage: `ic-wasm \u003cinput.wasm\u003e -o \u003coutput.wasm\u003e shrink`\n\n### Optimize\n\nInvoke wasm optimizations from [`wasm-opt`](https://github.com/WebAssembly/binaryen).\n\nThe optimizer exposes different optimization levels to choose from.\n\nPerformance levels (optimizes for runtime)",
  "github_repo": "dfinity/ic-wasm",
  "github_stars": 120,
  "github_topics": [],
  "homepage": "https://github.com/dfinity/ic-wasm",
  "homepage_og_description": null,
  "homepage_og_image": null,
  "homepage_title": null,
  "installs_30d": 34,
  "installs_365d": 220,
  "installs_90d": 122,
  "keg_only": 0,
  "keg_only_reason": null,
  "last_seen": "2026-06-20T23:34:18+00:00",
  "license": "Apache-2.0",
  "llm_generated_at": null,
  "llm_model": null,
  "name": "ic-wasm",
  "oldnames": [],
  "one_liner": null,
  "optional_dependencies": [],
  "rank_30d": 5505,
  "rank_365d": 7122,
  "rank_90d": 5164,
  "raw_hash": "12f077b90773433e",
  "recommended_dependencies": [],
  "revision": 0,
  "ruby_source_path": "Formula/i/ic-wasm.rb",
  "tap": "homebrew/core",
  "test_dependencies": [
    "wasm-tools"
  ],
  "uses_from_macos": [],
  "version_head": null,
  "version_stable": "0.9.11",
  "versioned_formulae": [],
  "why_use_this": null
}