Title: Add option to generate UUIDv7 compatible ULIDs · Issue #122 · ulid/javascript · GitHub
Open Graph Title: Add option to generate UUIDv7 compatible ULIDs · Issue #122 · ulid/javascript
X Title: Add option to generate UUIDv7 compatible ULIDs · Issue #122 · ulid/javascript
Description: Could you add an option to generate UUIDv7 compatible ULIDs as well. You already have the UUID encoding and decoding functions, which generate invalid UUIDs. To make sure the UUIDs are actually interoperable, it would be good to have UUI...
Open Graph Description: Could you add an option to generate UUIDv7 compatible ULIDs as well. You already have the UUID encoding and decoding functions, which generate invalid UUIDs. To make sure the UUIDs are actually int...
X Description: Could you add an option to generate UUIDv7 compatible ULIDs as well. You already have the UUID encoding and decoding functions, which generate invalid UUIDs. To make sure the UUIDs are actually int...
Opengraph URL: https://github.com/ulid/javascript/issues/122
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add option to generate UUIDv7 compatible ULIDs","articleBody":"Could you add an option to generate UUIDv7 compatible ULIDs as well. You already have the UUID encoding and decoding functions, which generate invalid UUIDs. To make sure the UUIDs are actually interoperable, it would be good to have UUIDv7 compatible ULID generation functions.\n\nThe only thing it needs is making sure in the random portion you set a few bits. Here's external example code, but it is of course easier when generating the ULID.\n\n```javascript\n const bytes = decode(ulid());\n bytes[6] = (bytes[6] \u0026 0x0f) | 0x70;\n bytes[8] = (bytes[8] \u0026 0x3f) | 0x80;\n return encode(bytes);\n```\n\nIt will remove 6 bits of entropy, but the effect of that should be minor.","author":{"url":"https://github.com/nakedible-p","@type":"Person","name":"nakedible-p"},"datePublished":"2025-07-07T13:46:53.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/122/javascript/issues/122"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:763fca34-2cd8-b6ca-a2b4-246d44e3e3d6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B794:363CE5:5B9AC:72BD3:698E67C6 |
| html-safe-nonce | bd795397ee486492cd16b391c1c50211e6f9273d663063ebfd74e93edfaea49b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNzk0OjM2M0NFNTo1QjlBQzo3MkJEMzo2OThFNjdDNiIsInZpc2l0b3JfaWQiOiIyMTg4NDkwODg5NDExNTg1OTkwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 03db1150c164bcbfbd6e614e8ac894a4a59b948d691081d70ed6f997bb5285ef |
| hovercard-subject-tag | issue:3209115686 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/ulid/javascript/122/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5609b593cb7a0d8f96c4a67d448634b76439851acbb172ef45c77dd3590042e0/ulid/javascript/issues/122 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5609b593cb7a0d8f96c4a67d448634b76439851acbb172ef45c77dd3590042e0/ulid/javascript/issues/122 |
| og:image:alt | Could you add an option to generate UUIDv7 compatible ULIDs as well. You already have the UUID encoding and decoding functions, which generate invalid UUIDs. To make sure the UUIDs are actually int... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | nakedible-p |
| hostname | github.com |
| expected-hostname | github.com |
| None | 666e30cc1de8ebdf458084bf731e95deba4f074a5008f91b50803aa9a71e3725 |
| turbo-cache-control | no-preview |
| go-import | github.com/ulid/javascript git https://github.com/ulid/javascript.git |
| octolytics-dimension-user_id | 33265518 |
| octolytics-dimension-user_login | ulid |
| octolytics-dimension-repository_id | 61051155 |
| octolytics-dimension-repository_nwo | ulid/javascript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 61051155 |
| octolytics-dimension-repository_network_root_nwo | ulid/javascript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | c5daa44975c44e187dd9ea0d761c37973489d508 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width