Skip to content

feat(cli): fetch scaffold templates from openui-templates at scaffold time - #952

Open
AbhinRustagi wants to merge 1 commit into
mainfrom
feat/cli-remote-templates
Open

feat(cli): fetch scaffold templates from openui-templates at scaffold time#952
AbhinRustagi wants to merge 1 commit into
mainfrom
feat/cli-remote-templates

Conversation

@AbhinRustagi

@AbhinRustagi AbhinRustagi commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Part 1 of 3 (stacked: this → remove bundled templates → version-bump bot).

  • openui create now downloads templates from openui-templates main at scaffold time — sparse git clone (~1MB) with a codeload tarball fallback
  • Index + template downloads start in the background as soon as the CLI starts, so the network overlaps the prompts; scaffold step itself is sub-second
  • Interactive template picker is driven by the repo's index.json (built-in list as offline fallback)
  • Templates no longer ship in the npm package; build-templates.js is gone

Merging template changes in openui-templates now goes live for new scaffolds immediately — no CLI release needed.

⚠️ Depends on openui-templates main being populated first (PRs open there); until then cli-e2e fails.

@vercel

vercel Bot commented Aug 11, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
openui-docs Error Error Aug 12, 2026 7:30pm

Request Review

… time

Templates are downloaded from the openui-templates repo's main branch when
openui create runs (sparse git clone with tarball fallback), prefetched in
the background while prompts are answered. The interactive template list is
driven by the repo's index.json. Bundled templates no longer ship in the
npm package.
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