FLUTTER ECOSYSTEM

xid

Xid is a globally unique id generator. Xids are small, fast to generate, sortable, compact URL-safe string with no configuration or central generator server.

Latest version
1.2.1
30-day downloads
3.9K
Likes
31
Pub points
160

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Overview

Xid is a lightweight, high-performance globally unique ID generator designed for use across multiple platforms. It produces compact, URL-safe strings that are sortable and require no configuration or central server. Ideal for distributed systems, Xid ensures uniqueness without overhead, making it suitable for databases, session tokens, and API identifiers. The package is simple to integrate via Flutter's pub system and supports all major platforms including Android, iOS, Web, macOS, Windows, and Linux.

Use cases
  • Database primary keys
  • Session identifiers
  • API request tracking
  • Distributed system coordination
  • URL-safe token generation
Key features
  • Compact and URL-safe output
  • No external dependencies
  • Sortable IDs
  • Fast generation
  • Cross-platform support
  • No configuration required
Suitable for
  • Backend services
  • Mobile apps
  • Web applications
  • Microservices
  • High-throughput systems
Considerations
  • Not cryptographically secure by default
  • Limited to UUID-like uniqueness guarantees
  • Best suited for non-sensitive identifiers
  • Does not provide randomness beyond deterministic generation
  • Not recommended for cryptographic secrets
Supported platformsAndroidiOSWebmacOSWindowsLinux

Install package

flutter pub add xid

Categories

Source repository

Related projects