{"id":19560004,"url":"https://github.com/plotdb/suuid","last_synced_at":"2026-05-16T05:38:38.798Z","repository":{"id":40268824,"uuid":"267385797","full_name":"plotdb/suuid","owner":"plotdb","description":"short uuid with timestamp","archived":false,"fork":false,"pushed_at":"2023-04-13T14:54:15.000Z","size":250,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-05T14:22:17.343Z","etag":null,"topics":["uuid"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/plotdb.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"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":"2020-05-27T17:37:37.000Z","updated_at":"2022-01-21T15:35:42.000Z","dependencies_parsed_at":"2025-02-26T08:29:56.122Z","dependency_job_id":"6ff633a9-1951-4760-9ec2-1c88f471fea0","html_url":"https://github.com/plotdb/suuid","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/plotdb/suuid","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plotdb%2Fsuuid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plotdb%2Fsuuid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plotdb%2Fsuuid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plotdb%2Fsuuid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/plotdb","download_url":"https://codeload.github.com/plotdb/suuid/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plotdb%2Fsuuid/sbom","scorecard":{"id":738031,"data":{"date":"2025-08-11","repo":{"name":"github.com/plotdb/suuid","commit":"da64b55331783e8d6227b07e3927bab6ad5fa812"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.2,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v0.5.1 not signed: https://api.github.com/repos/plotdb/suuid/releases/57891747","Warn: release artifact v0.5.0 not signed: https://api.github.com/repos/plotdb/suuid/releases/57700461","Warn: release artifact v0.4.0 not signed: https://api.github.com/repos/plotdb/suuid/releases/44408844","Warn: release artifact v0.3.2 not signed: https://api.github.com/repos/plotdb/suuid/releases/37115401","Warn: release artifact v0.3.1 not signed: https://api.github.com/repos/plotdb/suuid/releases/37015486","Warn: release artifact v0.5.1 does not have provenance: https://api.github.com/repos/plotdb/suuid/releases/57891747","Warn: release artifact v0.5.0 does not have provenance: https://api.github.com/repos/plotdb/suuid/releases/57700461","Warn: release artifact v0.4.0 does not have provenance: https://api.github.com/repos/plotdb/suuid/releases/44408844","Warn: release artifact v0.3.2 does not have provenance: https://api.github.com/repos/plotdb/suuid/releases/37115401","Warn: release artifact v0.3.1 does not have provenance: https://api.github.com/repos/plotdb/suuid/releases/37015486"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":0,"reason":"23 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-qwcr-r2fm-qrc7","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-x9w5-v3q2-3rhw","Warn: Project is vulnerable to: GHSA-pxg6-pf52-xh8x","Warn: Project is vulnerable to: GHSA-434g-2637-qmqr","Warn: Project is vulnerable to: GHSA-49q7-c7j4-3p7m","Warn: Project is vulnerable to: GHSA-977x-g7h5-7qgw","Warn: Project is vulnerable to: GHSA-f7q4-pwc6-w24p","Warn: Project is vulnerable to: GHSA-fc9h-whq2-v747","Warn: Project is vulnerable to: GHSA-vjh7-7g9h-fjfh","Warn: Project is vulnerable to: GHSA-rv95-896h-c2vc","Warn: Project is vulnerable to: GHSA-qw6h-vgh9-j6wx","Warn: Project is vulnerable to: GHSA-9wv6-86v2-598j","Warn: Project is vulnerable to: GHSA-rhx6-c78j-4q9w","Warn: Project is vulnerable to: GHSA-h7cp-r72f-jxh6","Warn: Project is vulnerable to: GHSA-v62p-rq8g-8h59","Warn: Project is vulnerable to: GHSA-3965-hpx2-q597","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-m6fv-jmcg-4jfg","Warn: Project is vulnerable to: GHSA-cm22-4g7w-348p","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-22T16:29:13.545Z","repository_id":40268824,"created_at":"2025-08-22T16:29:13.546Z","updated_at":"2025-08-22T16:29:13.546Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33091928,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-16T04:41:52.686Z","status":"ssl_error","status_checked_at":"2026-05-16T04:41:52.009Z","response_time":115,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["uuid"],"created_at":"2024-11-11T05:05:32.507Z","updated_at":"2026-05-16T05:38:38.774Z","avatar_url":"https://github.com/plotdb.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# suuid\n\nshort, sortable uuid. convert uuid into base 64 string along with coded timestamp.\n\n\n\n## Usage\n\n    \u003cscript src=\"\u003cpath-to\u003e/suuid.bundle.min.js\"\u003e\u003c/script\u003e\n    \u003cscript\u003e\n      var id = suuid();\n      var ts = suuid.timestamp(id);\n      var short = suuid.encode(\"abc0123\");\n    \u003c/script\u003e\n\nsample output ( try with `test/gen.ls` ):\n\n    generated suuid: OTeyNTN4r9fi49Wc5M.AsIMZT0NCe4\n    timestamp: 1611282605846 ( Fri Jan 22 2021 10:30:05 GMT+0800 (Taipei Standard Time) )\n\n\n## API\n\n - `suuid(opt)`: randomly return a suuid if `opt` is omitted. otherwise, `opt` can be:\n   - a `base16` string: return encoded corresponding string.\n   - an object `{id, timestamp}`: return an encoded `id` prefix with timestamp, if `timestamp` is true.\n     - `id`: a base16 string to encode.\n     - `timestamp`: true if prefix timestamp before encoded id. default true.\n - `suuid.timestamp(id)`: get timestamp ( in epoch unix timestamp ) from given suuid\n - `suuid.encode(s)`: simply encode a `base16` string to `base64` string ( with our charmap, see below )\n\n\n## Spec\n\n`suuid` does following things:\n\n - prefix uuid(v4) with epoch unix timestamp\n - remove separator ( dash ) in uuid.\n - encodes values from hexadecimal to 64-based string with following charmap: ( url-safe chars according to [the latest uri spec](https://tools.ietf.org/html/rfc3986)\n\n    `123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0_.`\n\n\nwhile length of codes corresponding to uuid part are fixed, length of the timestamp code varys. The timestamp bits will be:\n\n - 7 bytes long before 2109AD\n - 8 bytes long before 10895AD\n - 9 bytes long before 573202AD\n\nand the length of remaining part ( coded uuid, for randomness ) will be always 23 bytes long. thus, to sort suuid before 573202AD, simply add padding zeros before id to make it 32 bytes long.\n\n\n## Comparison\n\n - [uniqid](https://github.com/adamhalasz/uniqid)\n   - 18 bytes\n   - no timestamp\n\n - [ulid](https://github.com/ulid/spec)\n   - 48-bit timestamp + 80-bit entropy\n   - base32 encoding, fixed length ( 26 character string. )\n     - avoiding similar chars ( like `1IiJj` ) and is case insensitive.\n   - timestamped ( 1ms precision )\n     - overflow after 10889AD\n\n - [ksuid](https://github.com/segmentio/ksuid)\n   - 32-bit timestamp + 128-bit entropy\n   - base62 encoding ( `0-9a-zA-Z` ), fixed length ( 27 characters string. )\n   - timestamped ( 1s precision )\n     - offset to start from `2014-03-05`\n     - overflow after 2150AD\n\n - [@plotdb/suuid](https://github.com/plotdb/suuid)\n   - varied length timestamp ( 42-bit+ ) + 128-bit entropy\n   - base64 encoding ( `0-9a-zA-Z._` ), varied length ( 30 characters + )\n   - timestamped ( 1ms precision )\n     - unix epoch timestamp ( since `1970-01-01` )\n\n - [uuid v6 proposal](http://gh.peabody.io/uuidv6/)\n   - TBD\n   - try to add timestamp in uuid.\n   - just a draft, and was expired.\n   - [Github Repo](https://github.com/uuid6/uuid6-ietf-draft)\n\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplotdb%2Fsuuid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fplotdb%2Fsuuid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplotdb%2Fsuuid/lists"}