{"id":22541981,"url":"https://github.com/sanyampunia/unique-forge","last_synced_at":"2025-10-17T03:31:10.547Z","repository":{"id":266652589,"uuid":"898949962","full_name":"SanyamPunia/unique-forge","owner":"SanyamPunia","description":"🔐 Customizable, secure ID generator with async support and prefix/suffix options for JS/TS","archived":false,"fork":false,"pushed_at":"2024-12-05T10:55:09.000Z","size":112,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-05T00:45:30.049Z","etag":null,"topics":["collision","forge","generator","nanoid","unique-id"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/unique-forge","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SanyamPunia.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}},"created_at":"2024-12-05T10:45:01.000Z","updated_at":"2024-12-22T19:52:36.000Z","dependencies_parsed_at":"2024-12-05T11:38:19.350Z","dependency_job_id":"8e753dc8-8612-46e8-aa53-08cb08071c28","html_url":"https://github.com/SanyamPunia/unique-forge","commit_stats":null,"previous_names":["sanyampunia/unique-forge"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SanyamPunia%2Funique-forge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SanyamPunia%2Funique-forge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SanyamPunia%2Funique-forge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SanyamPunia%2Funique-forge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SanyamPunia","download_url":"https://codeload.github.com/SanyamPunia/unique-forge/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":236770358,"owners_count":19202076,"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","forge","generator","nanoid","unique-id"],"created_at":"2024-12-07T13:08:02.664Z","updated_at":"2025-10-17T03:31:10.212Z","avatar_url":"https://github.com/SanyamPunia.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## UniqueForge\n\nCustomizable and secure ID generator with async and prefix/suffix support for JS/TS environment.\n\n### Installation\n\n```bash\nnpm install unique-forge\n```\n\n### Usage\n\n#### Basic ID Generation\n\nUse `UniqueForge` for standard unique ID generation:\n\n```js\nconst { UniqueForge } = require('unique-forge');\n\nconst forge = new UniqueForge();\nconsole.log(forge.generate()); // Outputs a unique ID\n```\n\n#### Asynchronous ID Generation\n\nFor asynchronous workflows, use `AsyncUniqueForge`:\n\n```js\nconst { AsyncUniqueForge } = require('unique-forge');\n\nconst asyncForge = new AsyncUniqueForge();\nasyncForge.generate().then((id) =\u003e console.log(id));\n```\n\n#### Secure ID Generation\n\nFor cryptographically secure IDs, use `SecureUniqueForge`:\n\n```js\nconst { SecureUniqueForge } = require('unique-forge');\n\nconst secureForge = new SecureUniqueForge();\nconsole.log(secureForge.generate()); // Outputs a secure unique ID\n```\n\n#### Customizable ID Generation\n\nUse `CustomUniqueForge` for IDs with custom prefixes or suffixes:\n\n```js\nconst { CustomUniqueForge } = require('unique-forge');\n\nconst customForge = new CustomUniqueForge({ prefix: 'user_', suffix: '_2023' });\nconsole.log(customForge.generate()); // Outputs: user_\u003cunique-id\u003e_2023\n```\n\n### Features\n\n- **Customizable Alphabet**: Define your own characters for ID generation.\n- **Adjustable Length**: Set the size of the generated IDs.\n- **Synchronous \u0026 Asynchronous**: Flexible workflows for various use cases.\n- **Secure Random ID**s: Leverage cryptographic randomness when needed.\n- **Prefix/Suffix Support**: Easily create formatted IDs.\n\n### License\n\nThis library is [MIT](/LICENSE) Licensed. Contributions are welcome!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsanyampunia%2Funique-forge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsanyampunia%2Funique-forge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsanyampunia%2Funique-forge/lists"}