{"id":16641580,"url":"https://github.com/scrwdrv/fast-unique-id","last_synced_at":"2026-05-05T10:32:07.010Z","repository":{"id":57233110,"uuid":"229550971","full_name":"scrwdrv/fast-unique-id","owner":"scrwdrv","description":"non-standard universal unique id generation","archived":false,"fork":false,"pushed_at":"2020-01-20T04:28:47.000Z","size":11,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-13T07:47:13.019Z","etag":null,"topics":["collision","fast","guid","id","javascript","nodejs","timestamp","typescript","unique","uuid"],"latest_commit_sha":null,"homepage":null,"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/scrwdrv.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":"2019-12-22T10:26:44.000Z","updated_at":"2021-08-27T10:07:51.000Z","dependencies_parsed_at":"2022-08-31T20:51:19.492Z","dependency_job_id":null,"html_url":"https://github.com/scrwdrv/fast-unique-id","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scrwdrv%2Ffast-unique-id","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scrwdrv%2Ffast-unique-id/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scrwdrv%2Ffast-unique-id/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scrwdrv%2Ffast-unique-id/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scrwdrv","download_url":"https://codeload.github.com/scrwdrv/fast-unique-id/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243159166,"owners_count":20245675,"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","fast","guid","id","javascript","nodejs","timestamp","typescript","unique","uuid"],"created_at":"2024-10-12T07:47:05.491Z","updated_at":"2025-12-24T10:46:17.587Z","avatar_url":"https://github.com/scrwdrv.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fast-unique-id\n\nfast-unique-id is a super lightweight package written in typescript that allows you generate universal unique identifier (non-standard) in 18 characters.\n\n\n## Installation\n\n```sh\nnpm i fast-unique-id\n```\n\n## Usage\n\n```js\nimport * as uniqueID from 'fast-unique-id';\n\nconsole.log(uniqueID.fast());\n//68kUVYfj05caqmg0PL\n\nconsole.log(uniqueID.timestamp());\n//68kUVYk4gw9lp3ENRP\n```\n\n## Format \u0026 Performance\n\n|Method|Length|Format|Performance (Ryzen 5 1600)\n|-|:-:|:-:|-:|\n|`uniqueID.fast()`|18| `pid + prefix + timestamp + random suffix`|1904761 ops/sec|\n|`uniqueID.timestamp()`|18|`pid + prefix + init timestamp + offset + random suffix`|916590 ops/sec|\n\n\n## Collision\n- multi thread safe\n- no collision risk under **1000 ids/sec** on average\n- any time related functions will be working fine before human extinction\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscrwdrv%2Ffast-unique-id","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscrwdrv%2Ffast-unique-id","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscrwdrv%2Ffast-unique-id/lists"}