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/core — defineContract, wire types, SuperLineError, transport & collection interfaces
  • @super-line/server — createSuperLineServer — implements the contract, owns rooms/topics/auth, cluster bus, collection co-writers
  • @super-line/client — createSuperLineClient — calls the contract with full inference, reconnection, collections
  • @super-line/react — createSuperLineHooks — 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.