Skip to content

API Reference

Start with @super-line/core — the contract is the single source of truth; everything else implements or consumes it. Packages marked (guide) are documented as hands-on guides rather than extracted API pages.

Cheatsheets

Hand-written quick lookups alongside the generated API:

Core

  • @super-line/coredefineContract, wire types, SuperLineError, transport & collection interfaces
  • @super-line/servercreateSuperLineServer — implements the contract, owns rooms/topics/auth, cluster bus, collection co-writers
  • @super-line/clientcreateSuperLineClient — calls the contract with full inference, reconnection, collections
  • @super-line/reactcreateSuperLineHooks — typed hooks over the client (requests, events, useCollection/useDoc)

Transports — the client ↔ server wire

Collections — typed, contract-declared persisted state

Adapters — server ↔ server fan-out

Plugins — contract fragments mounted on the server

Tooling

Released under the MIT License.