Skip to content

Add a live Workspace + RunFrame Cosmos example for drop-in tscircuit.com integration#8

Merged
rushabhcodes merged 1 commit into
tscircuit:mainfrom
rushabhcodes:feat/workspace-runframe-dropin-example
Jun 28, 2026
Merged

Add a live Workspace + RunFrame Cosmos example for drop-in tscircuit.com integration#8
rushabhcodes merged 1 commit into
tscircuit:mainfrom
rushabhcodes:feat/workspace-runframe-dropin-example

Conversation

@rushabhcodes

Copy link
Copy Markdown
Contributor

Summary

This PR adds a functional side-by-side WorkspaceCodeEditor + RunFrame Cosmos example that follows the same integration pattern used in tscircuit.com.

What changed

  • added a live Cosmos fixture that wires workspace files into RunFrame via fsMap
  • added a local SuspenseRunFrame helper for the example integration
  • matched the tscircuit.com data flow:
    • workspace files
    • fsMap
    • mainComponentPath
    • render lifecycle hooks
  • moved @tscircuit/runframe to devDependencies since it is only needed for local examples
  • added the required runframe-side dev dependencies so the example works locally
  • pinned Vite dependency optimization for @tscircuit/runframe/runner to make Cosmos resolution stable

Why

This makes the repo a better proving ground for the real tscircuit.com integration by providing a working local drop-in style example instead of an isolated editor-only fixture.

That improves confidence for future editor-preview work and makes it easier to iterate on the Monaco workspace API against the actual runframe contract used upstream.

Validation

  • bun run typecheck
  • bun run build

@vercel

vercel Bot commented Jun 28, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
monaco-code-editor Ready Ready Preview, Comment Jun 28, 2026 4:45pm

Request Review

@rushabhcodes rushabhcodes marked this pull request as ready for review June 28, 2026 16:46
@rushabhcodes rushabhcodes merged commit a0f66aa into tscircuit:main Jun 28, 2026
4 checks passed
@rushabhcodes rushabhcodes deleted the feat/workspace-runframe-dropin-example branch June 28, 2026 16:47
@tscircuitbot

Copy link
Copy Markdown
Collaborator

Thank you for your contribution! 🎉

PR Rating: ⭐⭐⭐
Impact: Major

Track your contributions and see the leaderboard at: tscircuit Contribution Tracker


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.

2 participants