{"id":13727077,"url":"https://github.com/sibelius/react-server-components-playground","last_synced_at":"2025-04-14T10:33:06.030Z","repository":{"id":55285597,"uuid":"327004493","full_name":"sibelius/react-server-components-playground","owner":"sibelius","description":"Webpack version of React Server Components Demo (do not use in production)","archived":false,"fork":false,"pushed_at":"2022-02-24T15:17:17.000Z","size":195,"stargazers_count":147,"open_issues_count":0,"forks_count":8,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-04-05T22:36:50.880Z","etag":null,"topics":["react","server"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/sibelius.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}},"created_at":"2021-01-05T13:18:23.000Z","updated_at":"2025-02-11T01:16:33.000Z","dependencies_parsed_at":"2022-08-14T19:22:33.433Z","dependency_job_id":null,"html_url":"https://github.com/sibelius/react-server-components-playground","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/sibelius%2Freact-server-components-playground","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sibelius%2Freact-server-components-playground/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sibelius%2Freact-server-components-playground/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sibelius%2Freact-server-components-playground/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sibelius","download_url":"https://codeload.github.com/sibelius/react-server-components-playground/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248862700,"owners_count":21173861,"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","server"],"created_at":"2024-08-03T01:03:38.565Z","updated_at":"2025-04-14T10:33:06.001Z","avatar_url":"https://github.com/sibelius.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# React Server Components Playground (Not for Production) \n\nThis is a React Server Components Playground to make it easy to experiment with Server Components\n\nit is based on [server-components-demo](https://github.com/reactjs/server-components-demo)\n\n## Can I use this in production?\n\n🔴 🔴 🔴 **Oh dear, no. Please, DO NOT use this in production!** 🔴 🔴 🔴\n\nAs [stated on the React blog](https://reactjs.org/blog/2020/12/21/data-fetching-with-react-server-components.html), Server Components are an early experimental tech preview, and are nowhere close to being usable or supported for production apps today.\n\nThis boilerplate **is not** developed by the React team, and **does not** represent how Server Components will actually be integrated by the time they are stable. Instead, the first high-quality integrations will be developed in collaboration with React frameworks.\n\n## Does this solve SSR?\nNot yet, maybe in the future.\nFor SSR check this [react-webpack-ssr-boilerplate](https://github.com/sibelius/react-webpack-ssr-boilerplate), it is the simplest React SSR Boilerplate out there.\nIt is just 2 webpack (client and server)\n\n## How to start\n\nRun the plugin and loader transpilation using babel\n\n```bash\nyarn plugin\n```\n\nRun the Client and Server Bundler at the same time\n```bash\nyarn start\n```\n\n## Some explanations\n\n[./plugin](./plugin) folder has some copied and modified react-server-dom-webpack files\n\n### ReactFlightWebpackPlugin modifications\n- Be able to have client references using Typescript\n\n## ReactFlightWebpackLoader\n- A loader to be used on the server to transform client references\n- It is similar to ReactFlightWebpackNodeRegister\n- This enable avoiding transpiling on the fly in production\n\n```jsx\n{\n        test: /\\.client.(js|jsx|ts|tsx)?$/,\n        use: [{\n          loader: require.resolve('./plugin/ReactFlightWebpackLoader'),\n        }, {\n          loader: 'babel-loader?cacheDirectory',\n        }],\n        exclude: [\n          /node_modules/,\n          path.resolve(__dirname, '.serverless'),\n          path.resolve(__dirname, '.webpack'),\n        ],\n      },\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsibelius%2Freact-server-components-playground","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsibelius%2Freact-server-components-playground","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsibelius%2Freact-server-components-playground/lists"}