Skip to content

feat(examples): add self-hosted MiniApps with local persistence - #1304

Draft
AbhinRustagi wants to merge 4 commits into
codex/react-ui-dashboard-libraryfrom
codex/miniapps-example
Draft

AbhinRustagi wants to merge 4 commits into
codex/react-ui-dashboard-libraryfrom
codex/miniapps-example

Conversation

@AbhinRustagi

Copy link
Copy Markdown
Contributor

Users can build interactive dashboard MiniApps inside a self-hosted agent, reopen them from inline previews or the artifact browser, and edit a selected version without losing the previous completed result.

This example extends the OpenUI self-hosted Next.js template with:

  • AgentInterface, generative chat, and native streamed artifact previews/detail views.
  • The open-source dashboard library and its existing prompt options.
  • An OpenAI SDK main-agent tool loop and MiniApp generation with full-response baseResponse edits.
  • Live GitHub/npm tools through createToolExecutor, plus explicit frontend clipboard dispatch.
  • localStorage for chats, completed versions, artifact browsing, and input/filter state. Cancelled partial calls are discarded.
  • CLI catalog registration, portable npm/pnpm lockfiles, configuration instructions, and a manual QA checklist.

Validation with local package builds and the generalized Coda/Muse/sandbox stack: lint, types, and production verification passed. A real creation streamed 207 artifact chunks and one final result; an edit streamed the base, removed the table, renamed the same app as version 2, and reused its unchanged script. Generated script execution and live GitHub/npm reads passed; invalid tool names return HTTP 400. Inline storage checks covered completed calls, latest-version indexing, input state, search, and thread cleanup.

Stacked on #1292, which depends on #1268. Local package links, gateway configuration, keys, identity fixtures, generated specs, bundler aliases, and debug logs are excluded from the commit.

Draft / release gate: the current pinned published starter versions do not include all prerequisite MiniApps APIs. Update package pins and both lockfiles after the dependent packages are released, then verify a fresh CLI installation without links before merging. Local testing currently uses their worktrees.

@vercel

vercel Bot commented Oct 5, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
openui-docs Ready Ready Preview Oct 6, 2026 6:54am UTC

Request Review

This branch was successfully deployed

1 active deployment
Preview — 3d24c22a Deployed Oct 6, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant