Skip to content

docs: add repl-playground example for the durable REPL - #160

Draft
ben-reitz wants to merge 1 commit into
feat/durable-repl-js-toolfrom
feat/durable-repl-playground-example
Draft

ben-reitz wants to merge 1 commit into
feat/durable-repl-js-toolfrom
feat/durable-repl-playground-example

Conversation

@ben-reitz

Copy link
Copy Markdown

Adds examples/repl-playground, a runnable browser and HTTP playground for the durable REPL.

  • Each Durable Object hosts a real Workspace with fake, deterministic grants (CRM, billing, metrics, logs, team, notify, fs, allowlisted fetch) seeded with an incident to investigate.
  • The browser UI lets you run cells and view committed history, recorded effects, and live call counters, so you can watch replay make zero live calls. It also has a sidebar that documents each grant.
  • scripts/play.mjs is a small CLI for the same endpoints.
  • Auth is a bearer token, or a verified Cloudflare Access JWT if ACCESS_TEAM/ACCESS_AUDS are set.

@changeset-bot

changeset-bot Bot commented Sep 23, 2026

Copy link
Copy Markdown

鈿狅笍 No Changeset found

Latest commit: 1ed642f

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions

Copy link
Copy Markdown
Contributor

Thanks for your interest in Cloudflare Computer.

This repository does not accept unsolicited pull requests. Please use one of the accepted contribution paths instead:

If a maintainer asked you to open this pull request, they can add the allow-pr label and reopen it.

@github-actions github-actions Bot closed this Sep 23, 2026
@ben-reitz ben-reitz added the allow-pr Allow a PR to remain open. label Sep 23, 2026
@ben-reitz ben-reitz reopened this Sep 23, 2026
@ben-reitz
ben-reitz added this pull request to stack #155 September 23, 2026 09:26
// bigint-safe JSON response (ReplExecutionResult.value may hold bigints).
function json(data: unknown, status = 200): Response {
return new Response(
JSON.stringify(data, (_k, v: unknown) => (typeof v === "bigint" ? `${v}n` : v)),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

allow-pr Allow a PR to remain open.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants