René's URL Explorer Experiment


Title: Controlling embeds with the SDK’s VM interface | StackBlitz Docs

Open Graph Title: Controlling embeds with the SDK’s VM interface

X Title: Controlling embeds with the SDK’s VM interface

Description: All of the embed methods of the StackBlitz JS SDK automatically connect to the embedded StackBlitz VM, giving you programmatic access to the embedded project.

X Description: All of the embed methods of the StackBlitz JS SDK automatically connect to the embedded StackBlitz VM, giving you programmatic access to the embedded project.

X: @StackBlitz

Generator: VitePress v1.0.2

direct link

Domain: developers.stackblitz.com

og:typearticle
og:imagehttps://developer.stackblitz.com/img/og/sdk-controlling-embeds.png
twitter:cardsummary_large_image

Links:

Skip to content https://developers.stackblitz.com/platform/api/javascript-sdk-vm#VPContent
StackBlitz Docshttps://developers.stackblitz.com/
Guideshttps://developers.stackblitz.com/guides/user-guide/what-is-stackblitz
Codeflowhttps://developers.stackblitz.com/codeflow/what-is-codeflow
APIhttps://developers.stackblitz.com/platform/api/javascript-sdk
WebContainershttps://developers.stackblitz.com/platform/webcontainers/roadmap
Teamshttps://developers.stackblitz.com/teams/what-is-stackblitz-teams
Enterprisehttps://developers.stackblitz.com/enterprise/overview
Sign inhttps://stackblitz.com/sign_in
Get startedhttps://stackblitz.com/register
What is StackBlitzhttps://developers.stackblitz.com/guides/user-guide/what-is-stackblitz
Getting startedhttps://developers.stackblitz.com/guides/user-guide/getting-started
Starter projectshttps://developers.stackblitz.com/guides/user-guide/starter-projects
Available environmentshttps://developers.stackblitz.com/guides/user-guide/available-environments
Importing projectshttps://developers.stackblitz.com/guides/user-guide/importing-projects
IDE: what’s on your screenhttps://developers.stackblitz.com/guides/user-guide/ide-whats-on-your-screen
Collectionshttps://developers.stackblitz.com/guides/user-guide/collections
Keyboard shortcutshttps://developers.stackblitz.com/guides/user-guide/keyboard-shortcuts
General FAQshttps://developers.stackblitz.com/guides/user-guide/general-faqs
Embedding projectshttps://developers.stackblitz.com/guides/integration/embedding
Launching projects from GitHubhttps://developers.stackblitz.com/guides/integration/open-from-github
Creating projects with the SDKhttps://developers.stackblitz.com/guides/integration/create-with-sdk
Bug reproductionshttps://developers.stackblitz.com/guides/integration/bug-reproductions
Integrating with Storybookhttps://developers.stackblitz.com/guides/integration/storybook-addon
Integrating with Figmahttps://developers.stackblitz.com/guides/integration/figma-plugin
What is Codeflow?https://developers.stackblitz.com/codeflow/what-is-codeflow
Using pr.newhttps://developers.stackblitz.com/codeflow/using-pr-new
Working in Codeflow IDEhttps://developers.stackblitz.com/codeflow/working-in-codeflow-ide
Integrating CodeflowApp bothttps://developers.stackblitz.com/codeflow/integrating-codeflowapp-bot
Environment Variableshttps://developers.stackblitz.com/codeflow/environment-variables
Content updates with Web Publisherhttps://developers.stackblitz.com/codeflow/content-updates-with-web-publisher
Integrating Web Publisherhttps://developers.stackblitz.com/codeflow/integrating-web-publisher
Codeflow FAQhttps://developers.stackblitz.com/codeflow/codeflow-faq
What is StackBlitz Teamshttps://developers.stackblitz.com/teams/what-is-stackblitz-teams
Setting Up Your Teamhttps://developers.stackblitz.com/teams/setting-up-your-team
Collaboration and Access Controlhttps://developers.stackblitz.com/teams/collaboration-and-access-control
Pull Request Review Integrationhttps://developers.stackblitz.com/teams/pull-request-review-integration
Environment Variableshttps://developers.stackblitz.com/teams/environment-variables
Private NPM Registry Integrationhttps://developers.stackblitz.com/teams/private-npm-registry-integration
JavaScript SDKhttps://developers.stackblitz.com/platform/api/javascript-sdk
SDK overviewhttps://developers.stackblitz.com/platform/api/javascript-sdk
Options referencehttps://developers.stackblitz.com/platform/api/javascript-sdk-options
Controlling embedshttps://developers.stackblitz.com/platform/api/javascript-sdk-vm
Managing dependencieshttps://developers.stackblitz.com/platform/api/javascript-sdk-dependencies
POST APIhttps://developers.stackblitz.com/platform/api/post-api
WebContainer APIhttps://developers.stackblitz.com/platform/api/webcontainer-api
Roadmaphttps://developers.stackblitz.com/platform/webcontainers/roadmap
Browser supporthttps://developers.stackblitz.com/platform/webcontainers/browser-support
Browser configurationhttps://developers.stackblitz.com/platform/webcontainers/browser-config
Project configurationhttps://developers.stackblitz.com/platform/webcontainers/project-config
Turbo package managerhttps://developers.stackblitz.com/platform/webcontainers/turbo-package-manager
Troubleshootinghttps://developers.stackblitz.com/platform/webcontainers/troubleshooting-webcontainers
​https://developers.stackblitz.com/platform/api/javascript-sdk-vm#frontmatter-title
StackBlitz JS SDKhttps://developers.stackblitz.com/platform/api/javascript-sdk
​https://developers.stackblitz.com/platform/api/javascript-sdk-vm#getting-access-to-the-vm
TypeScript demohttps://stackblitz.com/edit/sdk-vm
JavaScript demohttps://stackblitz.com/edit/sdk-vm-js
​https://developers.stackblitz.com/platform/api/javascript-sdk-vm#with-embed-methods
​https://developers.stackblitz.com/platform/api/javascript-sdk-vm#connect
​https://developers.stackblitz.com/platform/api/javascript-sdk-vm#vm-properties-and-methods
​https://developers.stackblitz.com/platform/api/javascript-sdk-vm#applyfsdiff
​https://developers.stackblitz.com/platform/api/javascript-sdk-vm#getdependencies
ProjectDependencieshttps://developers.stackblitz.com/platform/api/javascript-sdk-options#projectdependencies
EngineBlockhttps://developers.stackblitz.com/guides/user-guide/available-environments
WebContainershttps://developers.stackblitz.com/guides/user-guide/available-environments
​https://developers.stackblitz.com/platform/api/javascript-sdk-vm#getfssnapshot
ProjectFileshttps://developers.stackblitz.com/platform/api/javascript-sdk-options#projectfiles
​https://developers.stackblitz.com/platform/api/javascript-sdk-vm#editoropenfile
OpenFileOptionhttps://developers.stackblitz.com/platform/api/javascript-sdk-options#openfileoption
​https://developers.stackblitz.com/platform/api/javascript-sdk-vm#editorsetcurrentfile
vm.editor.openFilehttps://developers.stackblitz.com/platform/api/javascript-sdk-vm#editoropenfile
​https://developers.stackblitz.com/platform/api/javascript-sdk-vm#editor-settheme-theme
UiThemeOptionhttps://developers.stackblitz.com/platform/api/javascript-sdk-options#uithemeoption
​https://developers.stackblitz.com/platform/api/javascript-sdk-vm#editor-setview-view
UiViewOptionhttps://developers.stackblitz.com/platform/api/javascript-sdk-options#uiviewoption
​https://developers.stackblitz.com/platform/api/javascript-sdk-vm#editor-showsidebar-visible
​https://developers.stackblitz.com/platform/api/javascript-sdk-vm#previeworigin
WebContainershttps://developers.stackblitz.com/guides/user-guide/available-environments
vm.preview.getUrlhttps://developers.stackblitz.com/platform/api/javascript-sdk-vm#previewgeturl
​https://developers.stackblitz.com/platform/api/javascript-sdk-vm#previewgeturl
​https://developers.stackblitz.com/platform/api/javascript-sdk-vm#previewseturl
Edit this pagehttps://pr.new/stackblitz/docs/edit/main/docs/platform/api/javascript-sdk-vm.md
Previous pageOptions referencehttps://developers.stackblitz.com/platform/api/javascript-sdk-options
Next pageManaging dependencieshttps://developers.stackblitz.com/platform/api/javascript-sdk-dependencies

Viewport: width=device-width,initial-scale=1


URLs of crawlers that visited me.