Trellis libraries are the normal way programs connect to a Trellis deployment. They hide the transport details and expose typed surfaces for calls, events, feeds, operations, state, jobs, and service resources.

Participants, not just clients and servers

Trellis programs are participants. A participant is any program that connects to Trellis with an identity and a declared interface.

That includes:

  • services
  • browser apps and portals
  • CLIs
  • devices
  • automation agents

Some participants provide APIs. Some only call APIs. Many do both. For example, an orders service may handle Orders.Create, publish Orders.Shipped, and call an inventory service. A portal may call services and subscribe to live updates. A device may activate, connect, and publish or call only the surfaces it is allowed to use.

Language libraries

  • TypeScript libraries cover apps, services, devices, CLIs, generated SDKs, Result-style errors, and Svelte integration.
  • Rust libraries cover generated Cargo SDKs, participant facades, service provider APIs, async calls, streams, and Rustdoc.

Learn by building

Exact API reference

Use the API Reference when you need exact package exports, generated TypeScript documentation, or Rustdoc links. The guides explain the intended workflow; /api is the lookup surface for exact symbols.