Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@stackblitz/sdk

stackblitz246.8kMIT1.11.0TypeScript support: included

SDK for generating and embedding StackBlitz projects.

readme

StackBlitz SDK

The StackBlitz JavaScript SDK lets you programmatically create StackBlitz projects to be opened in a new window or embedded in your docs, example pages, or blog posts.

Documentation

Check out our SDK documentation on developer.stackblitz.com:

Reporting issues

Development

We use npm and Node 16+.

# Install dependencies
npm install

# Start a development server to explore examples
npm start

# Run unit tests
npm test

# Run end-to-end tests with mock server
npm run test:e2e

# Run end-to-end tests against stackblitz.com
STACKBLITZ_SERVER_ORIGIN=https://stackblitz.com npm run test:e2e

# Generate the 'bundles' and 'types' folders
npm run build

changelog

@stackblitz/sdk changelog

v1.11.0 (2024-07-02)

v1.10.0 (2024-05-03)

  • Added support for organization in ProjectOptions

v1.9.0 (2023-04-04)

v1.8.2 (2023-01-26)

v1.8.1 (2022-11-10)

v1.8.0 (2022-06-09)

v1.7.0 (2022-05-09)

v1.6.0 (2022-03-02)

  • Add support for opening multiple files with the openFile parameter, with support for multiple tabs (openFile: 'index.html,src/index.js') and split editor panes (openFile: ['index.html', 'src/index.js]). (https://github.com/stackblitz/core/pull/1758)

v1.5.6 (2022-02-04)

v1.5.5 (2022-01-26)

v1.5.4 (2022-01-20)

v1.5.3 (2021-11-05)

v1.5.2 (2020-12-07)

No known changes.

v1.5.1 (2020-09-25)

v1.5.0 (2020-07-16)

v1.4.0 (2020-05-13)

v1.3.0 (2019-02-06)

v1.2.0 (2018-05-03)

  • Add support for editor UI options: hideDevTools and devToolsHeight.
  • Add support for project compilation settings in ProjectOptions.