Socket
Socket
Sign inDemoInstall

@stackblitz/sdk

Package Overview
Dependencies
0
Maintainers
4
Versions
43
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @stackblitz/sdk

SDK for generating and embedding StackBlitz projects.


Version published
Weekly downloads
27K
increased by5.51%
Maintainers
4
Created
Weekly downloads
 

Changelog

Source

v1.7.0 (2022-05-09)

  • TypeScript: improved the precision and inline documentation of types such as Project, EmbedOptions, OpenOptions and VM. Made those types directly importable with import type { Project } from '@stackblitz/sdk'. (https://github.com/stackblitz/core/pull/1775, https://github.com/stackblitz/core/pull/1779, https://github.com/stackblitz/core/pull/1837)
  • Added support for opening multiple files in an embedded projects with the vm.editor.openFile method. (https://github.com/stackblitz/core/pull/1810)
  • Added new methods to the VM class for controlling the embedded editor’s UI: vm.editor.setCurrentFile, vm.editor.setTheme, vm.editor.setView, vm.editor.showSidebar, vm.preview.getUrl, vm.preview.setUrl. (https://github.com/stackblitz/core/pull/1810, https://github.com/stackblitz/core/pull/1837)
  • Added new showSidebar option. (https://github.com/stackblitz/core/pull/1837)
  • Added source maps to the published bundle files. (https://github.com/stackblitz/core/pull/1776)
  • Fixed the default value of the forceEmbedLayout option. (https://github.com/stackblitz/core/pull/1817)

Readme

Source

StackBlitz SDK

Wouldn't it be great if you could create StackBlitz projects on-demand from your docs, examples, blog posts?

This is exactly what the StackBlitz SDK allows you to do. Even better, the SDK even gives you full control of the StackBlitz VM - allowing you to build rich & interactive experiences around your projects. 😮 🙌

The SDK is 3kB gzipped (!) and you can install it from npm:

npm install --save @stackblitz/sdk

Or add a script tag to the UMD build on jsDelivr/Unpkg — the SDK will be available on window as StackBlitzSDK:

<script src="https://unpkg.com/@stackblitz/sdk/bundles/sdk.umd.js"></script>

Learn more on developer.stackblitz.com

FAQs

Last updated on 09 May 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc