{"id":48395344,"url":"https://github.com/foxted/rsc-boundary","last_synced_at":"2026-04-25T15:03:46.602Z","repository":{"id":349439669,"uuid":"1202333334","full_name":"foxted/rsc-boundary","owner":"foxted","description":"Tooling to visualize React Server Components vs Client Components boundaries in Next.js App Router","archived":false,"fork":false,"pushed_at":"2026-04-23T04:22:20.000Z","size":1360,"stargazers_count":44,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-23T06:22:33.659Z","etag":null,"topics":["devtools","nextjs","react","react-server-components","rsc"],"latest_commit_sha":null,"homepage":"https://rsc-boundary.vercel.app","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/foxted.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-04-05T22:49:16.000Z","updated_at":"2026-04-23T05:23:03.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/foxted/rsc-boundary","commit_stats":null,"previous_names":["foxted/rsc-boundary"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/foxted/rsc-boundary","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foxted%2Frsc-boundary","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foxted%2Frsc-boundary/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foxted%2Frsc-boundary/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foxted%2Frsc-boundary/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/foxted","download_url":"https://codeload.github.com/foxted/rsc-boundary/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foxted%2Frsc-boundary/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32265985,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-25T09:15:33.318Z","status":"ssl_error","status_checked_at":"2026-04-25T09:15:31.997Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["devtools","nextjs","react","react-server-components","rsc"],"created_at":"2026-04-06T01:20:38.286Z","updated_at":"2026-04-25T15:03:46.596Z","avatar_url":"https://github.com/foxted.png","language":"TypeScript","readme":"# RSC Boundary\n\n**See where Server Components end and Client Components begin**—directly in the browser, on your real app.\n\nRSC Boundary is a lightweight devtool for **React Server Component** apps. Add one provider to your root layout and you get outlines, labels, and a panel that map **server-rendered regions** vs **client subtrees**—no annotations on every file, no guessing from the file tree alone.\n\nThe published packages live under `packages/`; the **demo site and playground** live under `apps/web`. Minimal adapter smoke-tests live under `playgrounds/`.\n\n![RSC Boundary devtools on the demo site: blue outlines for server regions, orange for client components](apps/web/public/screenshot.png)\n\n## Why use it\n\n- **Make the RSC mental model concrete.** Server Components have no client fibers; Client Components hydrate. That split is easy to lose when you're deep in JSX—this tool surfaces it on the page you're building.\n- **Onboard and review faster.** Spot accidental client boundaries, nested server islands, and where interactivity actually lives without spelunking through `\"use client\"` directives.\n- **Zero ceremony in production.** In production builds the provider is a pass-through: no extra DOM, no runtime cost. Highlights run only in development.\n\n## What you get (dev mode)\n\n- **Orange** dashed outlines around client component roots (`\"use client\"`).\n- **Blue** dashed outlines around server regions (heuristic detection, plus optional explicit markers when you need precision).\n- **Labels** and a **panel** with component names and provenance—so you can correlate the UI with your source.\n\n## Install\n\n### Next.js (App Router)\n\n**Requirements:** Next.js **16+** (App Router), React **19+**.\n\n```bash\npnpm add @rsc-boundary/next\n# or: npm install @rsc-boundary/next\n# or: yarn add @rsc-boundary/next\n```\n\nWrap `children` in your **root** `app/layout.tsx`:\n\n```tsx\nimport { RscBoundaryProvider } from \"@rsc-boundary/next\";\n\nexport default function RootLayout({\n  children,\n}: {\n  children: React.ReactNode;\n}) {\n  return (\n    \u003chtml lang=\"en\"\u003e\n      \u003cbody\u003e\n        \u003cRscBoundaryProvider\u003e{children}\u003c/RscBoundaryProvider\u003e\n      \u003c/body\u003e\n    \u003c/html\u003e\n  );\n}\n```\n\n### TanStack Start\n\n**Requirements:** `@tanstack/react-start` **1+**, React **19+**.\n\n```bash\npnpm add @rsc-boundary/start\n```\n\nWrap `children` in your root route (`app/routes/__root.tsx`):\n\n```tsx\nimport { RscBoundaryProvider } from \"@rsc-boundary/start\";\n```\n\nSee [`packages/start/README.md`](packages/start/README.md) for the full integration guide.\n\n### Migrating from `rsc-boundary`\n\nThe unscoped `rsc-boundary` package on npm is **deprecated** — it is no longer published from this monorepo. **Next.js (App Router):** install `@rsc-boundary/next` (includes `@rsc-boundary/core` as a dependency). **TanStack Start:** install `@rsc-boundary/start` (same).\n\n```bash\npnpm remove rsc-boundary \u0026\u0026 pnpm add @rsc-boundary/next\n# or, for Start:\npnpm remove rsc-boundary \u0026\u0026 pnpm add @rsc-boundary/start\n```\n\n```diff\n-import { RscBoundaryProvider } from \"rsc-boundary\";\n+import { RscBoundaryProvider } from \"@rsc-boundary/next\";\n```\n\n## Packages\n\n| Package                                 | Description                                                                        |\n| --------------------------------------- | ---------------------------------------------------------------------------------- |\n| [`@rsc-boundary/core`](packages/core)   | Framework-agnostic: fiber walk, highlighting engine, devtools UI, adapter contract |\n| [`@rsc-boundary/next`](packages/next)   | Next.js App Router adapter + `RscBoundaryProvider`                                 |\n| [`@rsc-boundary/start`](packages/start) | TanStack Start adapter + `RscBoundaryProvider`                                     |\n\nFor behavior details, optional APIs (`RscDevtools`, explicit server markers), architecture, and limitations, read the per-package READMEs.\n\n## Agent skill (`install`)\n\nThis repo includes coding-agent skills that walk through the integration steps:\n\n- **Next.js:** [`skills/install-next`](skills/install-next)\n- **TanStack Start:** [`skills/install-start`](skills/install-start)\n\n```bash\nnpx skills add foxted/rsc-boundary --skill install-next\nnpx skills add foxted/rsc-boundary --skill install-start\n```\n\n## Contributing\n\nLayout, local dev, and where to put changes: **[`CONTRIBUTING.md`](CONTRIBUTING.md)** and [`AGENTS.md`](AGENTS.md).\n\n## Releases\n\nVersioning and publishing use [Changesets](https://github.com/changesets/changesets). The three publishable packages are versioned together (same version at every release). From the repo root:\n\n```bash\npnpm changeset        # describe changes\npnpm version-packages # bump versions from changesets\npnpm release          # build packages and publish (maintainers)\n```\n\n**Maintainers:** after the scoped packages are on npm, deprecate the legacy unscoped package so installs show a migration hint:\n\n```bash\nnpm deprecate rsc-boundary@\"*\" \"rsc-boundary has moved. Install @rsc-boundary/next (Next.js) or @rsc-boundary/start (TanStack Start) instead - @rsc-boundary/core is pulled in automatically.\"\n```\n\n## License\n\nSee [LICENSE](LICENSE). Each package includes its own LICENSE file.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffoxted%2Frsc-boundary","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffoxted%2Frsc-boundary","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffoxted%2Frsc-boundary/lists"}