{"_id":"@huggingface/blake3-wasm","_rev":"5-ef64dacaafba1dd5413b04997103204b","name":"@huggingface/blake3-wasm","dist-tags":{"latest":"0.0.4"},"versions":{"0.0.1":{"name":"@huggingface/blake3-wasm","version":"0.0.1","keywords":["blake3","assemblyscript","assembly","wasm"],"_id":"@huggingface/blake3-wasm@0.0.1","maintainers":[{"name":"julien-c","email":"chaumond@gmail.com"},{"name":"pierric","email":"pierrot007@gmail.com"},{"name":"coyotte508","email":"coyotte508@protonmail.com"},{"name":"xenova","email":"admin@xenova.com"}],"dist":{"shasum":"7ea917a912649c0b7f6d72cd32bfb413668595c8","tarball":"https://registry.npmjs.org/@huggingface/blake3-wasm/-/blake3-wasm-0.0.1.tgz","fileCount":13,"integrity":"sha512-JZy3FcQXdqtthfx9HSUjj0g3zYeQOrI7OyTiIFoEc09nMjrqkIZzpcrbMw2+rOGJgxwQfUfNWboAoB4GRXkW9Q==","signatures":[{"sig":"MEQCIAFJQUHkbkiZ0omxeyROsGSAfJg2ePhLWrwZ2LX53vr9AiBDsOQzKWUlaYMS6W6DgBK7sCaNoUsJtXy/frj062RVCQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":590419},"type":"module","_from":"file:huggingface-blake3-wasm-0.0.1.tgz","exports":{".":{"types":"./build/release.d.ts","import":"./build/release.js"},"./wasm":{"import":"./build/release.wasm"},"./assembly":{"import":"./assembly/index.ts"}},"scripts":{"test":"node tests","build":"pnpm run build:debug && npm run build:release","build:debug":"asc assembly/index.ts --target debug","build:release":"asc assembly/index.ts --target release"},"_npmUser":{"name":"coyotte508","actor":{"name":"coyotte508","type":"user","email":"coyotte508@protonmail.com"},"email":"coyotte508@protonmail.com"},"_resolved":"/tmp/4294545bb1af42b93382af2b022dba14/huggingface-blake3-wasm-0.0.1.tgz","_integrity":"sha512-JZy3FcQXdqtthfx9HSUjj0g3zYeQOrI7OyTiIFoEc09nMjrqkIZzpcrbMw2+rOGJgxwQfUfNWboAoB4GRXkW9Q==","_npmVersion":"10.9.2","description":"JS and WASM implementations of https://github.com/BLAKE3-team/BLAKE3","directories":{},"_nodeVersion":"22.15.1","_hasShrinkwrap":false,"devDependencies":{"assemblyscript":"0.27.36"},"_npmOperationalInternal":{"tmp":"tmp/blake3-wasm_0.0.1_1751975744598_0.550292912228934","host":"s3://npm-registry-packages-npm-production"},"deprecated":"This package is deprecated in favor of blake3-jit. Please migrate to blake3-jit for better performance."},"0.0.2":{"name":"@huggingface/blake3-wasm","version":"0.0.2","keywords":["blake3","assemblyscript","assembly","wasm"],"_id":"@huggingface/blake3-wasm@0.0.2","maintainers":[{"name":"julien-c","email":"chaumond@gmail.com"},{"name":"pierric","email":"pierrot007@gmail.com"},{"name":"coyotte508","email":"coyotte508@protonmail.com"},{"name":"xenova","email":"admin@xenova.com"}],"dist":{"shasum":"9464baa68c2e89a442566146c21093d36bc76a75","tarball":"https://registry.npmjs.org/@huggingface/blake3-wasm/-/blake3-wasm-0.0.2.tgz","fileCount":13,"integrity":"sha512-EafaouNYNT9jW4odPPPOpVnpNYykK276jm50bKZitZ4wEB9np1nwRldejtXq0lEZmtxT7yUOJSPX2qpaSEJ1Pg==","signatures":[{"sig":"MEUCIQC7780rkWwcW2o6+KcqXdwDKAR153yrcoJaF3DMkam/YgIgcQCFjv2ut1r5sIos4CT35IlGi+XFDTHuVi/r/JfNBGs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":590486},"main":"./build/release.js","type":"module","_from":"file:huggingface-blake3-wasm-0.0.2.tgz","types":"./build/release.d.ts","exports":{".":{"types":"./build/release.d.ts","import":"./build/release.js"},"./wasm":{"import":"./build/release.wasm"},"./assembly":{"import":"./assembly/index.ts"}},"scripts":{"test":"node tests","build":"pnpm run build:debug && npm run build:release","build:debug":"asc assembly/index.ts --target debug","build:release":"asc assembly/index.ts --target release"},"_npmUser":{"name":"coyotte508","actor":{"name":"coyotte508","type":"user","email":"coyotte508@protonmail.com"},"email":"coyotte508@protonmail.com"},"_resolved":"/tmp/976619902ecd3e2c9d4a465aac3f8f93/huggingface-blake3-wasm-0.0.2.tgz","_integrity":"sha512-EafaouNYNT9jW4odPPPOpVnpNYykK276jm50bKZitZ4wEB9np1nwRldejtXq0lEZmtxT7yUOJSPX2qpaSEJ1Pg==","_npmVersion":"10.9.2","description":"JS and WASM implementations of https://github.com/BLAKE3-team/BLAKE3","directories":{},"_nodeVersion":"22.15.1","_hasShrinkwrap":false,"devDependencies":{"assemblyscript":"0.27.36"},"_npmOperationalInternal":{"tmp":"tmp/blake3-wasm_0.0.2_1751975877596_0.907448106291072","host":"s3://npm-registry-packages-npm-production"},"deprecated":"This package is deprecated in favor of blake3-jit. Please migrate to blake3-jit for better performance."},"0.0.4":{"name":"@huggingface/blake3-wasm","version":"0.0.4","keywords":["blake3","assemblyscript","assembly","wasm"],"_id":"@huggingface/blake3-wasm@0.0.4","maintainers":[{"name":"julien-c","email":"chaumond@gmail.com"},{"name":"pierric","email":"pierrot007@gmail.com"},{"name":"coyotte508","email":"coyotte508@protonmail.com"},{"name":"xenova","email":"admin@xenova.com"},{"name":"gary149","email":"v@huggingface.co"}],"dist":{"shasum":"657a3bf319877bdb7e481052ebfa87f0f9ae3f51","tarball":"https://registry.npmjs.org/@huggingface/blake3-wasm/-/blake3-wasm-0.0.4.tgz","fileCount":13,"integrity":"sha512-yQCHELBYNrvJVpoSFOGpzKFqHC9rNH6Nzw3pWAHI82BvqL1XbdKBwxMyqitAG+wH7YK5RTvTSUDgtUiF30HZeg==","signatures":[{"sig":"MEQCIBWt5XvyEvYB4twFC56Szq6fEhkjS6pH2wJrisaVwmlXAiBuVVUPIZS4UL5pej/Zx/zaCs07HEznvAGLPceNIUgafw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":653981},"main":"./build/release.js","type":"module","types":"./build/release.d.ts","exports":{".":{"types":"./build/release.d.ts","import":"./build/release.js"},"./wasm":{"import":"./build/release.wasm"},"./assembly":{"import":"./assembly/index.ts"}},"gitHead":"70b9b1fb58af74473dc4bbe2bf55d24af11f28af","scripts":{"test":"vitest run","bench":"node tests/bench.js","build":"pnpm run build:debug && npm run build:release","prepare":"pnpm run build","build:debug":"asc assembly/index.ts --target debug","build:release":"asc assembly/index.ts --target release"},"_npmUser":{"name":"coyotte508","email":"coyotte508@protonmail.com"},"deprecated":"This package is deprecated in favor of blake3-jit. Please migrate to blake3-jit for better performance.","_npmVersion":"11.9.0","description":"> ⚠️ **DEPRECATED**: This package is deprecated in favor of [`blake3-jit`](https://www.npmjs.com/package/blake3-jit). Please migrate to `blake3-jit` for better performance and maintenance. This package will continue to work but will not receive updates.","directories":{},"_nodeVersion":"24.14.0","_hasShrinkwrap":false,"devDependencies":{"assemblyscript":"0.27.36"},"_npmOperationalInternal":{"tmp":"tmp/blake3-wasm_0.0.4_1776262744481_0.4890108855547519","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2025-07-08T11:55:44.434Z","modified":"2026-04-15T14:19:48.134Z","0.0.1":"2025-07-08T11:55:44.796Z","0.0.2":"2025-07-08T11:57:57.833Z","0.0.4":"2026-04-15T14:19:04.627Z"},"keywords":["blake3","assemblyscript","assembly","wasm"],"description":"> ⚠️ **DEPRECATED**: This package is deprecated in favor of [`blake3-jit`](https://www.npmjs.com/package/blake3-jit). Please migrate to `blake3-jit` for better performance and maintenance. This package will continue to work but will not receive updates.","maintainers":[{"name":"coyotte508","email":"coyotte508@protonmail.com"},{"name":"gary149","email":"v@huggingface.co"},{"name":"julien-c","email":"chaumond@gmail.com"},{"name":"pierric","email":"pierrot007@gmail.com"},{"name":"xenova","email":"admin@xenova.com"}],"readme":"> ⚠️ **DEPRECATED**: This package is deprecated in favor of [`blake3-jit`](https://www.npmjs.com/package/blake3-jit). Please migrate to `blake3-jit` for better performance and maintenance. This package will continue to work but will not receive updates.\n\nJS and WASM implementations of https://github.com/BLAKE3-team/BLAKE3\n\nUsing [AssemblyScript](https://www.assemblyscript.org/) to generate a lean WASM.\n\n## Usage\n\n```javascript\nimport { blake3, blake3Hex, createHasher, update, finalize } from '@huggingface/gearhash-wasm';\n\n// Create a Uint8Array of data to search through\nconst data = new Uint8Array(1_000_000); // Example: 1MB of data\n// ... fill data with your content ...\n\nconst hashUint8 = blake3(data);\nconst hashHex = blake3Hex(data);\n\n// Or streaming fashion\nconst hasher = createHasher();\n\nfor (const chunk of dataSource) {\n  hasher.update(chunk);\n}\n\nconst hash = hasher.finalize();\n\n// When passing custom key\nconst hashKeyed = blake3Keyed(data, new Uint8Array([\n  0,1,2,3,4,5,6,7,8,\n  9,10,11,12,13,14,15,\n  16,17,18,19,20,21,22,23,\n  24,25,26,27,28,29,30,31\n]));\n```","readmeFilename":"README.md"}