{"id":22222047,"url":"https://github.com/fabiospampinato/zeptoid","last_synced_at":"2025-07-27T16:32:25.709Z","repository":{"id":57690572,"uuid":"494412912","full_name":"fabiospampinato/zeptoid","owner":"fabiospampinato","description":"A tiny isomorphic fast function for generating a cryptographically random hex string.","archived":false,"fork":false,"pushed_at":"2023-09-24T16:28:51.000Z","size":8,"stargazers_count":14,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-16T02:32:45.894Z","etag":null,"topics":["cryptographic","fast","generator","hex","id","random","tiny","unique"],"latest_commit_sha":null,"homepage":"","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/fabiospampinato.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},"funding":{"github":"fabiospampinato","custom":"https://www.paypal.me/fabiospampinato"}},"created_at":"2022-05-20T10:02:51.000Z","updated_at":"2024-09-30T18:01:08.000Z","dependencies_parsed_at":"2024-06-21T13:14:35.046Z","dependency_job_id":"603d1cbf-8452-4ec5-a3a4-fa9b16ff4d14","html_url":"https://github.com/fabiospampinato/zeptoid","commit_stats":{"total_commits":6,"total_committers":1,"mean_commits":6.0,"dds":0.0,"last_synced_commit":"2d5abcd46940c259ea2bbdec7af997935a8e54e9"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiospampinato%2Fzeptoid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiospampinato%2Fzeptoid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiospampinato%2Fzeptoid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiospampinato%2Fzeptoid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fabiospampinato","download_url":"https://codeload.github.com/fabiospampinato/zeptoid/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227817017,"owners_count":17824200,"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":["cryptographic","fast","generator","hex","id","random","tiny","unique"],"created_at":"2024-12-02T23:16:41.299Z","updated_at":"2025-07-27T16:32:25.703Z","avatar_url":"https://github.com/fabiospampinato.png","language":"TypeScript","funding_links":["https://github.com/sponsors/fabiospampinato","https://www.paypal.me/fabiospampinato"],"categories":[],"sub_categories":[],"readme":"# ZeptoID\n\nA tiny isomorphic fast function for generating a cryptographically random hex string.\n\nAccoding to [this](https://zelark.github.io/nano-id-cc) calculator one would have to generate ids at a rate of 1 billion per second for ~83 years to have a 1% probability of finding a collision.\n\n## Comparison\n\nCompared to [`nanoid`](https://github.com/ai/nanoid) there are the following differences:\n\n- `zeptoid` is 50% faster.\n- `zeptoid` has a ~5x bigger space of possible unique strings that could be generated.\n- `zeptoid` is not customizable in any way, it will always simply output a 32-characters hex string.\n- `zeptoid` uses only the 16-characters of the hexadecimal alphabet, which makes the ids more human-friendly.\n\n## Install\n\n```sh\nnpm install zeptoid\n```\n\n## Usage\n\n```ts\nimport zeptoid, {is} from 'zeptoid';\n\n// Let's generate ids\n\nzeptoid (); // =\u003e 'aceee829076f33f6626a93ad1fcca776'\nzeptoid (); // =\u003e '39a07eda327e5b52f903d06303ca97be'\nzeptoid (); // =\u003e '0c1a4d3f273505565a380022fda07edd'\n\n// Let's check if a string is a zeptoid or not\n\nis ( zeptoid () ); // =\u003e true\nis ( 'something' ); // =\u003e false\n```\n\n## License\n\nMIT © Fabio Spampinato\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabiospampinato%2Fzeptoid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffabiospampinato%2Fzeptoid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabiospampinato%2Fzeptoid/lists"}