talira

RFC 4122 and RFC 9562 UUID generator and parser for Dart and Flutter

open sourceMITfree

uuid is the UUID package for Dart and Flutter on pub.dev. It generates RFC 4122 version 1, 4 and 5 UUIDs and RFC 9562 version 6, 7 and 8 UUIDs, with an optional monotonic version 7 generator, uses a cryptographically strong random number generator on every platform, and parses and validates UUIDs, including plain 128-bit hexadecimal values without enforcing version or variant bits. It runs on the web, on servers and in Flutter apps. Yulian Kuncheff (Daegalus) maintains it.

Problems it solves

  • generate unique IDs for records in my Flutter app
  • create time-ordered UUIDv7 keys in Dart for database rows
  • make deterministic name-based UUIDs (v5) in Dart
  • parse and validate UUID strings in a Dart backend

Features

  • RFC 4122 version 1, 4 and 5 UUIDs
  • RFC 9562 version 6, 7 and 8 UUIDs
  • optional monotonic version 7 generator
  • cryptographically strong random numbers on all platforms
  • parse and validate UUIDs and generic 128-bit hex values
  • runs on web, server and Flutter