FLUTTER ECOSYSTEM

slugid

A URL-safe base64 encoding for UUIDv4 stripped of padding. Useful when embedding short random UUIDs in URLs.

Latest version
1.1.2
30-day downloads
9.4K
Likes
48
Pub points
160

Package Overview

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

Overview

A lightweight Dart package that provides URL-safe base64 encoding for UUIDv4, removing padding to create compact, safe identifiers for use in URLs. Designed for secure, human-readable random IDs without special characters that could interfere with URL parsing. Ideal for routing, sharing links, or tracking unique resources in web and mobile applications. The encoding ensures compatibility across platforms and maintains randomness and uniqueness of UUIDv4.

Use cases
  • Embedding unique IDs in URLs
  • Generating short, readable identifiers
  • Secure link sharing
  • Tracking resources in web apps
  • Cross-platform ID generation
Key features
  • URL-safe base64 encoding
  • Padding-free output
  • UUIDv4 compatibility
  • Cross-platform support
  • Simple API for encoding/decoding
Suitable for
  • Web and mobile apps needing clean URLs
  • Applications requiring unique, non-predictable IDs
  • Developers prioritizing URL compatibility
  • Projects using UUIDs in public-facing links
  • Systems where ID length matters
Considerations
  • Not suitable for cryptographic secrets
  • Requires validation when decoding from untrusted sources
  • Limited to UUIDv4 format
  • No built-in collision detection
  • Depends on external library for full functionality
Supported platformsAndroidiOSWebmacOSWindowsLinux

Install package

flutter pub add slugid

Categories

Dependencies

Dependency list 2 items

Source repository

Related projects

No data available yet.