API reference › @evolu/common
Modules
| Module | Description |
|---|---|
| Array | Array helpers that help TypeScript help you. |
| Assert | Runtime assertions for invariants and value checks. |
| BigInt | BigInt arithmetic and comparison utilities. |
| Brand | A utility interface for creating branded types. |
| Buffer | Binary data handling and byte array utilities. |
| Cache | Cache implementations including LRU eviction. |
| Callbacks | Request-response correlation for callbacks across boundaries. |
| Console | Platform-agnostic console with structured logging. |
| Crypto | Cryptographic utilities. |
| Eq | Equality comparison functions and utilities. |
| Error | Error types and utilities for safe error handling. |
| Function | Function utilities including exhaustive checks and composition. |
| Http | Task-aware HTTP helpers. |
| Identicon | Visual identicon generation from IDs. |
| LeakDetector | Development-time detection of leaked handles via garbage collection. |
| local‑first/Db | Platform-agnostic Evolu DbWorker. |
| local‑first/Error | Evolu error types. |
| local‑first/Evolu | Local-first platform. |
| local‑first/LocalAuth | Local authentication and owner management. |
| local‑first/Owner | Cryptographic identities that define ownership, encryption, sync, and deletion boundaries for Evolu data. |
| local‑first/Protocol | Evolu Protocol |
| local‑first/Query | Query helpers, execution, and caching. |
| local‑first/Relay | Relay server for data synchronization. |
| local‑first/Schema | Database schema definition and validation. |
| local‑first/Shared | Platform-agnostic Evolu SharedWorker. |
| local‑first/Storage | Encrypted storage layer for local-first data. |
| local‑first/Timestamp | Hybrid logical clock timestamps for CRDT ordering. |
| LockManager | LockManager helpers. |
| Lookup | Lookup-key collections and helpers. |
| Microtask | Microtask queue utilities. |
| Number | Number arithmetic, comparison, and branded numeric types. |
| Object | Object utilities. |
| Option | Optional value container. |
| Order | Ordering and comparison utilities. |
| Platform | Platform runtime utilities and capability abstractions. |
| Polyfills | Polyfills. |
| Random | Random number generation. |
| Redacted | Sensitive value protection against accidental exposure. |
| Ref | Mutable reference to an immutable value. |
| RefCount | Reference counting helpers. |
| Relation | Bidirectional relations with O(1) lookup in both directions. |
| Resource | Concurrency-safe helpers for efficient reuse of disposable resources. |
| Result | Type-safe error handling with Result. |
| Schedule | Composable scheduling strategies. |
| Set | Set helpers. |
| Sqlite | SQLite database abstraction and query execution. |
| StackTrace | JavaScript stack trace parsing utilities. |
| Store | Observable state container with change notifications. |
| String | String utilities. |
| Task | JavaScript-native structured concurrency. |
| Test | Cross-module test utilities for deterministic testing. |
| Time | Time representations, durations, and scheduling utilities. |
| Type | Runtime validation with precise TypeScript types and structured errors. |
| Types | TypeScript utility types. |
| WebSocket | WebSocket with auto-reconnect. |
| Worker | Typed, disposable worker and messaging primitives. |