stackblitz / webcontainer-docs

WebContainer API Documentation
MIT License
67 stars 22 forks source link

WebContainer API Docs

Welcome to the home of the WebContainer API documentation site!

Our docs site was built with VitePress đź’™

What is the WebContainer API?

WebContainers are a browser-based runtime for executing Node.js applications and operating system commands. This technology enables you to build applications that previously required a server running.

WebContainer API is perfect for interactive coding experiences. Among its most common use cases are production-grade IDEs, programming tutorials, next-generation documentation, or employee onboarding platforms.

The WebContainer API starter is the fastest way to explore the API. Open it in StackBlitz editor:

Open in StackBlitz

or in Codeflow IDE, our full-fledged web environment:

Open in Codeflow

If you prefer to develop locally, follow the steps below.

Let's make the docs better!

Thank you for visiting this repository. We love our community and we appreciate your time.

There are numerous ways to contribute to docs:

Thank you for making our docs better!

What makes good issue

When creating an issue, please include:

Please raise issues in situations like the following:

If what you want to say doesn't really fall into actionable "problem" or "improvement", you can start a new Discussion topic. For example, feel free to ask:


Development

There are three ways to interact with this repository:

Content updates with Web Publisher

Use Web Publisher for small content updates for a pleasant editing experience:

  1. Open the page on our docs site, scroll down, and click "edit this page".
  2. Update the document in the editor on the left and see the rendered change in the preview window on the right.
  3. Once you're done, in the top right corner click on the green button that says "Propose changes".
  4. You will be redirected to a GitHub PR template page prepared for you to submit a PR.

Developing with StackBlitz Codeflow

For bigger content updates, we recommend you use Codeflow IDE, which will spin up the entire dev environment with a dev server running. When using Codeflow, please remember to commit and push your changes frequently.

Open in Codeflow

Alternatively, add “pr.new” to the beginning of this GitHub repo URL.

Developing locally

You can also explore and develop this site locally.

After cloning the repository, run the docs site in development mode with:

npm install
npm start

Editor setup

We have already equipped this repository with the suggested extension (Vue Language Features extension (Volar)). Additionally, you can use Volar’s Take Over Mode (aka disabling the built-in TypeScript and JavaScript Language Features extension for the current workspace).


Join our community