JSPM

  • Created
  • Published
  • Downloads 100405
  • Score
    100M100P100Q159051F
  • License MIT

SDK for generating and embedding StackBlitz projects.

Package Exports

  • @stackblitz/sdk
  • @stackblitz/sdk/bundles/sdk.js
  • @stackblitz/sdk/bundles/sdk.m.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@stackblitz/sdk) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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