Entropy services
RandomValuesclass
Effect service that produces fresh byte arrays of an exact requested length.
ID generation
cuidvariable
Generates one CUID from the current CuidState service.
dnsUuid5variable
Derives deterministic UUID version 5 values in the standard DNS namespace.
ksuidvariable
Generates a KSUID from the current time and 16 random bytes.
nanoIdvariable
Generates a 21-character NanoId from the current RandomValues service.
oidUuid5variable
Derives deterministic UUID version 5 values in the standard OID namespace.
ulidvariable
Generates a ULID from the current millisecond time and random bytes.
urlUuid5variable
Derives deterministic UUID version 5 values in the standard URL namespace.
uuid4variable
Generates an RFC UUID version 4 from 16 fresh random bytes.
uuid5variable
Derives a deterministic UUID version 5 from a UTF-8 name and 16-byte namespace.
uuid7variable
Generates one UUID version 7 from the current Uuid7State.
x500Uuid5variable
Derives deterministic UUID version 5 values in the standard X.500 namespace.
ID schemas
Cuidvariable
Effect Schema and branded string type for 24-character CUID values.
Ksuidvariable
Effect Schema and branded string type for 27-character KSUID values.
NanoIdvariable
Effect Schema and branded string type for URL-safe Nano IDs.
Ulidvariable
Effect Schema and branded string type for canonical ULID values.
Uuid4variable
Effect Schema and branded string type for RFC UUID version 4 values.
Uuid5variable
Effect Schema and branded string type for RFC UUID version 5 values.
Uuid7variable
Effect Schema and branded string type for RFC UUID version 7 values.
ID types
CuidSeedtype-alias
The complete deterministic input used to derive one CUID.
Uuid5Namespacetype-alias
The exact 16 namespace bytes used in UUID version 5 hashing.
ID validation
isCuidvariable
Tests whether a string is a valid branded CUID.
isKsuidvariable
Tests whether a string has the KSUID encoding shape.
isNanoIdvariable
Tests whether a string has the NanoId alphabet and brandable shape.
isUlidvariable
Tests whether a string is a canonical ULID.
isUuid4variable
Tests whether a string is an RFC UUID version 4 value.
isUuid5variable
Tests whether a string is an RFC UUID version 5 value.
isUuid7variable
Tests whether a string is an RFC UUID version 7 value.
Sequence state
CuidStateclass
Process-local Effect service that supplies sequential CUID seeds.
Uuid7Seedtype-alias
The validated time, sequence, and entropy used to format one UUID version 7.
Uuid7Stateclass
Process-local Effect service that produces monotonic UUID version 7 seeds.
Services
Idsclass
Unified Effect service for every Typed ID generator.
Time services
DateTimesclass
Effect service for current epoch milliseconds and Date values.