Back to features Server endpoints
Remote functions
Define typed server queries and commands in workspace source.
Read the technical documentationWhat it is
Remote functions are typed server endpoints discovered from src/remotes/+<lower_snake_case>.ts. The filename owns the remote ID. Remotes
run inside the Pod runtime with facility bindings and request scope, not as ad hoc API routes
outside the platform.
When to use them
- Custom read paths that do not map cleanly to a single collection query
- Server actions that coordinate multiple collections or external systems
- Endpoints tenant apps call through the workspace SDK
For logic tied to a single record mutation, prefer hooks. For scheduled work, prefer automations.
Next feature
Access control
Decide who can see, change, and approve work, with a complete history.