API reference › @evolu/common

Modules

ModuleDescription
ArrayArray helpers that help TypeScript help you.
AssertRuntime assertions for invariant checking.
BigIntBigInt arithmetic and comparison utilities.
BrandA utility interface for creating branded types.
BufferBinary data handling and byte array utilities.
CacheCache implementations including LRU eviction.
CallbacksRequest-response correlation for callbacks across boundaries.
ConsolePlatform-agnostic console with structured logging.
CryptoCryptographic utilities.
EqEquality comparison functions and utilities.
ErrorError types and utilities for safe error handling.
FunctionFunction utilities including exhaustive checks and composition.
IdenticonVisual identicon generation from IDs.
local‑first/DbPlatform-agnostic Evolu DbWorker.
local‑first/ErrorEvolu error types.
local‑first/EvoluLocal-first platform.
local‑first/LocalAuthLocal authentication and owner management.
local‑first/OwnerOwner identity and cryptographic key derivation.
local‑first/ProtocolEvolu Protocol
local‑first/QueryQuery helpers, execution, and caching.
local‑first/RelayRelay server for data synchronization.
local‑first/SchemaDatabase schema definition and validation.
local‑first/SharedPlatform-agnostic Evolu SharedWorker.
local‑first/StorageEncrypted storage layer for local-first data.
local‑first/TimestampHybrid logical clock timestamps for CRDT ordering.
LookupLookup-key collections and helpers.
MicrotaskMicrotask queue utilities.
NumberNumber arithmetic, comparison, and branded numeric types.
ObjectObject utilities.
OptionOptional value container.
OrderOrdering and comparison utilities.
PlatformPlatform runtime utilities and capability abstractions.
PolyfillsPolyfills.
RandomSeeded random number generation.
RedactedSensitive value protection against accidental exposure.
RefMutable reference to an immutable value.
RefCountReference counting helpers.
RelationBidirectional relations with O(1) lookup in both directions.
ResourceConcurrency-safe helpers for efficient reuse of disposable resources.
ResultType-safe error handling with Result types.
ScheduleComposable scheduling strategies.
SetSet helpers.
SkiplistSkiplist data structure with probabilistic level generation.
SqliteSQLite database abstraction and query execution.
StoreObservable state container with change notifications.
StringString utilities for safe value conversion.
TaskJavaScript-native structured concurrency.
TestTest utilities for deterministic testing.
TimeTime representations, durations, and scheduling utilities.
TracerMinimal tracer interface for observability.
TypeRuntime type validation, parsing, and branded types.
TypesTypeScript utility types.
WebSocketWebSocket with auto-reconnect.
WorkerPlatform-agnostic Worker abstractions.