{"id":16594553,"url":"https://github.com/artem-malko/react-ssr-template","last_synced_at":"2025-08-21T02:08:03.606Z","repository":{"id":37537106,"uuid":"376563533","full_name":"artem-malko/react-ssr-template","owner":"artem-malko","description":"Simple template for a website with a brand new SSR streaming API from React 18","archived":false,"fork":false,"pushed_at":"2024-05-11T18:01:01.000Z","size":5748,"stargazers_count":73,"open_issues_count":2,"forks_count":6,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-07-24T10:31:16.936Z","etag":null,"topics":["css-in-js","esbuild","eslint","pino","react","react-query","react18","reactjs","redux","serverside-rendering","ssr","typescript","webpack"],"latest_commit_sha":null,"homepage":"http://174.138.13.187:5000","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/artem-malko.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2021-06-13T14:26:48.000Z","updated_at":"2025-06-28T10:21:17.000Z","dependencies_parsed_at":"2024-05-11T19:21:58.598Z","dependency_job_id":"a09a642a-d582-4df0-8243-31a42eba1013","html_url":"https://github.com/artem-malko/react-ssr-template","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/artem-malko/react-ssr-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artem-malko%2Freact-ssr-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artem-malko%2Freact-ssr-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artem-malko%2Freact-ssr-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artem-malko%2Freact-ssr-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/artem-malko","download_url":"https://codeload.github.com/artem-malko/react-ssr-template/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artem-malko%2Freact-ssr-template/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271415496,"owners_count":24755639,"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","status":"online","status_checked_at":"2025-08-21T02:00:08.990Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["css-in-js","esbuild","eslint","pino","react","react-query","react18","reactjs","redux","serverside-rendering","ssr","typescript","webpack"],"created_at":"2024-10-11T23:46:37.338Z","updated_at":"2025-08-21T02:08:03.588Z","avatar_url":"https://github.com/artem-malko.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# React application with Streaming Server Side Rendering\n\nA simple template for a website with SSR (with streams) and React 18 with a brand new API — https://github.com/reactwg/react-18/discussions 🔥🔥🔥\n\n🚀 Just start with\n\n```bash\nnpm i \u0026\u0026 make dev\n```\nIf you want to see this project in action: http://174.138.13.187:5000/\n\n🚧 🛠️ Work In Progress 🛠️ 🚧\n\n## Base commands\n\nFirst off, I'm using make) It's not necessary, but as I think it is much powerful than npm from the box.\n\nSo, let's talk about base commands.\n\n* `make dev` — starts a dev-server with a file-watcher + tsc in a watch mode.\n* `make prod` — builds a production version of your application.\n* `make start-prod` — starts built application. Quite useful after `make prod`.\n* `make test` — starts eslint, prettier, tsc and unit-tests\n\n## Technologies\n\n* [typescript](https://www.typescriptlang.org/) as the main language.\n* [Express.js](https://expressjs.com/) as a server. I think about fastify as a replacement for Express.js.\n* [React](https://reactjs.org/) as a view layer. Render to a stream is used for SSR.\n* [React-query](https://react-query.tanstack.com/) as a layer for working with an external data.\n* Own version of CSS-in-JS. Inspired by [aphrodite](https://github.com/Khan/aphrodite). You can find an implementation [here](https://github.com/artem-malko/react-ssr-template/blob/main/src/framework/infrastructure/css). I need my own implementation, cause there is no any other ready solutions in CSS-in-JS, which will work with new React SSR API.\n* My own router, which was created to work with redux. Find more info [here](https://github.com/artem-malko/react-ssr-template/blob/main/src/framework/infrastructure/router). Checkout tests, you will find all cases there. Redux is used under the hood. If you'd like to use redux for your own state — you can wrap your application with a Provider. Redux in the router uses its own context.\n* [webpack](https://webpack.js.org/) + [esbuild](https://esbuild.github.io/) to build the project.\n* [pino](https://github.com/pinojs/pino) as fast and light logger.\n* [mocha](https://mochajs.org/) + [chai](https://www.chaijs.com/) + [sinon](https://sinonjs.org/) + [React testing library](https://testing-library.com/docs/react-testing-library/intro/) to work with tests.\n* [eslint](https://eslint.org/) to find mistakes in the code.\n* [prettier](https://prettier.io/) to forget about code style.\n\nI've tried to add as many comments in the source code as I could. So, all interesting places have dozens of comments to describe, what's happening there. I do apologize for my english)\n\nAs you can see, there is no any state manager for your own data. Redux is used in the router only, react-query is used for any data-fetching. So, you can use anything for any additional data-managment.\n\nIf you want to figure out, how it works, just start from:\n* https://github.com/artem-malko/react-ssr-template/blob/main/src/application/entry/server/index.tsx for a server-side part of the application.\n* https://github.com/artem-malko/react-ssr-template/blob/main/src/application/entry/client/index.tsx for a client-side part of the application.\n\nBut I recommend you to start from https://github.com/reactwg/react-18/discussions cause, there a lot of useful information, which can help you to work with current repo.\n\nFell free to ask me anything in the [issues](https://github.com/artem-malko/react-ssr-template/issues/new).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fartem-malko%2Freact-ssr-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fartem-malko%2Freact-ssr-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fartem-malko%2Freact-ssr-template/lists"}