docs: Eitri preview — architecture, Eitri questions, preview-provider protocol#377
Open
hugo-ccabral wants to merge 1 commit into
Open
docs: Eitri preview — architecture, Eitri questions, preview-provider protocol#377hugo-ccabral wants to merge 1 commit into
hugo-ccabral wants to merge 1 commit into
Conversation
… protocol Records the decoupled-preview plan for Eitri: prefer an Eitri-hosted embeddable web preview (A), fall back to running eitri-cli in a deco sandbox (B), and reject reimplementing eitri-luminus primitives (C — approximate + fork/drift debt). Includes the questions that gate A/B for the Eitri team, and the preview-provider protocol: it reuses deco's EXISTING surface (the /live/previews/* render endpoint + the LiveControls editor::inject postMessage channel) hosted at a configurable origin, plus a per-app .deco/preview.json (provider/url/device-frame/auth). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Design + hand-off for Eitri preview, now that Studio decouples the CMS pane from the preview pane (preview can live in a different environment).
eitri-cliin a deco sandbox; reject C (reimplementingeitri-luminus— approximate + permanent fork/drift debt). Enabled by the fact thateitri-luminusis web-React (DaisyUI/Tailwind), not React Native — a browser can render it. Blocker noted: luminus/bifrost aren't on public npm (onlyeitri-cliis)./live/previews/*endpoint (resolvePreview.ts:GET ?props=&resolveChain=/POST {__resolveType, __props, __decofile}→ HTML),LiveControlseditor::injectpostMessage (+ recommendedready/error/resize/selectmessages),.deco/preview.json(provider/url/devicemobile-frame/auth).Docs-only (no release). Companion to
eitri-stack-design.md+deco-fs-contract.md.🤖 Generated with Claude Code
Summary by cubic
Add a design doc for Eitri preview that explains how Studio’s decoupled preview will work for Eitri apps: prefer an Eitri‑hosted web embed, fall back to a
eitri-clisandbox, and reject reimplementingeitri-luminus. It defines the v1 preview-provider protocol (reuse/live/previews/*,editor::injectpostMessage, app-level.deco/preview.json) and lists the open questions that gate A/B; docs-only change.Written for commit 28d42ff. Summary will update on new commits.