{"id":43150979,"url":"https://github.com/voxmedia/identity-library","last_synced_at":"2026-02-01T00:16:56.389Z","repository":{"id":53294243,"uuid":"305817107","full_name":"voxmedia/identity-library","owner":"voxmedia","description":"Simple JavaScript library to generate private identifiers","archived":false,"fork":false,"pushed_at":"2021-03-31T15:59:01.000Z","size":153,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":48,"default_branch":"main","last_synced_at":"2025-10-25T10:31:30.068Z","etag":null,"topics":["identity","privacy","revenue"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/voxmedia.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}},"created_at":"2020-10-20T19:47:59.000Z","updated_at":"2020-11-01T16:04:33.000Z","dependencies_parsed_at":"2022-08-19T23:40:18.363Z","dependency_job_id":null,"html_url":"https://github.com/voxmedia/identity-library","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/voxmedia/identity-library","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voxmedia%2Fidentity-library","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voxmedia%2Fidentity-library/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voxmedia%2Fidentity-library/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voxmedia%2Fidentity-library/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/voxmedia","download_url":"https://codeload.github.com/voxmedia/identity-library/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voxmedia%2Fidentity-library/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28961597,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-31T23:03:11.038Z","status":"ssl_error","status_checked_at":"2026-01-31T22:56:44.691Z","response_time":128,"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":["identity","privacy","revenue"],"created_at":"2026-02-01T00:16:53.712Z","updated_at":"2026-02-01T00:16:56.384Z","avatar_url":"https://github.com/voxmedia.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Identity Library\n\nThis is a small JavaScript library used to send a salted hash of a user's UID to partners. It takes a privacy-first approach to ensure we can safely share sets of user data between trusted third parties, while preventing the possibility of the sets being matched between partners or the source of the data.\n\n## Usage\n\nYou can import `identity-library` into a project using module bundling like Webpack, or into a Node.js project:\n\n```bash\nyarn add @voxmedia/identity-library\n\n# or:\n\nnpm install @voxmedia/identity-library\n```\n\nImport the package and call the default export:\n\n```js\nimport identityFor from '@voxmedia/identity-library';\n\nasync function sendIdentityToPartner() {\n  const privateId = fetchUserPrivateId(); // e.g. from a cookie\n\n  const shareableId = await identityFor('\u003cPARTNER_NAME\u003e', privateId);\n}\n```\n\nYou can also use this directly in browser with a script tag:\n\n```html\n\u003cscript src=\"https://unpkg.com/@voxmedia/identity-library@latest/dist/identity-library.umd.js\"\u003e\u003c/script\u003e\n\n\u003cscript\u003e\n  async function sendIdentityToPartner() {\n    const privateId = fetchUserPrivateId(); // e.g. from a cookie\n\n    const shareableId = await identityFor('\u003cPARTNER_NAME\u003e', privateId);\n  }\n\u003c/script\u003e\n```\n\n## Browser Support\n\nThis library requires Promise support, i.e. it will not work out of the box on IE11. You can add a Promise polyfill if you want to support this library.\n\n## Development\n\n```bash\nyarn dev\n```\n\nIf you want to symlink the development version of this library into another local project, run the following inside this project's repo:\n\n```bash\nyarn link\n```\n\nThen, follow the instructions to use it in a different project.\n\n## Releasing\n\nThis project is automatically released with [semantic-release](https://semantic-release.gitbook.io/semantic-release) within GitHub Actions. A couple notes:\n\n- You do NOT need to update the version in `package.json` manually\n- Instead, you should use [special `semantic-release` prefixes](https://semantic-release.gitbook.io/semantic-release/#how-does-it-work) in your commit messages.\n  - `fix:` If you are making a patch change which merits a patch version bump\n  - `feat:` If you are making a minor change which merits a minor version bump\n  - `BREAKING CHANGE:` If you are making a breaking change which merits a major version bump\n  - `chore, docs, test, refactor, etc:` If you are making a change which does not require any version change\n  - Any commit lacking a prefix will be considered a no-op (no version change)\n  - If you forgot to include any prefixes, you can use the \"Squash\" commit feature when merging the PR to edit the commit message to add an appropriate prefix\n- Prerelease branches are available at `alpha` and `beta`. Use these to push changes which will not increment the overall version - great for working on big new features.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvoxmedia%2Fidentity-library","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvoxmedia%2Fidentity-library","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvoxmedia%2Fidentity-library/lists"}