Developer guide
Muse Spaces, sites, and persistence: what developers should separate
Separate Muse Spaces, embedded widgets, and hosted sites, then decide which code, settings, and records need to survive.
Draft preview — this article has not been published.
By ELFUpdated Evidence reviewed
When someone asks for a “Muse site,” first identify the experience they mean: an experience inside Muse, a widget inside a conversation, or a separately hosted web application. These may reuse the same React views, but they should not inherit one another's deployment and storage assumptions.
Public documentation reviewed November 7, 2026. This guide explains product terminology and our recommended design boundaries. It does not certify a public Muse Spaces deployment SDK.
What Meta has announced about Spaces
Meta introduced Spaces on November 6, 2026 as custom experiences created inside Muse by describing an idea. Its examples include trackers, games, and planning boards. Users can adjust a Space over time, put it in the sidebar or main tabs, hide it, and schedule when it appears. The announcement describes remembered edits and connected-app information that updates in the background. Sharing and collaboration are described as areas Meta is exploring. Read Meta's Spaces announcement.
The announcement does not specify a React package format, a JavaScript state bridge, an export format, or a transaction protocol. We therefore do not infer that an observed chat-widget interface is also the Spaces interface. A product promise such as “come back to your planner” is useful evidence about the experience; it is insufficient evidence for implementing an SDK.
Use precise names in your architecture
In this guide, Muse Space means the product experience described by Meta. Hatch widget means the experimental embedded surface discussed in our Hatch guide. Hosted site means an application with its own deployment and URL, regardless of which agent helped build it.
| Question | Why it changes implementation |
|---|---|
| Where will the user open it? | Determines the entry point, layout, navigation, and host bridge. |
| Who owns the saved records? | Determines the authority, account scope, and authorization. |
| What happens when the view is recreated? | Determines restoration and initialization rules. |
| Can two clients edit together? | Determines whether revisions, conflicts, or collaborative operations are required. |
| Can it contact a backend? | Determines whether durable storage can be connected from that surface. |
Treat the phrase “Muse sites” as an intake label until those questions are answered. Avoid naming a package muse-sites-sdk on the strength of an assumed contract.
Persistence has several different objects
Our recommended design names each lifetime explicitly:
| Object | Example | Appropriate evidence that it survives |
|---|---|---|
| Source code | The React component and its dependencies | A committed source version can be retrieved. |
| Rendered artifact | A particular widget HTML bundle | The exact artifact can be restored or redeployed. |
| View settings | Selected tab, sort order, open item | The host or application restores those values. |
| Business record | A task, expense, or saved plan | An authorized read returns the committed record. |
| Shared update | Another person's task edit | A second client observes the accepted revision. |
These are separate acceptance checks. Saving the source of a tracker does not establish that its entries are saved. OpenAI makes the same practical distinction in its site creation guidance: a site that needs to remember user data needs storage configured for that purpose. The broader design principle applies regardless of host.
Start with the promise the interface makes
For a temporary calculator, “values reset when you reopen this example” may be a perfectly useful contract. For a personal planner, the contract may be “accepted edits are restored when you return.” For a shared board, users may expect records to survive device changes and conflicting edits.
Write that promise before choosing a state library. Then select the narrowest supported implementation that satisfies it. Do not let a convenient setState method decide how much durability the product claims.
A useful application-level save vocabulary is:
- Local: the current view has the edit.
- Saving: a persistence operation is pending.
- Saved: the documented authority acknowledged the operation.
- Needs attention: an error or conflict requires a decision.
Some hosts may expose no durable acknowledgement. In that case, choose wording that accurately describes the observable outcome, such as “updated in this view” or “state handed to the host.” Do not display a stronger guarantee because a JavaScript function returned without throwing.
Background refresh and shared editing need different designs
A planner that periodically reads a calendar needs a refresh policy, stale-data indicator, and rules about which fields are imported. A board that accepts edits from several people needs conflict rules and identity-aware authorization. Combining those features can add a third problem: a background import overwriting an intentional user edit.
Keep imported facts separate from user-authored annotations. For example, preserve a calendar event's source ID and fetched timestamp while storing the user's checklist notes in their own record. A refresh can replace imported fields without discarding notes. This is our recommended data model, not a claim about Muse's implementation.
Reuse a view through a small host boundary
A planning-board component can receive items, onMove, onRename, and saveStatus in every environment. The controller chooses how to load records and submit commands. The host adapter supplies navigation, theme, and available integration capabilities.
This separation gives you useful partial compatibility. An offline example can demonstrate arranging cards. A supported embedded adapter can restore personal preferences. A hosted application can add authenticated records. Each surface presents only the actions it can carry out.
Do not automatically turn every unavailable action into a disabled button. For a compact preview, omit account management entirely and link to the full application when a supported link mechanism exists. For an editor that requires persistence, explain the missing capability before accepting edits.
For the equivalent OpenAI surfaces, read Visualizations, MCP Apps, and Sites. For the shared component contract, continue with portable React components and state.