API reference › @evolu/common
Modules
| Module | Description |
|---|---|
| Array | Array helpers that help TypeScript help you. |
| Assert | Runtime assertions for invariant checking. |
| 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. |
| Identicon | Visual identicon generation from IDs. |
| 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 | Owner identity and cryptographic key derivation. |
| 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. |
| 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 | Seeded 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 types. |
| Schedule | Composable scheduling strategies. |
| Set | Set helpers. |
| Skiplist | Skiplist data structure with probabilistic level generation. |
| Sqlite | SQLite database abstraction and query execution. |
| Store | Observable state container with change notifications. |
| String | String utilities for safe value conversion. |
| Task | JavaScript-native structured concurrency. |
| Test | Test utilities for deterministic testing. |
| Time | Time representations, durations, and scheduling utilities. |
| Tracer | Minimal tracer interface for observability. |
| Type | Runtime type validation, parsing, and branded types. |
| Types | TypeScript utility types. |
| WebSocket | WebSocket with auto-reconnect. |
| Worker | Platform-agnostic Worker abstractions. |