Skip to content

API Reference

The reference is generated from the public TypeScript entry points on every documentation build. Choose a package below, or jump directly to one of the most commonly used APIs.

Packages

PackageReferencePurpose
@lsync/definitionsBrowse definitionsShared collection schemas, keys, child collections, and API contracts.
@lsync/serverBrowse server APIsDurable Object storage, synchronization, access control, and Worker handlers.
@lsync/server/clientBrowse shared client typesShared contracts for custom clients and server integrations.
@lsync/clientBrowse client APIsTanStack DB collection adapters, subscriptions, and typed API methods.
@lsync/transportBrowse transport APIsWire contracts, message schemas, and serializable read expressions.

Common Entry Points

APIPackageUse
defineCollections()@lsync/definitionsDefine a shared collection and API contract.
CollectionShardDurableObject@lsync/serverHost collection storage, history, subscriptions, and APIs.
createWorkerHandler()@lsync/serverRoute Worker requests to the correct Durable Object.
collectionTypesFrom()@lsync/clientCreate typed TanStack DB collection managers from the shared definition.
eq()@lsync/serverBuild serializable read and access expressions.
apiCallSchema@lsync/transportValidate API-call messages at the transport boundary.

The generated reference has its own package navigation and symbol search. Return to this page when you want the public package overview.