{"_id":"@polkadot-api/wasm-executor","_rev":"7-5be98309b0ccee3485e10e710092c02b","name":"@polkadot-api/wasm-executor","dist-tags":{"latest":"0.2.3"},"versions":{"0.1.0":{"name":"@polkadot-api/wasm-executor","version":"0.1.0","author":{"url":"https://github.com/carlosala","name":"Carlo Sala"},"license":"MIT","_id":"@polkadot-api/wasm-executor@0.1.0","maintainers":[{"name":"voliva","email":"olivarra1@gmail.com"},{"name":"josepot","email":"sobrepere@protonmail.com"}],"homepage":"https://github.com/polkadot-api/wasm-executor#readme","bugs":{"url":"https://github.com/polkadot-api/wasm-executor/issues"},"dist":{"shasum":"192ad9ba29a72ef970e51b3d93d2e95c65b3fd94","tarball":"https://registry.npmjs.org/@polkadot-api/wasm-executor/-/wasm-executor-0.1.0.tgz","fileCount":6,"integrity":"sha512-nXQnfTxL662RZ3xS2pDGEo9pIsIFnpekTbTdGnMnjk9XXsvL67IdmwpPDYYJSYCNnyRXK31YEbBhFixw7D357w==","signatures":[{"sig":"MEUCIQDqSJcBGVs4ws0q0i0KtFgGFYBaWBqcHFLX7xDn4h6krQIgTO79EkP0JHv0PDSqQwQDC6DPSNxkMoJrMu6cIkWIIz8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":2769632},"main":"index.js","_from":"file:polkadot-api-wasm-executor-0.1.0.tgz","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","module":"./dist/index.js","default":"./dist/index.js","require":"./dist/index.js"},"./package.json":"./package.json"},"scripts":{"wasm":"pnpm run clean && wasm-pack build --target nodejs --out-dir pkg","build":"pnpm run wasm && bash scripts/build.sh","clean":"rm -rf pkg dist"},"_npmUser":{"name":"voliva","email":"olivarra1@gmail.com"},"_resolved":"/tmp/c8a3699240905f74f1d4232a5a6c72d8/polkadot-api-wasm-executor-0.1.0.tgz","_integrity":"sha512-nXQnfTxL662RZ3xS2pDGEo9pIsIFnpekTbTdGnMnjk9XXsvL67IdmwpPDYYJSYCNnyRXK31YEbBhFixw7D357w==","repository":{"url":"git+https://github.com/polkadot-api/wasm-executor.git","type":"git"},"_npmVersion":"10.5.2","description":"This package has been strongly influenced by [Chopsticks](https://github.com/AcalaNetwork/chopsticks). Its usage is only recommended and supported in NodeJS environments.","directories":{},"sideEffects":false,"_nodeVersion":"20.13.1","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/wasm-executor_0.1.0_1715852195061_0.4893948495521956","host":"s3://npm-registry-packages"}},"0.1.1":{"name":"@polkadot-api/wasm-executor","version":"0.1.1","author":{"url":"https://github.com/carlosala","name":"Carlo Sala"},"license":"MIT","_id":"@polkadot-api/wasm-executor@0.1.1","maintainers":[{"name":"voliva","email":"olivarra1@gmail.com"},{"name":"josepot","email":"sobrepere@protonmail.com"}],"homepage":"https://github.com/polkadot-api/wasm-executor#readme","bugs":{"url":"https://github.com/polkadot-api/wasm-executor/issues"},"dist":{"shasum":"89d00f6d6dcde5aca3d48122fb9b9784aad35a51","tarball":"https://registry.npmjs.org/@polkadot-api/wasm-executor/-/wasm-executor-0.1.1.tgz","fileCount":6,"integrity":"sha512-OuxbAkSRNLtJtsWDzKx7TEYlRXI2ApT9LcEFckaAr6E4aKLQ5TgbDDXWUvwl4A3AnjoUQx7ltYcsb8qR8UpMAg==","signatures":[{"sig":"MEYCIQCI5ZYkhCggT8fa9KAByXjcwHGzW1C5nNBq9L4Yiq9yngIhAIWe7dhvDniqMVTR6/8A3h9dwMlI/KGTAfozZIIb8F7E","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":2801453},"main":"index.js","_from":"file:polkadot-api-wasm-executor-0.1.1.tgz","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","module":"./dist/index.js","default":"./dist/index.js","require":"./dist/index.js"},"./package.json":"./package.json"},"scripts":{"wasm":"pnpm run clean && wasm-pack build --target nodejs --out-dir pkg","build":"pnpm run wasm && bash scripts/build.sh","clean":"rm -rf pkg dist"},"_npmUser":{"name":"voliva","email":"olivarra1@gmail.com"},"_resolved":"/tmp/5c6603e81dbfb48f3d5809574e632d59/polkadot-api-wasm-executor-0.1.1.tgz","_integrity":"sha512-OuxbAkSRNLtJtsWDzKx7TEYlRXI2ApT9LcEFckaAr6E4aKLQ5TgbDDXWUvwl4A3AnjoUQx7ltYcsb8qR8UpMAg==","repository":{"url":"git+https://github.com/polkadot-api/wasm-executor.git","type":"git"},"_npmVersion":"10.7.0","description":"This package has been strongly influenced by [Chopsticks](https://github.com/AcalaNetwork/chopsticks). Its usage is only recommended and supported in NodeJS environments.","directories":{},"sideEffects":false,"_nodeVersion":"20.15.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/wasm-executor_0.1.1_1720717939453_0.04168214334119957","host":"s3://npm-registry-packages"}},"0.1.2":{"name":"@polkadot-api/wasm-executor","version":"0.1.2","author":{"url":"https://github.com/carlosala","name":"Carlo Sala"},"license":"MIT","_id":"@polkadot-api/wasm-executor@0.1.2","maintainers":[{"name":"voliva","email":"olivarra1@gmail.com"},{"name":"josepot","email":"sobrepere@protonmail.com"}],"homepage":"https://github.com/polkadot-api/wasm-executor#readme","bugs":{"url":"https://github.com/polkadot-api/wasm-executor/issues"},"dist":{"shasum":"ca78ea848a87275bb9efe2b574e2d58434cb58bd","tarball":"https://registry.npmjs.org/@polkadot-api/wasm-executor/-/wasm-executor-0.1.2.tgz","fileCount":6,"integrity":"sha512-a5wGenltB3EFPdf72u8ewi6HsUg2qubUAf3ekJprZf24lTK3+w8a/GUF/y6r08LJF35MALZ32SAtLqtVTIOGnQ==","signatures":[{"sig":"MEUCIEhOnBZ7oe+HSiSSbXNQ7KXKUEF3HyaTmK3zbClTah5ZAiEAmcadb/q4wG5DfdKUbFMaWoSp7qeua3jbZ7L/0i8/kmA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":2766550},"main":"index.js","_from":"file:polkadot-api-wasm-executor-0.1.2.tgz","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","module":"./dist/index.js","default":"./dist/index.js","require":"./dist/index.js"},"./package.json":"./package.json"},"scripts":{"wasm":"pnpm run clean && wasm-pack build --target nodejs --out-dir pkg","build":"pnpm run wasm && bash scripts/build.sh","clean":"rm -rf pkg dist"},"_npmUser":{"name":"voliva","email":"olivarra1@gmail.com"},"_resolved":"/tmp/14b9ed5bccc3f7d0d2cd6223095a0421/polkadot-api-wasm-executor-0.1.2.tgz","_integrity":"sha512-a5wGenltB3EFPdf72u8ewi6HsUg2qubUAf3ekJprZf24lTK3+w8a/GUF/y6r08LJF35MALZ32SAtLqtVTIOGnQ==","repository":{"url":"git+https://github.com/polkadot-api/wasm-executor.git","type":"git"},"_npmVersion":"10.9.0","description":"This package has been strongly influenced by [Chopsticks](https://github.com/AcalaNetwork/chopsticks). Its usage is only recommended and supported in NodeJS environments.","directories":{},"sideEffects":false,"_nodeVersion":"22.10.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/wasm-executor_0.1.2_1731219740062_0.12218696559332387","host":"s3://npm-registry-packages"}},"0.2.0":{"name":"@polkadot-api/wasm-executor","version":"0.2.0","author":{"url":"https://github.com/carlosala","name":"Carlo Sala"},"license":"MIT","_id":"@polkadot-api/wasm-executor@0.2.0","maintainers":[{"name":"voliva","email":"olivarra1@gmail.com"},{"name":"josepot","email":"sobrepere@protonmail.com"}],"homepage":"https://github.com/polkadot-api/wasm-executor#readme","bugs":{"url":"https://github.com/polkadot-api/wasm-executor/issues"},"dist":{"shasum":"cbe2acd00056252b5156866bf73ce523d185790c","tarball":"https://registry.npmjs.org/@polkadot-api/wasm-executor/-/wasm-executor-0.2.0.tgz","fileCount":2,"integrity":"sha512-vAO0HBqYbY75c1LF8sdQNIyldwuDk9aCjxUG532VxakV1m8JxrckLTMGB5xihiH5yZTk+gaZQtgcbCXm3/hveQ==","signatures":[{"sig":"MEUCID0nRcz9WpE+MLm3f3jRbFNu++TYiPPDVBAebZnH5W5mAiEAx3ZYqI4rez+opFur4xjMr13yVXavehY8M8cCP69zbDY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2112},"_from":"file:polkadot-api-wasm-executor-0.2.0.tgz","exports":{"./web":{"types":"./dist/web.d.ts","import":"./dist/web.js","module":"./dist/web.js","default":"./dist/web.js","require":"./dist/web.js"},"./node":{"types":"./dist/node.d.ts","import":"./dist/node.js","module":"./dist/node.js","default":"./dist/node.js","require":"./dist/node.js"},"./package.json":"./package.json"},"scripts":{"wasm":"pnpm run clean && wasm-pack build --target nodejs --out-dir dist --out-name node --no-pack && wasm-pack build --target web --out-dir dist --out-name web --no-pack","build":"pnpm run wasm","clean":"rm -rf pkg dist"},"_npmUser":{"name":"voliva","email":"olivarra1@gmail.com"},"_resolved":"/tmp/1c2a63f4c2a476ee9ff6f4fde7122b75/polkadot-api-wasm-executor-0.2.0.tgz","_integrity":"sha512-vAO0HBqYbY75c1LF8sdQNIyldwuDk9aCjxUG532VxakV1m8JxrckLTMGB5xihiH5yZTk+gaZQtgcbCXm3/hveQ==","repository":{"url":"git+https://github.com/polkadot-api/wasm-executor.git","type":"git"},"_npmVersion":"10.9.2","description":"This package has been strongly influenced by [Chopsticks](https://github.com/AcalaNetwork/chopsticks). It can be used in both web and NodeJS environments.","directories":{},"sideEffects":false,"_nodeVersion":"22.15.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/wasm-executor_0.2.0_1748852671805_0.41745615315052875","host":"s3://npm-registry-packages-npm-production"}},"0.2.1":{"name":"@polkadot-api/wasm-executor","version":"0.2.1","author":{"url":"https://github.com/carlosala","name":"Carlo Sala"},"license":"MIT","_id":"@polkadot-api/wasm-executor@0.2.1","maintainers":[{"name":"voliva","email":"olivarra1@gmail.com"},{"name":"josepot","email":"sobrepere@protonmail.com"}],"homepage":"https://github.com/polkadot-api/wasm-executor#readme","bugs":{"url":"https://github.com/polkadot-api/wasm-executor/issues"},"dist":{"shasum":"632b2ebc243b55eda4b1dd71cc457b51406a229e","tarball":"https://registry.npmjs.org/@polkadot-api/wasm-executor/-/wasm-executor-0.2.1.tgz","fileCount":10,"integrity":"sha512-EN3qtu9Aurz1PoEjvrvL/Z9lSMrLkRU2K1fOjzWFpI5siBgQ2eN/tMLbX1VjaSk1VhvXmbXPaqBrkfdMCxLdsg==","signatures":[{"sig":"MEYCIQDb9d0/modiUqU+6gx2nxkhl4kwVddI5Gwa65RVgJZ1vQIhAJ8Bqy1+PCWQgEhrkzXLS7YoXHeA9ElW30lj/voxA5P+","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5520762},"_from":"file:polkadot-api-wasm-executor-0.2.1.tgz","exports":{"./web":{"types":"./dist/web.d.ts","import":"./dist/web.js","module":"./dist/web.js","default":"./dist/web.js","require":"./dist/web.js"},"./node":{"types":"./dist/node.d.ts","import":"./dist/node.js","module":"./dist/node.js","default":"./dist/node.js","require":"./dist/node.js"},"./package.json":"./package.json"},"scripts":{"wasm":"pnpm run clean && wasm-pack build --target nodejs --out-dir dist --out-name node --no-pack && wasm-pack build --target web --out-dir dist --out-name web --no-pack","build":"pnpm run wasm && rm dist/.gitignore","clean":"rm -rf pkg dist"},"_npmUser":{"name":"voliva","email":"olivarra1@gmail.com"},"_resolved":"/tmp/eb0ce1190f20d589a8ee886000efefa0/polkadot-api-wasm-executor-0.2.1.tgz","_integrity":"sha512-EN3qtu9Aurz1PoEjvrvL/Z9lSMrLkRU2K1fOjzWFpI5siBgQ2eN/tMLbX1VjaSk1VhvXmbXPaqBrkfdMCxLdsg==","repository":{"url":"git+https://github.com/polkadot-api/wasm-executor.git","type":"git"},"_npmVersion":"10.9.2","description":"This package has been strongly influenced by [Chopsticks](https://github.com/AcalaNetwork/chopsticks). It can be used in both web and NodeJS environments.","directories":{},"sideEffects":false,"_nodeVersion":"22.15.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/wasm-executor_0.2.1_1748861182008_0.14449783637456903","host":"s3://npm-registry-packages-npm-production"}},"0.2.2":{"name":"@polkadot-api/wasm-executor","version":"0.2.2","author":{"url":"https://github.com/carlosala","name":"Carlo Sala"},"license":"MIT","_id":"@polkadot-api/wasm-executor@0.2.2","maintainers":[{"name":"voliva","email":"olivarra1@gmail.com"},{"name":"josepot","email":"sobrepere@protonmail.com"}],"homepage":"https://github.com/polkadot-api/wasm-executor#readme","bugs":{"url":"https://github.com/polkadot-api/wasm-executor/issues"},"dist":{"shasum":"3a7053f25b89ff69a488c64fd639e333cbeebc4e","tarball":"https://registry.npmjs.org/@polkadot-api/wasm-executor/-/wasm-executor-0.2.2.tgz","fileCount":10,"integrity":"sha512-uqQEHO2uho6cwPOfxtZlaQjGwwZfqF4MpmEfyyHw56i+NlvzSQWrLnIIpcAlwsJl8HeHCOy/IPOcLiZzFyXNiQ==","signatures":[{"sig":"MEUCIHfFPmHZaneAdhlnzdVBE2G7UKjCDsLZGYE5a1jNUxrlAiEA6XOFnIZsRzWoAuCLNk1GyVhQpH1YJSURKNCDhBcDrMI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@polkadot-api%2fwasm-executor@0.2.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":5491970},"_from":"file:polkadot-api-wasm-executor-0.2.2.tgz","exports":{"./web":{"types":"./dist/web.d.ts","import":"./dist/web.js","module":"./dist/web.js","default":"./dist/web.js","require":"./dist/web.js"},"./node":{"types":"./dist/node.d.ts","import":"./dist/node.js","module":"./dist/node.js","default":"./dist/node.js","require":"./dist/node.js"},"./package.json":"./package.json"},"scripts":{"wasm":"pnpm run clean && wasm-pack build --target nodejs --out-dir dist --out-name node --no-pack && wasm-pack build --target web --out-dir dist --out-name web --no-pack","build":"pnpm run wasm && rm dist/.gitignore","clean":"rm -rf pkg dist"},"_npmUser":{"name":"voliva","email":"olivarra1@gmail.com"},"_resolved":"/tmp/4da6c787221f141788762003ceb384e3/polkadot-api-wasm-executor-0.2.2.tgz","_integrity":"sha512-uqQEHO2uho6cwPOfxtZlaQjGwwZfqF4MpmEfyyHw56i+NlvzSQWrLnIIpcAlwsJl8HeHCOy/IPOcLiZzFyXNiQ==","repository":{"url":"git+https://github.com/polkadot-api/wasm-executor.git","type":"git"},"_npmVersion":"10.9.3","description":"This package has been strongly influenced by [Chopsticks](https://github.com/AcalaNetwork/chopsticks). It can be used in both web and NodeJS environments.","directories":{},"sideEffects":false,"_nodeVersion":"22.19.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/wasm-executor_0.2.2_1759489737708_0.2595555071470468","host":"s3://npm-registry-packages-npm-production"}},"0.2.3":{"name":"@polkadot-api/wasm-executor","version":"0.2.3","author":{"name":"Carlo Sala","url":"https://github.com/carlosala"},"repository":{"type":"git","url":"git+https://github.com/polkadot-api/wasm-executor.git"},"license":"MIT","sideEffects":false,"exports":{"./web":{"module":"./dist/web.js","import":"./dist/web.js","require":"./dist/web.js","default":"./dist/web.js","types":"./dist/web.d.ts"},"./node":{"module":"./dist/node.js","import":"./dist/node.js","require":"./dist/node.js","default":"./dist/node.js","types":"./dist/node.d.ts"},"./package.json":"./package.json"},"scripts":{"clean":"rm -rf pkg dist","wasm":"pnpm run clean && wasm-pack build --target nodejs --out-dir dist --out-name node --no-pack && wasm-pack build --target web --out-dir dist --out-name web --no-pack","build":"pnpm run wasm && rm dist/.gitignore"},"_id":"@polkadot-api/wasm-executor@0.2.3","description":"This package has been strongly influenced by [Chopsticks](https://github.com/AcalaNetwork/chopsticks). It can be used in both web and NodeJS environments.","bugs":{"url":"https://github.com/polkadot-api/wasm-executor/issues"},"homepage":"https://github.com/polkadot-api/wasm-executor#readme","_integrity":"sha512-B2h1o+Qlo9idpASaHvMSoViB2I5ko5OAfwfhYF8LQDkTADK0B+SeStzNj1Qn+FG34wqTuv7HzBCdjaUgzYINJQ==","_resolved":"/tmp/63387697b69f122aff21bf87d5be3554/polkadot-api-wasm-executor-0.2.3.tgz","_from":"file:polkadot-api-wasm-executor-0.2.3.tgz","_nodeVersion":"22.21.1","_npmVersion":"10.9.4","dist":{"integrity":"sha512-B2h1o+Qlo9idpASaHvMSoViB2I5ko5OAfwfhYF8LQDkTADK0B+SeStzNj1Qn+FG34wqTuv7HzBCdjaUgzYINJQ==","shasum":"a77d74bf95dbdec2dfa815b278a78af1cf628635","tarball":"https://registry.npmjs.org/@polkadot-api/wasm-executor/-/wasm-executor-0.2.3.tgz","fileCount":10,"unpackedSize":5478383,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@polkadot-api%2fwasm-executor@0.2.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIDwxGILCLRctuNXGJP2toh4YZFwuPzw4P+KM6gWwu0XqAiEAiSTwmIHkadfrfsSHSWalhESs9ImPIVbdTk9lSq8xV6U="}]},"_npmUser":{"name":"voliva","email":"olivarra1@gmail.com"},"directories":{},"maintainers":[{"name":"voliva","email":"olivarra1@gmail.com"},{"name":"josepot","email":"sobrepere@protonmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/wasm-executor_0.2.3_1764678813505_0.13335932139081108"},"_hasShrinkwrap":false}},"time":{"created":"2024-05-16T09:36:34.921Z","modified":"2025-12-02T12:33:34.155Z","0.1.0":"2024-05-16T09:36:35.341Z","0.1.1":"2024-07-11T17:12:19.677Z","0.1.2":"2024-11-10T06:22:20.331Z","0.2.0":"2025-06-02T08:24:31.973Z","0.2.1":"2025-06-02T10:46:22.272Z","0.2.2":"2025-10-03T11:08:58.001Z","0.2.3":"2025-12-02T12:33:33.758Z"},"bugs":{"url":"https://github.com/polkadot-api/wasm-executor/issues"},"author":{"name":"Carlo Sala","url":"https://github.com/carlosala"},"license":"MIT","homepage":"https://github.com/polkadot-api/wasm-executor#readme","repository":{"type":"git","url":"git+https://github.com/polkadot-api/wasm-executor.git"},"description":"This package has been strongly influenced by [Chopsticks](https://github.com/AcalaNetwork/chopsticks). It can be used in both web and NodeJS environments.","maintainers":[{"name":"voliva","email":"olivarra1@gmail.com"},{"name":"josepot","email":"sobrepere@protonmail.com"}],"readme":"# @polkadot-api/wasm-executor\n\nThis package has been strongly influenced by [Chopsticks](https://github.com/AcalaNetwork/chopsticks).\nIt can be used in both web and NodeJS environments.\n\nAt this point, it just exports a `getMetadataFromRuntime` function that runs WASM under the hood, and returns its metadata in `string`.\n\n## Examples\n\n### Web\n\n```ts\n// IMPORTANT to prefix it with `0x`!\nconst runtime = \"0x\" + fs.readFileSync(\"runtime.wasm\").toString(\"hex\");\n\n// returns a `0x` prefixed OpaqueMetadata. It's as well prefixed by a compactInt of its length\nconst metadata = await import(\"@polkadot-api/wasm-executor/web\").then(\n  async ({ default: init, getMetadataFromRuntime }) => {\n    await init();\n    return getMetadataFromRuntime(runtime);\n  },\n);\n```\n\n### Node\n\n```ts\nimport { getMetadataFromRuntime } from \"@polkadot-api/wasm-executor/node\";\n\n// IMPORTANT to prefix it with `0x`!\nconst runtime = \"0x\" + fs.readFileSync(\"runtime.wasm\").toString(\"hex\");\n\n// returns a `0x` prefixed OpaqueMetadata. It's as well prefixed by a compactInt of its length\nconst metadata = getMetadataFromRuntime(runtime);\n```\n","readmeFilename":"README.md"}