{"id":43961677,"url":"https://github.com/vnykmshr/murmur-hash","last_synced_at":"2026-02-07T05:33:36.192Z","repository":{"id":26948965,"uuid":"30411713","full_name":"vnykmshr/murmur-hash","owner":"vnykmshr","description":"MurmurHash3 for Node.js and browsers. 32-bit and 128-bit (x86/x64) variants. TypeScript, streaming API, zero dependencies.","archived":false,"fork":false,"pushed_at":"2025-11-24T14:15:07.000Z","size":61,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-28T03:19:39.577Z","etag":null,"topics":["128-bit","bloom-filter","consistent-hashing","fingerprint","hash","murmurhash","murmurhash3","nodejs","non-cryptographic-hash","typescript"],"latest_commit_sha":null,"homepage":"https://github.com/vnykmshr/murmur-hash","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vnykmshr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"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":"2015-02-06T12:42:46.000Z","updated_at":"2025-11-24T14:15:04.000Z","dependencies_parsed_at":"2022-09-20T21:51:10.589Z","dependency_job_id":null,"html_url":"https://github.com/vnykmshr/murmur-hash","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/vnykmshr/murmur-hash","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vnykmshr%2Fmurmur-hash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vnykmshr%2Fmurmur-hash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vnykmshr%2Fmurmur-hash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vnykmshr%2Fmurmur-hash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vnykmshr","download_url":"https://codeload.github.com/vnykmshr/murmur-hash/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vnykmshr%2Fmurmur-hash/sbom","scorecard":{"id":1240039,"data":{"date":"2025-11-17","repo":{"name":"github.com/vnykmshr/murmur-hash","commit":"48e312d2b322ec8b94e11ce372a288fbc8cea538"},"scorecard":{"version":"v5.4.1-0.20251120163002-1d52e157fc46","commit":"1d52e157fc46eb48937ec6ea11adbeff64595731"},"score":4.6,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/1d52e157fc46eb48937ec6ea11adbeff64595731/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 0/22 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/1d52e157fc46eb48937ec6ea11adbeff64595731/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/1d52e157fc46eb48937ec6ea11adbeff64595731/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/1d52e157fc46eb48937ec6ea11adbeff64595731/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":10,"reason":"20 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/1d52e157fc46eb48937ec6ea11adbeff64595731/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":3,"reason":"dependency not pinned by hash detected -- score normalized to 3","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/vnykmshr/murmur-hash/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/vnykmshr/murmur-hash/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:38: update your workflow using https://app.stepsecurity.io/secureworkflow/vnykmshr/murmur-hash/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:41: update your workflow using https://app.stepsecurity.io/secureworkflow/vnykmshr/murmur-hash/ci.yml/main?enable=pin","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   2 out of   2 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/1d52e157fc46eb48937ec6ea11adbeff64595731/docs/checks.md#pinned-dependencies"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/ci.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/1d52e157fc46eb48937ec6ea11adbeff64595731/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/1d52e157fc46eb48937ec6ea11adbeff64595731/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/1d52e157fc46eb48937ec6ea11adbeff64595731/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/1d52e157fc46eb48937ec6ea11adbeff64595731/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/1d52e157fc46eb48937ec6ea11adbeff64595731/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/1d52e157fc46eb48937ec6ea11adbeff64595731/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/1d52e157fc46eb48937ec6ea11adbeff64595731/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/1d52e157fc46eb48937ec6ea11adbeff64595731/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/1d52e157fc46eb48937ec6ea11adbeff64595731/docs/checks.md#sast"}}]},"last_synced_at":"2025-11-28T07:21:41.145Z","repository_id":26948965,"created_at":"2025-11-28T07:21:41.145Z","updated_at":"2025-11-28T07:21:41.145Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29187224,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T05:07:31.176Z","status":"ssl_error","status_checked_at":"2026-02-07T05:06:15.227Z","response_time":63,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["128-bit","bloom-filter","consistent-hashing","fingerprint","hash","murmurhash","murmurhash3","nodejs","non-cryptographic-hash","typescript"],"created_at":"2026-02-07T05:33:35.692Z","updated_at":"2026-02-07T05:33:36.188Z","avatar_url":"https://github.com/vnykmshr.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# murmur-hash\n\nMurmurHash3 for Node.js and browsers. Includes 32-bit and 128-bit variants.\n\n\u003e **Note:** MurmurHash is non-cryptographic. Do not use for passwords, security tokens, or other sensitive data.\n\n[![npm version](https://img.shields.io/npm/v/murmur-hash.svg)](https://www.npmjs.com/package/murmur-hash)\n[![CI](https://github.com/vnykmshr/murmur-hash/actions/workflows/ci.yml/badge.svg)](https://github.com/vnykmshr/murmur-hash/actions/workflows/ci.yml)\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)\n\n## Features\n\n- 32-bit and 128-bit hash outputs\n- x86 and x64 128-bit variants\n- Streaming API for large data\n- String and Uint8Array inputs\n- TypeScript definitions included\n- Zero dependencies\n\n## Installation\n\n```bash\nnpm install murmur-hash\n```\n\n## Quick Start\n\n```js\nimport { hash32, hash128, hash128x64 } from 'murmur-hash';\n\nhash32('hello');       // 613153351\nhash128('hello');      // '2360ae465e6336c6ad45b3f4ad45b3f4'\nhash128x64('hello');   // 'cbd8a7b341bd9b025b1e906a48ae1d19'\n```\n\n## API\n\n### hash32(input, seed?)\n\nReturns a 32-bit unsigned integer.\n\n```js\nhash32('hello')                   // 613153351\nhash32('hello', 42)               // with seed\nhash32(new Uint8Array([1,2,3]))   // binary input\n```\n\n### hash128(input, options?)\n\nReturns a 128-bit hash (x86 variant) as hex string or BigInt.\n\n```js\nhash128('hello')                         // hex string\nhash128('hello', { seed: 42 })           // with seed\nhash128('hello', { output: 'bigint' })   // as BigInt\n```\n\n### hash128x64(input, options?)\n\nReturns a 128-bit hash (x64 variant) as hex string or BigInt.\n\n```js\nhash128x64('hello')                         // hex string\nhash128x64('hello', { seed: 42 })           // with seed\nhash128x64('hello', { output: 'bigint' })   // as BigInt\n```\n\n### Streaming\n\n```js\nimport { createHash32, createHash128, createHash128x64 } from 'murmur-hash';\n\nconst hasher = createHash32();\nhasher.update('hello');\nhasher.update(' world');\nhasher.digest();  // same as hash32('hello world')\n```\n\n## Types\n\n```ts\ntype HashInput = string | Uint8Array;\n\ninterface Hash128Options {\n  seed?: number;              // default: 0\n  output?: 'hex' | 'bigint';  // default: 'hex'\n}\n```\n\n## Performance\n\nBenchmarks on Apple M1 (ops/sec):\n\n```\nhash32     short string    2,000,000+\nhash32     1KB bytes         560,000\nhash128    short string      540,000\nhash128    1KB bytes         350,000\nhash128x64 short string      530,000\nhash128x64 1KB bytes          35,000\n```\n\nRun locally: `npm run bench`\n\n## Migration from v1\n\nThe v1 API still works but is deprecated:\n\n```js\n// v1 (deprecated)\nimport { v3 } from 'murmur-hash';\nv3.x86.hash32('hello');\n\n// v2\nimport { hash32 } from 'murmur-hash';\nhash32('hello');\n```\n\n## Requirements\n\nNode.js 20+ or modern browsers (ES2020).\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvnykmshr%2Fmurmur-hash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvnykmshr%2Fmurmur-hash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvnykmshr%2Fmurmur-hash/lists"}