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
Go From AI Idea to AI App Fast Icon
Go From AI Idea to AI App Fast

One platform to build, fine-tune, and deploy ML models. No MLOps team required.

Access Gemini 3 and 200+ models. Build chatbots, agents, or custom models with built-in monitoring and scaling.
Try Free
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

12 hours ago