SpaceMIX v0.1.0 (latest)

Extensions

for bothsince protocol 1

What a SpaceMIX extension is, where to start building one as a person or as an AI agent, and the guide, reference and host API pages of the Extensions area.

The apps in SpaceMIX's sidebar (Tasks, Notes, Files, Chat, Dashboards) are extensions: sandboxed packages anyone can build, publish and install. The assistant's chats, Projects, Widgets and Settings belong to SpaceMIX itself. These pages describe the contract between an extension and SpaceMIX, exactly as the code behaves today.

Build an extension when you need a place to work in, with data of its own, actions that change things or a connection to an outside service. For an at-a-glance view of data that installed extensions already have, a widget is enough.

What an extension is

An extension has two halves, and both are required:

  • A view the user works in: a React component that runs in its own sandboxed frame.
  • Data the assistant can reach. Anything an extension shows a person, the assistant must be able to reach too. You get this by declaring collections and actions in the manifest; the host turns them into assistant tools.

An extension is a package: a manifest, one JavaScript bundle and one CSS file. Its code reaches SpaceMIX only through host from @spacemix/sdk, and the host checks every call against the permissions in the manifest. Servers install packages from the registry in SpaceMIX Hub and keep them up to date.

Where to start

If you are a person building an extension:

  1. Getting started: the folder layout, a first extension, the development loop.
  2. Giving the assistant your data: collections, actions and MCP servers.
  3. Self-contained and Writing for the model.
  4. Publishing and the Checklist.

Prefer to have the assistant write it? Use the Studio inside SpaceMIX.

If you are an AI agent building an extension: read For agents. It has the loop, how a chat gets its tools, the core's own tools, the rules that fail builds, and a link to llms-full.txt, every page in one file.

If you depend on the contract (a host builder, a reviewer, a tool author): start with Contract, which says what is stable and how it changes, and the Changelog.

The pages

Section Pages
Guide Getting started, Extensions in their own repository, Self-contained, Giving the assistant your data, Writing for the model, Notifications and events, Being found in Search, The Studio, Publishing, Checklist
Reference Manifest, Permissions, Package format, Protocol, React hooks, UI kit, Projects, Registry
Host API The host object and one page per host.* namespace, from Storage to Environment and identity

An extension that shows the team's widgets in its own view (as Dashboards and Team Chat do) uses Widgets API; the widget frame itself is in the Widgets area.

Stability labels

Reference pages carry a label:

  • stable: won't break within protocol 1 and the SDK 0.x minor line, as Contract defines.
  • experimental: may change; the page says why.
  • internal: not for extensions.

The full meanings, and the list of experimental items with their reasons, are in Stability labels.

This page as markdown · All pages as one file