Skip to content

yummies/id

Description

Fast, URL-friendly identifiers based on nanoid with curated alphabets and lengths. Use for client-generated keys, trace ids, or UI instance ids where UUID size is unnecessary. Collisions are unlikely at these lengths but still assume server-side uniqueness for persisted entities. nanoid-based generators are automatically tree-shaken if not used.

Usage

ts
import { generateId } from "yummies/id";

Released under the MIT License.