Skip to content

docs: list the Node.js plugin sandbox in the README - #3430

Merged
khoinguyenpham04 merged 1 commit into
emdash-cms:mainfrom
danielmlr:docs/readme-plugin-sandbox
Sep 30, 2026
Merged

khoinguyenpham04 merged 1 commit into
emdash-cms:mainfrom
danielmlr:docs/readme-plugin-sandbox

Conversation

@danielmlr

@danielmlr danielmlr commented Sep 24, 2026 •

Copy link
Copy Markdown
Member

What does this PR do?

Updates the README for the Node.js plugin sandbox from #426. The platform table still gave "In-process (safe mode)" as the plugin runtime outside Cloudflare, a row written when sandboxing was Cloudflare-only, and the Plugins summary named only the Cloudflare sandbox. On Node.js, @emdash-cms/sandbox-workerd runs sandboxed plugins in a workerd child process, so the table row and the summary now name it. Under astro dev, the runner hands the plugins to Miniflare, which starts its own workerd process, so the wording holds in development too. The Cloudflare column is unchanged.

Follow-up to #425.

Type of change

  • Bug fix
  • Feature (requires maintainer-approved Discussion)
  • Refactor (no behavior change)
  • Translation
  • Documentation
  • Performance improvement
  • Tests
  • Chore (dependencies, CI, tooling)

Checklist

  • I have read CONTRIBUTING.md
  • pnpm typecheck passes (n/a: README only)
  • pnpm lint passes (n/a: README only)
  • pnpm test passes (or targeted tests for my change) (n/a: README only)
  • pnpm format has been run
  • I have added/updated tests for my changes (if applicable) (n/a: README only)
  • User-visible strings in the admin UI are wrapped for translation (if applicable). Do not include messages.po changes except in translation PRs — a workflow extracts catalogs on merge to main. (n/a: no admin UI change)
  • I have added and reviewed the user-facing changeset (if this PR changes a published package) (n/a: no published package changes)
  • New features link to an approved Discussion: https://github.com/emdash-cms/emdash/discussions/... (n/a: not a feature)
  • I have included screenshots below if this PR changes the UI (n/a: no UI change)

AI-generated code disclosure

  • This PR includes AI-generated code — model/tool: Claude Opus 5.5

Screenshots / test output

Not applicable.

The platform table gave "In-process (safe mode)" as the plugin runtime
outside Cloudflare, and the Plugins summary mentioned sandboxing only on
Cloudflare. Both predate emdash-cms#426, which added @emdash-cms/sandbox-workerd:
sandboxed plugins on Node.js run in a workerd child process.
@changeset-bot

changeset-bot Bot commented Sep 24, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 44c9d44

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

@danielmlr
danielmlr marked this pull request as ready for review September 24, 2026 23:44
@github-actions github-actions Bot added the review/needs-review No maintainer or bot review yet label Sep 24, 2026

@emdashbot emdashbot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the right documentation update in principle — the root README should list the Node.js workerd sandbox alongside the Cloudflare one, rather than leaving "In-process (safe mode)" as the only non-Cloudflare runtime. However, the new wording overstates the case: on Node.js in development, @emdash-cms/sandbox-workerd deliberately selects MiniflareDevRunner, which uses miniflare's in-process service-bindings pattern and explicitly avoids a workerd child process. The unqualified claim that Node.js plugins run "in a workerd child process" is therefore false for astro dev. I verified this against packages/workerd/src/sandbox/runner.ts (createSandboxRunner) and packages/workerd/src/sandbox/dev-runner.ts. The two line comments below propose a concise qualification so the summary and the portable-platforms table stay accurate without getting into implementation minutiae.

Comment thread README.md Resolved
Comment thread README.md Resolved
@emdashbot emdashbot Bot added review/awaiting-author Reviewed; waiting on the author to respond and removed review/needs-review No maintainer or bot review yet labels Sep 24, 2026
@danielmlr danielmlr added the bot:review Trigger an emdashbot code review on this PR label Sep 27, 2026

@emdashbot emdashbot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The goal is right: the root README should list the Node.js workerd sandbox alongside the Cloudflare one, since @emdash-cms/sandbox-workerd has replaced the old “In-process (safe mode)” default outside Cloudflare.

In the re-review, I focused on the disputed claim that under astro dev plugins don’t run in a workerd child process. The canonical docs in this repo (docs/src/content/docs/deployment/plugin-sandbox.mdx) explicitly say that in development EmDash hands the plugins to Miniflare, which manages its own workerd process. packages/workerd/src/sandbox/dev-runner.ts also describes itself as having “No child process management” — meaning the runner doesn’t manage the process, not that no workerd process exists. So the unqualified wording “workerd child process” is accurate for both production and astro dev.

With that resolved, the README change is technically accurate, minimal, and consistent with the existing docs. No other files are modified; no published package changed, so a changeset is correctly omitted. I have no remaining findings.

@emdashbot emdashbot Bot added review/approved Approved; no new commits since and removed bot:review Trigger an emdashbot code review on this PR review/awaiting-author Reviewed; waiting on the author to respond labels Sep 27, 2026

@khoinguyenpham04 khoinguyenpham04 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@khoinguyenpham04
khoinguyenpham04 merged commit 9e7797a into emdash-cms:main Sep 30, 2026
52 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: signed review/approved Approved; no new commits since size/XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants