{"id":15624020,"url":"https://github.com/bholmesdev/simple-rsc","last_synced_at":"2025-04-04T07:05:31.423Z","repository":{"id":149991890,"uuid":"620932220","full_name":"bholmesdev/simple-rsc","owner":"bholmesdev","description":"A simple React Server Components implementation that you can build yourself 🙌","archived":false,"fork":false,"pushed_at":"2024-01-22T12:33:35.000Z","size":211,"stargazers_count":724,"open_issues_count":3,"forks_count":63,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-03-28T06:03:54.364Z","etag":null,"topics":["react","video"],"latest_commit_sha":null,"homepage":"https://www.youtube.com/watch?v=Fctw7WjmxpU","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bholmesdev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-29T16:50:05.000Z","updated_at":"2025-03-25T13:39:39.000Z","dependencies_parsed_at":"2023-11-19T21:23:13.083Z","dependency_job_id":"7dd7e4e5-3d85-4469-8949-2bb870f592a6","html_url":"https://github.com/bholmesdev/simple-rsc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bholmesdev%2Fsimple-rsc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bholmesdev%2Fsimple-rsc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bholmesdev%2Fsimple-rsc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bholmesdev%2Fsimple-rsc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bholmesdev","download_url":"https://codeload.github.com/bholmesdev/simple-rsc/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247135142,"owners_count":20889420,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["react","video"],"created_at":"2024-10-03T09:59:43.073Z","updated_at":"2025-04-04T07:05:31.401Z","avatar_url":"https://github.com/bholmesdev.png","language":"JavaScript","readme":"# Simple RSC ⚛️\n\n\u003e A simple React Server Components implementation that you can build yourself 🙌\n\n[Watch the live demo with Dan Abramov here!](https://www.youtube.com/watch?v=Fctw7WjmxpU)\n\n## ⭐️ Goals\n\n- 🌊 Show how React server components are streamed to the browser with a simple Node server.\n- ⚙️ Demo a build process to bundle server components and handle client components with the `\"use client\"` directive.\n- 📝 Reveal how a server component requests appear to the client with a developer panel.\n\n## Getting started\n\nFirst, install dependencies with \"peer dependency\" errors disabled:\n\n```bash\nnpm i --legacy-peer-deps\n```\n\n_This is due to experimental version conflicts. React Server Components are still quite new!_\n\nThen, start the Node development server:\n\n```bash\nnpm run dev\n```\n\nThis should trigger a build and start your server at http://localhost:3000.\n\n## Project structure\n\nThis project is broken up into the `app/` and `server/` directories. The most important entrypoints are listed below:\n\n```sh\n# 🥞 your full-stack application\napp/ \n  page.jsx # server entrypoint.\n  _client.jsx # client script that requests and renders your `page.jsx`.\n\n# 💿 your backend that builds and renders the `app/`\nserver.js\n```\n\n## 🙋‍♀️ What is _not_ included?\n\n- **File-based routing conventions.** This repo includes a _single_ index route, with support for processing query params. If you need multiple routes, you can try [NextJS' new `app/` directory.](https://beta.nextjs.org/docs/routing/defining-routes)\n- **Advance bundling for CSS-in-JS.** [A Tailwind script](https://tailwindcss.com/docs/installation/play-cdn) is included for playing with styles.\n- **Advice on production deploys.** This is a _learning tool_ to show how React Server Components are used, _not_ the bedrock for your next side project! See [React's updated \"Start a New React Project\" guide](https://react.dev/learn/start-a-new-react-project) for advice on building production-ready apps.\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbholmesdev%2Fsimple-rsc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbholmesdev%2Fsimple-rsc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbholmesdev%2Fsimple-rsc/lists"}