API reference › @evolu/common

Modules

ModuleDescription
ArrayArray helpers that help TypeScript help you.
AssertPlatform-agnostic assertions for invariants, examples, and tests.
BigIntBigInt arithmetic and comparison utilities.
BrandA utility interface for creating branded types.
BytesBytes: Uint8Array helpers, the Buffer codec, and byte sizes.
CacheCache implementations including LRU eviction.
CallbacksRequest-response correlation for callbacks across boundaries.
ConfigStrict configuration Types with explicit application policy.
ConsolePlatform-agnostic console with structured logging.
CryptoCryptographic utilities.
EqEquality comparison functions and utilities.
ErrorError types and utilities for safe error handling.
FsFile system operations for Tasks.
FunctionFunction utilities including exhaustive checks and composition.
HttpTask-aware HTTP helpers.
IdenticonVisual identicon generation from IDs.
LeakDetectorDevelopment-time detection of leaked handles via garbage collection.
local‑first/DbPlatform-agnostic Evolu DbWorker.
local‑first/ErrorEvolu error types.
local‑first/EvoluLocal-first platform.
local‑first/OwnerCryptographic identities that define ownership, encryption, sync, and deletion boundaries for Evolu data.
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.
LockManagerLockManager helpers.
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.
RandomRandom 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.
ScheduleComposable scheduling strategies.
SetSet helpers.
SqliteSQLite database abstraction and query execution.
StackTraceJavaScript stack trace parsing utilities.
StoreObservable state container with change notifications.
StringString utilities.
TaskJavaScript-native structured concurrency.
TestCross-module test utilities for deterministic testing.
TimeTime representations, durations, and scheduling utilities.
TypeRuntime validation with precise TypeScript types and structured errors.
TypesTypeScript utility types.
WebSocketWebSocket with auto-reconnect.
WorkerTyped, disposable worker and messaging primitives.