Sitelet https://github.com/NodeOps-app/createos-sandbox-sdk/pull/7
Skip to content

feat(examples): add 28-code-server-vscode example - #7

Merged
pratikbin merged 1 commit into
mainfrom
example/28-code-server-vscode
May 29, 2026
Merged

pratikbin merged 1 commit into
mainfrom
example/28-code-server-vscode

Conversation

@pratikbin

Copy link
Copy Markdown
Contributor

Summary

  • Adds example 28: runs code-server (VS Code in browser) inside an FC microVM
  • Installs via the official standalone installer, daemonises on 0.0.0.0:8080 with auth disabled, exposes through ingress_enabled public URL
  • Verifies the server is live by polling GET /healthz until {"status":"success","data":{"up":true}}

FC primitives exercised

Primitive SDK call
Create sandbox with public ingress fc.createSandbox({ ingress_enabled: true })
Run commands inside the VM sandbox.runCommand("bash", ["-lc", ...])
Build the public preview URL sandbox.previewurl(/sitelet?url=https%3A%2F%2Fgithub.com%2FNodeOps-app%2Fcreateos-sandbox-sdk%2Fpull%2Fport)
Block until the server listens sandbox.waitForPortReady(port)
Tear the sandbox down sandbox.destroy()

Test plan

  • bun run typecheck — pass
  • bun run lint — pass
  • bun run fmt:check — pass
  • bun test tests/*.test.ts — 157 pass, 0 fail
  • bun index.ts end-to-end against prod control plane — verified, code-server 4.122.0 (VS Code 1.122.0), GET /healthz returned {"status":"success","data":{"up":true}} at HTTP 200

code-server runs inside a devbox:1 microVM with ingress, verified
live via polling GET /healthz through the public preview URL.
@pratikbin
pratikbin merged commit 37a8e76 into main May 29, 2026
@pratikbin
pratikbin deleted the example/28-code-server-vscode branch July 15, 2026 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant