From 18ee8ae6eb5bbd7b9796c9f99064bb68fa7cc08f Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 11 Sep 2026 14:49:51 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20docs(readmes):=20give=20every=20?= =?UTF-8?q?generated=20badge=20row=20an=20"Open=20in=20StackBlitz"=20badge?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The generator gated the StackBlitz badge on the package being published to npm, but StackBlitz boots from the manifest at the path it is handed, not from the registry — so a private package or an app runs there just as well. The gate is now "has a package.json", with NO_STACKBLITZ still keeping out the Worker, Tauri and VS Code targets it genuinely cannot run, and the root README's badge row gets one too. Regenerated with `bun run readmes` and `bun run docs:sync`, which also picks up the stale `legal-terms` npm name in that package's badges. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_01Kkb27RSQgLWvRWv1vcdJef --- README.md | 1 + apps/Cloud-Computer-Control-Panel/README.md | 1 + .../(index)/apps/Cloud-Computer-Control-Panel.mdx | 1 + packages/legal-terms-privacy-policy/readme.md | 11 ++++++----- scripts/sync-package-readmes.mjs | 7 ++++++- 5 files changed, 15 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index d049b32f..a56b2dbe 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,7 @@ Documentation npm packages Open in GitHub Codespaces + Open in StackBlitz GitHub Stars
Coverage diff --git a/apps/Cloud-Computer-Control-Panel/README.md b/apps/Cloud-Computer-Control-Panel/README.md index c180893e..983a7a08 100644 --- a/apps/Cloud-Computer-Control-Panel/README.md +++ b/apps/Cloud-Computer-Control-Panel/README.md @@ -1,6 +1,7 @@

Documentation + Open in StackBlitz

diff --git a/apps/docs/content/docs/(index)/apps/Cloud-Computer-Control-Panel.mdx b/apps/docs/content/docs/(index)/apps/Cloud-Computer-Control-Panel.mdx index 5e143d69..4500a9f8 100644 --- a/apps/docs/content/docs/(index)/apps/Cloud-Computer-Control-Panel.mdx +++ b/apps/docs/content/docs/(index)/apps/Cloud-Computer-Control-Panel.mdx @@ -8,6 +8,7 @@ icon: Server
Documentation + Open in StackBlitz
![code2cloud](https://i.imgur.com/t6WlnCI.png) diff --git a/packages/legal-terms-privacy-policy/readme.md b/packages/legal-terms-privacy-policy/readme.md index 3f9ac385..d8f25d24 100644 --- a/packages/legal-terms-privacy-policy/readme.md +++ b/packages/legal-terms-privacy-policy/readme.md @@ -3,11 +3,12 @@ Documentation Open in StackBlitz
- NPM Monthly Downloads - npm version - NPM Total Downloads - TypeScript types - Install size + NPM Monthly Downloads + npm version + NPM Total Downloads + TypeScript types + Install size + Coverage

diff --git a/scripts/sync-package-readmes.mjs b/scripts/sync-package-readmes.mjs index 17bf52ca..f9d3bd23 100644 --- a/scripts/sync-package-readmes.mjs +++ b/scripts/sync-package-readmes.mjs @@ -238,8 +238,13 @@ export function collectEntries(repoContext) { npmPackage: published, codecovFlag: codecovFlags.get(`${relative}/`), docsUrl: `${DOCS_SITE}/docs/${docsSlug}/${child.name}`, + // Not gated on `published`: StackBlitz boots from the manifest at the + // path, not from the registry, so a private package or an app runs + // there just as well as a published one. What it needs is a + // package.json at that path and a runtime it can host — hence the + // manifest check and the NO_STACKBLITZ list. stackblitzUrl: - published && !NO_STACKBLITZ.has(child.name) + manifest && !NO_STACKBLITZ.has(child.name) ? `https://stackblitz.com/github/${repoContext.repoSlug}/tree/${repoContext.defaultBranch}/${relative}` : undefined, },