{"id":15007600,"url":"https://github.com/rayentellissy/mega-id","last_synced_at":"2026-03-16T11:03:02.892Z","repository":{"id":209235828,"uuid":"723544161","full_name":"RayenTellissy/mega-id","owner":"RayenTellissy","description":"Lightweight library that generates very short collision-resistant ids","archived":false,"fork":false,"pushed_at":"2023-11-28T01:53:03.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-12T06:15:01.526Z","etag":null,"topics":["collision-resistance","generate","ids","library","npm-package","npmjs"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/megaid","language":"JavaScript","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/RayenTellissy.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}},"created_at":"2023-11-26T02:00:20.000Z","updated_at":"2023-12-02T00:11:38.000Z","dependencies_parsed_at":"2023-11-26T02:29:56.553Z","dependency_job_id":"2b736024-f8de-4049-9a77-2fec9d13540f","html_url":"https://github.com/RayenTellissy/mega-id","commit_stats":null,"previous_names":["rayentellissy/mega-id"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RayenTellissy%2Fmega-id","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RayenTellissy%2Fmega-id/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RayenTellissy%2Fmega-id/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RayenTellissy%2Fmega-id/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RayenTellissy","download_url":"https://codeload.github.com/RayenTellissy/mega-id/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243165538,"owners_count":20246725,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["collision-resistance","generate","ids","library","npm-package","npmjs"],"created_at":"2024-09-24T19:12:04.092Z","updated_at":"2025-12-25T11:55:46.808Z","avatar_url":"https://github.com/RayenTellissy.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mega ID\n\nA collision-resistant ID generator.\n\n\u003e ~6 centuries of work are needed in order to have a 1% probability of at least one collision with the default id length (11 characters) when generating 100,000 ids per hour.\n\n## Install\n\n```bash\nnpm install megaid\n```\n\n## Usage\n\n```js\nimport { mgid } from \"megaid\"\nconst id = mgid() //=\u003e \"ϻYPnnϧϔλ7jO\"\n```\n\n## Security\n\n* **Generating** Megaid uses crypto api instead of Math.random(). The Crypto module uses unpredictable hardware random generator.\n\n* **Symbols** Megaid extends symbols by adding greek letters to reduce the probability of collision.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frayentellissy%2Fmega-id","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frayentellissy%2Fmega-id","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frayentellissy%2Fmega-id/lists"}