{"id":20535072,"url":"https://github.com/jhuntdev/uuidv9-go","last_synced_at":"2026-05-26T23:02:15.012Z","repository":{"id":258268452,"uuid":"874120904","full_name":"jhuntdev/uuidv9-go","owner":"jhuntdev","description":"Fast, lightweight, zero-dependency Go implementation of UUID version 9","archived":false,"fork":false,"pushed_at":"2026-05-17T16:48:21.000Z","size":29,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-05-17T18:50:58.059Z","etag":null,"topics":["go","module","uuid","v9"],"latest_commit_sha":null,"homepage":"https://uuidv9.jhunt.dev","language":"Go","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/jhuntdev.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-10-17T09:37:04.000Z","updated_at":"2026-05-17T16:48:13.000Z","dependencies_parsed_at":"2025-10-26T09:15:54.198Z","dependency_job_id":"de3b7b67-dedd-48f5-b934-8026948c622d","html_url":"https://github.com/jhuntdev/uuidv9-go","commit_stats":null,"previous_names":["jhuntdev/uuidv9-go"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/jhuntdev/uuidv9-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhuntdev%2Fuuidv9-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhuntdev%2Fuuidv9-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhuntdev%2Fuuidv9-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhuntdev%2Fuuidv9-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jhuntdev","download_url":"https://codeload.github.com/jhuntdev/uuidv9-go/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhuntdev%2Fuuidv9-go/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33542350,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"ssl_error","status_checked_at":"2026-05-26T15:22:15.568Z","response_time":63,"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":["go","module","uuid","v9"],"created_at":"2024-11-16T00:29:13.202Z","updated_at":"2026-05-26T23:02:15.006Z","avatar_url":"https://github.com/jhuntdev.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# UUID v9\n\n## Fast, lightweight, zero-dependency Go implementation of UUID version 9\n\nThe v9 UUID supports both sequential (time-based) and non-sequential (random) UUIDs with an optional prefix of up to four bytes, an optional checksum, and sufficient randomness to avoid collisions. It uses the UNIX timestamp for sequential UUIDs and CRC-8 for checksums. The version can be added if desired, but is omitted by default.\n\nTo learn more about UUID v9, please visit the website: https://uuidv9.jhunt.dev\n\n## Installation\n\nInstall UUID v9 from Go Packages.\n\n```bash\ngo get github.com/jhuntdev/uuid-v9\n```\n\n## Usage\n\n```go\npackage main\n\nimport {\n\t\"github.com/jhuntdev/uuid-v9\"\n}\n\nfunc main() {\n\torderedID := UUIDv9()\n\tprefixedOrderedID := UUIDv9(Option{Prefix: \"a1b2c3d4\"})\n\tunorderedID := UUIDv9(Option{Timestamp: false})\n\tprefixedUnorderedID := UUIDv9(Option{Prefix: \"a1b2c3d4\", Timestamp: false})\n\torderedIDWithChecksum := UUIDv9(Option{Checksum: true})\n\torderedIDWithVersion := UUIDv9(Option{Version: true})\n\torderedIDWithLegacyMode := UUIDv9(Option{Legacy: true})\n\n\tisValid := isValidUUIDv9(orderedID)\n\tisValidWithChecksum := isValidUUIDv9(orderedIDWithChecksum, Option{Checksum: true})\n\tisValidWithVersion := isValidUUIDv9(orderedIDWithVersion, Option{Version: true})\n\n\t// orderedId = uuidv9()\n\t// prefixedOrderedId = uuidv9({ prefix: 'a1b2c3d4' })\n\t// unorderedId = uuidv9({ timestamp: false })\n\t// prefixedUnorderedId = uuidv9({ prefix: 'a1b2c3d4', timestamp: false })\n\t// orderedIdWithChecksum = uuidv9({ checksum: true })\n\t// orderedIdWithVersion = uuidv9({ version: true })\n\t// orderedIdWithLegacyMode = uuidv9({ legacy: true })\n\n\t// isValid = isValidUUIDv9(orderedId)\n\t// isValidWithChecksum = isValidUUIDv9(orderedIdWithChecksum, { checksum: true })\n\t// isValidWithVersion = isValidUUIDv9(orderedIdWithVersion, { version: true })\n}\n```\n\n## Backward Compatibility\n\nSome UUID validators check for specific features of v1 or v4 UUIDs. This causes some valid v9 UUIDs to appear invalid. Three possible workarounds are:\n\n1) Use the built-in validator (recommended)\n2) Use legacy mode*\n3) Bypass the validator (not recommended)\n\n_*Legacy mode adds version and variant digits to immitate v1 or v4 UUIDs depending on the presence of a timestamp._\n\n## License\n\nThis project is licensed under the [MIT License](LICENSE).\n\n\u003c\u003e\u003c","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjhuntdev%2Fuuidv9-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjhuntdev%2Fuuidv9-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjhuntdev%2Fuuidv9-go/lists"}