ReviewOS

stacks/stackblitz

public
Clone

Push over the same URL. A password will not work: create a token under access tokens and use it in place of one.

main · 4 commits

Mirrored from stacksjs/stackblitz · syncing is switched off

README.md

Stacks on StackBlitz

A small, live-reloading stx starter for StackBlitz WebContainers.

Edit resources/views/welcome.stx or resources/css/app.css; the preview recompiles the template and reloads automatically.

Run locally

bun install
bun run dev

Open http://localhost:3000.

Verify

bun run check

That runs linting, TypeScript checks, and the Bun test suite used by StackBlitz.

Runtime contract

This repository uses Bun for dependency installation, development, builds, linting, and tests. Because WebContainers provide Node rather than a Bun executable, Bun produces the dependency-bundled dist/server.mjs target that StackBlitz runs. .stackblitzrc disables implicit dependency installation, so StackBlitz never invokes npm and does not resolve a second lockfile.

The starter is intentionally frontend-scoped. Full Stacks applications still need local services such as Bun, SQLite, rpx, and tlsx.

Layout

  • server.ts - stx compiler, Bun HTTP preview, and live reload
  • dist/server.mjs - Bun-built, dependency-bundled WebContainer target
  • resources/views/welcome.stx - editable view
  • resources/css/app.css - editable styles
  • test/ - Bun behavior and server tests

License

MIT