Publish an app as a website
Prepare a Matrix app for a public matrix.page URL or private one-time links, with optional visitor forms and owner publishing controls.
Maintained by the Matrix OS team. Product instructions are updated with the supported workflow.
Available now
Matrix.page publishing is available from a current Matrix runtime. If Publish app reports that publishing is unavailable, update your Matrix computer before retrying.
Publish a Matrix app as a public website or share it privately through one-time browser links. Each app gets a permanent address under matrix.page, followed by a long random ID. Public apps can also use a friendly path such as matrix.page/my-launch.
Visiting matrix.page without an app path takes you to the Matrix website at matrix-os.com. Your published app links open the app directly.
This deploys your app for visitors. It is separate from an Apps gallery listing or letting someone install a copy.
Owner publishing controls are available on Web Canvas, Web Desktop, Electron Desktop, and Web Mobile. Scoped Chat agents can prepare public apps, but publishing and managing sites from those agents is deferred; use Publish app to review and deploy.
Prepare your app
Ask Matrix to build an app for public visitors and describe the content and forms you want:
Build our launch guide as a Matrix app. Include how to support Matrix, links to our posts and channels, and a section for discount codes. It is an information website with no forms.
Forms are optional. An information app can publish its production build without a publishing declaration. Outbound website links open in a new tab, and section links stay within the guide. If you want visitor input later, declare the public forms described below.
The first release supports personal React/Vite apps with a checked production build. Apps that depend on your private Matrix database, connected services, or AI bridge need a public version. Visitors receive the public information and named forms declared by the app. They do not receive your private app data or credentials.
Publish and update
- Open the app on Web Canvas, Web Desktop, Electron Desktop, or Web Mobile.
- Choose Publish in the app window.
- Set a title, description, optional Friendly path, and Access mode. Choose Public for a normal website or Private — one-time links for controlled sharing.
- Choose Review deployment. Review the declared public data and form fields, and check the app in its window. This preview uses your private runtime; it is not a public sandbox preview.
- Confirm I reviewed this deployment, then choose Publish app.
- Test the published app as a visitor. For public access, copy the permanent or friendly URL. For private access, create a one-time link as described below.
Draft edits stay private until you choose Publish update. A failed build or deployment preserves the existing live version. Save URL and details changes the title, description, friendly path, and access mode without rebuilding the app.
The permanent ID stays the same. Previously used friendly paths continue to point to your site and cannot be reassigned to another owner. This prevents old shared links from pointing to someone else's app.
Private one-time links
Choose Private — one-time links, publish or save the access change, then choose Create one-time link. Copy the generated URL immediately: Matrix shows the full URL only once and never includes its secret in the owner link list.
The recipient sees a generic Matrix sharing screen first. They must choose Open shared app before the link is claimed, so an email or chat preview scanner cannot consume it automatically. A successful claim gives that browser access for 30 days. Refreshing works in the same browser, but opening the original link in another browser or profile does not.
Unclaimed links expire after 7 days. You can create multiple independent links, see whether each is Unclaimed, Claimed, or Expired, and revoke any link from the publishing panel. A site can keep up to 50 links; revoke old links to free capacity. Revocation blocks new page, app-file, and form requests, though it cannot erase files a browser already downloaded.
Private links do not require a Matrix or Clerk account and do not invite by email. If the recipient clears cookies or switches browsers, create a new link. Switching the site to Public or unpublishing it revokes every private link and browser session. Switching back to private does not reactivate them.
Private sharing exposes the same reviewed public build, declared window.MatrixOS.site.data, and declared forms as public Matrix.page publishing. It does not expose your private runtime, app database, credentials, Matrix tools, or identity information about the visitor.
Forms and submissions
Public forms accept only the fields declared by the app. Visitors receive a confirmation when their submission has been saved. Your Matrix computer must be online to save a submission. If it is offline, the website still loads, but forms show an unavailable response. There is no offline submission queue.
Choose Visitor submissions in the publishing panel to read saved responses. They live in your owner-controlled PostgreSQL database. Deploying an update, restoring a version, or unpublishing does not erase them.
Use Next page to browse more records, Export this page to download the current page as JSON, and Delete to erase a response. Exports are paginated; export each page if you need all records. Deletion retains an internal duplicate-prevention marker, so a retry cannot recreate the erased response.
Restore or unpublish
Open Version history and choose Restore version to make an earlier deployment live again, including its declared public data and forms. Saved submissions remain unchanged.
Choose Unpublish, then confirm, to disable the permanent URL, friendly paths, app files, and new form submissions. A request admitted before unpublishing can still finish. You can publish the app again using the same permanent ID.
Developer configuration
Set Vite's base to "./" so built assets work beneath the publication path. Keep the output directory separate from source and disable source maps. Publishing rejects source files, environment files, symbolic links, unsafe paths, and unsupported assets. Builds are limited to 200 files and 10 MiB. Version history is capped at 50 deployments in the first release.
If your app needs public bridge data or visitor forms, add a publishing declaration to matrix.json:
{
"publishing": {
"data": { "event": "Our launch" },
"forms": [{
"id": "rsvp",
"title": "Launch RSVP",
"fields": {
"email": {
"type": "email",
"required": true
}
}
}]
}
}Inside the public app, read window.MatrixOS.site.data and submit through the public bridge:
const requestId = crypto.randomUUID();
await window.MatrixOS.site.submit(
'rsvp',
{ email: 'visitor@example.com' },
{ idempotencyKey: requestId }
);Reuse the same key when retrying the same submission. Each new submission should have a new key. Supported field types are text, email, number, and boolean, with required fields and bounded limits. Forms have up to 30 fields, with up to 10 forms per app. Visitor field payloads are limited to 16 KiB and are subject to rate and storage limits.
Public apps run in an isolated frame. Direct network requests, service workers, shared browser storage, and private Matrix bridges are unavailable. Use the declared public data and form bridge; arbitrary backend applications are outside this release.
Current limits
Native Mobile currently provides app previews without owner publishing controls. Manage publications from Web Canvas, Web Desktop, Electron Desktop, or Web Mobile.
Customer-owned domains and custom subdomains are planned for later. The first release uses paths under matrix.page.
How is this guide?
Build a collaborative app
Create a team app or adapt an existing app, check readiness, and share the owner's live records with an organization.
Matrix App Gallery
Learn how the planned curated Matrix App Gallery differs from your installed Apps, including discovery, app ownership, and current availability.
