Title: Add support for generating UUIDv7s · Issue #62529 · nodejs/node · GitHub
Open Graph Title: Add support for generating UUIDv7s · Issue #62529 · nodejs/node
X Title: Add support for generating UUIDv7s · Issue #62529 · nodejs/node
Description: What is the problem this feature will solve? UUIDv7s are time-based UUIDs which can be helpful for sorting & database distribution. The standard is published here: https://datatracker.ietf.org/doc/html/rfc9562#name-uuid-version-7 Postgre...
Open Graph Description: What is the problem this feature will solve? UUIDv7s are time-based UUIDs which can be helpful for sorting & database distribution. The standard is published here: https://datatracker.ietf.org/doc/...
X Description: What is the problem this feature will solve? UUIDv7s are time-based UUIDs which can be helpful for sorting & database distribution. The standard is published here: https://datatracker.ietf.org/...
Opengraph URL: https://github.com/nodejs/node/issues/62529
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add support for generating UUIDv7s","articleBody":"### What is the problem this feature will solve?\n\nUUIDv7s are time-based UUIDs which can be helpful for sorting \u0026 database distribution. The standard is published here: https://datatracker.ietf.org/doc/html/rfc9562#name-uuid-version-7\n\nPostgres [recently shipped](https://www.postgresql.org/docs/current/functions-uuid.html) native support for UUIDv7 generation, and Bun [has a helper](https://bun.com/docs/guides/util/javascript-uuid) `Bun.randomUUIDv7();`\n\nHaving to reach for a library in order to generate non-v4 UUIDs is a bummer and adds bloat for a very common workflow.\n\n### What is the feature you are proposing to solve the problem?\n\nI'm proposing UUIDv7 generation support be included in the Crypto module. \n\nThe actual API for this could either follow Bun's path of a separate method `.createRandomUUIDv7()`, or add in a property to the [existing](https://nodejs.org/api/crypto.html#cryptorandomuuidoptions) `createRandomUUID` `options` parameter such as `version`. These are not mutually exclusive, and you could imagine the parameter \u0026 method both existing for convenience.\n\nExamples:\n\n```js\nconst {\n createRandomUUIDv7,\n createRandomUUID\n} = await import('node:crypto');\n\ncreateRandomUUIDv7();\n// =\u003e \"019d45ea-151f-780b-82a6-d097b39db62a\"\n\ncreateRandomUUID({\n version: \"v7\"\n});\n// =\u003e \"019d45ea-fc8e-7792-bfa1-ae58916be0e3\"\n```\n\n### What alternatives have you considered?\n\n_No response_","author":{"url":"https://github.com/jreidgreer","@type":"Person","name":"jreidgreer"},"datePublished":"2026-03-31T22:05:11.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/62529/node/issues/62529"}
| 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:baab6053-bc22-7420-32b5-d681b9dfb2d7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 938E:19F979:18D5CD3:22EACAA:6A4CBEBF |
| html-safe-nonce | c340223e15b8df4ec3a40c88d69874402ef7f14026ec003852b958fc9a313468 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MzhFOjE5Rjk3OToxOEQ1Q0QzOjIyRUFDQUE6NkE0Q0JFQkYiLCJ2aXNpdG9yX2lkIjoiMzc2NDY0NTMzNDczNjQ4NjA3OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | c891c80aea4bbae1cf2ea8f6afc39436b5481fcb0521725feba3ba42c5564ead |
| hovercard-subject-tag | issue:4182662507 |
| 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/nodejs/node/62529/issue_layout |
| twitter:image | https://opengraph.githubassets.com/69501954e0f78b9c59f611895f215e3c25a60674b8c11764b25528e4500e9f2c/nodejs/node/issues/62529 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/69501954e0f78b9c59f611895f215e3c25a60674b8c11764b25528e4500e9f2c/nodejs/node/issues/62529 |
| og:image:alt | What is the problem this feature will solve? UUIDv7s are time-based UUIDs which can be helpful for sorting & database distribution. The standard is published here: https://datatracker.ietf.org/doc/... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jreidgreer |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3d11bb817438277de2a940854450e83a7d32b6aeb5014e9e6b00a6423900251c |
| turbo-cache-control | no-preview |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| 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 | c03e7e569190bc89b638cdd4acb4b6c6b38a170a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width