{"id":18261839,"url":"https://github.com/stripedpajamas/zig-ulid","last_synced_at":"2026-01-28T07:32:29.953Z","repository":{"id":89784544,"uuid":"293960131","full_name":"stripedpajamas/zig-ulid","owner":"stripedpajamas","description":"ULID generation in Zig","archived":false,"fork":false,"pushed_at":"2020-09-11T00:44:19.000Z","size":11,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-10T08:14:11.957Z","etag":null,"topics":["generator","ulid","uuid","zig"],"latest_commit_sha":null,"homepage":"","language":"Zig","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/stripedpajamas.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":"2020-09-09T00:31:26.000Z","updated_at":"2022-02-04T08:15:17.000Z","dependencies_parsed_at":"2024-06-15T09:02:44.695Z","dependency_job_id":null,"html_url":"https://github.com/stripedpajamas/zig-ulid","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/stripedpajamas%2Fzig-ulid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stripedpajamas%2Fzig-ulid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stripedpajamas%2Fzig-ulid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stripedpajamas%2Fzig-ulid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stripedpajamas","download_url":"https://codeload.github.com/stripedpajamas/zig-ulid/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248492986,"owners_count":21113161,"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":["generator","ulid","uuid","zig"],"created_at":"2024-11-05T11:05:38.861Z","updated_at":"2026-01-28T07:32:29.927Z","avatar_url":"https://github.com/stripedpajamas.png","language":"Zig","funding_links":[],"categories":[],"sub_categories":[],"readme":"# zig-ulid\n\nULIDs are\n- 128-bit compatibility with UUID 1.21e+24 unique ULIDs per millisecond\n    Lexicographically sortable!\n- Canonically encoded as a 26 character string, as opposed to the 36 character UUID\n- Uses Crockford's base32 for better efficiency and readability (5 bits per character)\n- Case insensitive\n- No special characters (URL safe)\n- Monotonic sort order (correctly detects and handles the same millisecond)\n\nSee the full spec [here](https://github.com/ulid/spec).\n\nThis repo intends to implement the spec in Zig.\n\n## TODO\n- [ ] Monotonic ULID support\n\n\n## Use\nSee [`example.zig`](https://github.com/stripedpajamas/zig-ulid/blob/main/example.zig) for usage examples.\n\n```zig\nconst Ulid = @import(\"./ulid.zig\");\n\n// with passed in allocator; caller owns returned bytes\nvar ulid = try Ulid.ulidAllocNow(allocator);\n// returns something like 01EHWMX9NA2P3ERBR5ESV5E3QP\n\n// with buffer passed in\nvar ulid: [26]u8 = undefined;\ntry Ulid.ulidNow(\u0026ulid);\n\n// custom seed time with allocator\nvar ulid = try Ulid.ulidAlloc(allocator, 273);\n// returns something like 000000008HMKR2RRN4VY1D3X2H\n\n// custom seed time without allocator\ntry Ulid.ulid(\u0026ulid, 273);\n```\n\n## License\nMIT\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstripedpajamas%2Fzig-ulid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstripedpajamas%2Fzig-ulid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstripedpajamas%2Fzig-ulid/lists"}