id128
uulid.go
id128 | uulid.go | |
---|---|---|
1 | 2 | |
301 | 31 | |
- | - | |
3.8 | 2.6 | |
about 3 years ago | 6 months ago | |
JavaScript | Go | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
id128
-
Timeflake: 128-bit, roughly-ordered, URL-safe UUIDs
https://github.com/ulid/spec isn't timeflake, but is a good spec, and there are implementations in multiple languages. there are 2 listed for js.
https://github.com/aarondcohen/id128 and https://github.com/ulid/javascript
uulid.go
-
New UUID Formats – IETF Draft
For those interested in time based UUIDs, I've written libraries in Ruby and Go to move quickly between them:
https://github.com/sudhirj/uulid.go
-
Timeflake: 128-bit, roughly-ordered, URL-safe UUIDs
There’s a spec called ULID that’s pretty much this with default base32 encoding
https://github.com/ulid/spec
I’ve also worked on a UUID-ULID bridge for Go
https://github.com/sudhirj/uulid.go
And seeing as this is just 128 bits it’s quite easy to move seamlessly between formats and representations.
I’ve found this concept especially useful in nosql stores like DynamoDB, where using a ULID primary key makes objects time sortable automatically. It’s also quite easy to query for items by zeroing out the random component and setting only the time stamp bytes.
What are some alternatives?
Pomelo.EntityFrameworkCore.MySql - Entity Framework Core provider for MySQL and MariaDB built on top of MySqlConnector
timeflake - Timeflake is a 128-bit, roughly-ordered, URL-safe UUID.
ulid-mssql - Implementation of ULID generator For Microsoft SQL Server
sequential-uuids - generator of sequential UUIDs
umbrella - ⛱ Broadly scoped ecosystem & mono-repository of 192 TypeScript projects (and 157 examples) for general purpose, functional, data driven development
Ulid - Fast .NET C# Implementation of ULID for .NET and Unity.
ksuid - K-Sortable Globally Unique IDs
spec - The canonical spec for ulid
shortuuid.rb - Convert UUIDs & numbers into space efficient and URL-safe Base62 strings, or any other alphabet.
uuid6-ietf-draft - Next Generation UUID Formats