Globally Unique ID Generator is a Go library for generating globally unique identifiers that are compact, sortable, and safe to use directly in server-side code. It uses a MongoDB ObjectID-inspired structure with a timestamp, machine identifier, process identifier, and counter. The binary form is 12 bytes, while the string form uses lowercase base32hex encoding to create a 20-character URL-safe representation. This makes xid shorter than standard UUID strings while preserving chronological sortability. It does not require a central generator server or explicit machine and data-center configuration, which makes it convenient for distributed web services. It is well suited for database records, API resources, logs, events, and other systems that need practical unique IDs without the length and randomness tradeoffs of UUIDs.

Features

  • Globally unique ID generation
  • Compact 20-character string format
  • Sortable identifier structure
  • MongoDB ObjectID-compatible binary size
  • No central generator required
  • Go server-side library implementation

Project Samples

Project Activity

See All Activity >

Categories

Libraries

License

MIT License

Follow Globally Unique ID Generator

Globally Unique ID Generator Web Site

Other Useful Business Software
Our Free Plans just got better! | Auth0 Icon
Our Free Plans just got better! | Auth0

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your security. Auth0 now, thank yourself later.
Try free now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Globally Unique ID Generator!

Additional Project Details

Programming Language

Go

Related Categories

Go Libraries

Registered

1 day ago