Pick a random element from an array. Returns null if the array is empty.
Generate random integers within a specified range. Simple wrapper around Math.random() with inclusive bounds.
Generate various types of unique IDs with prefixes. Supports sorted IDs with timestamps, unsorted random IDs, key IDs with checksums, and Snowflake-style distributed IDs.
An alias package for `crypto.randomBytes` in Node.js and/or browsers
A small implementation of `crypto.getRandomValues` for React Native. This is useful to polyfill for libraries like [uuid](https://www.npmjs.com/package/uuid) that depend on it.
Generate a random integer
Get consecutively unique elements from an array
[](https://discord.gg/poimandres)
Rope-based persistent sequence type
Generate consistent, unique shadow IDs based on input data. Combines SHA256 hashing, base62 encoding, and timestamp extraction for deterministic ID generation.
Comprehensive validation framework with composable validators and modifiers. Define schemas with full TypeScript support and get detailed error messages.
Generate URL-friendly slugs with collision detection. Automatically handles uniqueness and provides short ID generation with random padding.
A fast implementation of a fisher-yates shuffle that does not mutate the source array.
RFC9562 UUIDs
Get an available port
String case conversion utilities supporting multiple formats. Convert between camelCase, PascalCase, snake_case, kebab-case, and more.
Memoization decorator that caches function results based on arguments. Returns cached results for subsequent calls with the same arguments.
Type-safe environment variable validation. Ensure required environment variables exist and have proper types at application startup.
Random numbers.
Cryptographic key pairs for the XRP Ledger
Type-safe RPC server for handling remote procedure calls. Provides automatic validation, error handling, execution context tracking, and Sentry integration.
Generate random numbers from various distributions.
Opinionated testing utilities for Vitest configuration, environment loading, Prisma test databases, factories, and HTTP helpers.
Base62 encoding and decoding utility for converting strings and byte arrays into URL-safe, compact representations. Useful for shortening IDs, creating readable tokens, or encoding binary data.