{"id":28635912,"url":"https://github.com/alt-j/fast-react-server","last_synced_at":"2025-06-12T17:11:51.513Z","repository":{"id":57233071,"uuid":"66298239","full_name":"alt-j/fast-react-server","owner":"alt-j","description":"[DEPRECATED] Use last versions of React and Node.js for better performance","archived":false,"fork":false,"pushed_at":"2017-11-23T11:07:46.000Z","size":72,"stargazers_count":137,"open_issues_count":3,"forks_count":11,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-05-13T10:16:24.472Z","etag":null,"topics":["performance","react","render","server-side-rendering"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/alt-j.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}},"created_at":"2016-08-22T18:34:51.000Z","updated_at":"2024-01-04T16:07:04.000Z","dependencies_parsed_at":"2022-08-31T14:11:19.418Z","dependency_job_id":null,"html_url":"https://github.com/alt-j/fast-react-server","commit_stats":null,"previous_names":["alt-j/react-server-rendering"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/alt-j/fast-react-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alt-j%2Ffast-react-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alt-j%2Ffast-react-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alt-j%2Ffast-react-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alt-j%2Ffast-react-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alt-j","download_url":"https://codeload.github.com/alt-j/fast-react-server/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alt-j%2Ffast-react-server/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259509521,"owners_count":22868840,"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":["performance","react","render","server-side-rendering"],"created_at":"2025-06-12T17:11:47.103Z","updated_at":"2025-06-12T17:11:51.497Z","avatar_url":"https://github.com/alt-j.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":" With the release of the new version [React](https://reactjs.org/blog/2017/09/26/react-v16.0.html#better-server-side-rendering) and Node.js the performance issue has ceased to be so acute. Use last versions of React and Node.js for better performance.\n======\n\n# React Server [![Build Status](https://travis-ci.org/alt-j/fast-react-server.svg?branch=master)](https://travis-ci.org/alt-j/react-server) [![Coverage Status](https://coveralls.io/repos/github/alt-j/fast-react-server/badge.svg?branch=master)](https://coveralls.io/github/alt-j/fast-react-server?branch=master)\n\nIt's high speed react mock for server rendering.\nYou can use it with [fast react render](https://github.com/alt-j/fast-react-render), in that case render will be **12 times as fast** (see [benchmarks](https://github.com/alt-j/react-server-benchmark)) as [traditional react rendering](https://facebook.github.io/react/docs/environments.html) (in production mode).\n\n## Quick start\n```sh\nnpm install fast-react-render fast-react-server\n```\n\n```js\nvar React = require('fast-react-server');\nvar ReactRender = require('fast-react-render');\n\nvar element = React.createElement(\n    React.createClass({\n        render: function () {\n            return React.createElement('div', {}, this.props.text);\n        }\n    }),\n    {text: 'some text'}\n);\nconsole.log(ReactRender.elementToString(element));\n```\n\nIf you want use it, you must remember: each component, which you want render, you must declared with this mock (configure you build system for that).\n\nAlso fast react server support [ES6 classes](https://facebook.github.io/react/docs/reusable-components.html#es6-classes) and [Stateless Functions](https://facebook.github.io/react/docs/reusable-components.html#stateless-functions) (see examples: [es6](examples/es6.jsx) and [stateless-function](examples/stateless-function.js)).\n\nMore examples:\n- tiny [seed project](https://github.com/alt-j/fast-react-seed) (in progress);\n- [examples](examples/) for main features.\n\n## Cache\nFast react server support cache for component which implement in [fast react render](https://github.com/alt-j/fast-react-render).\nSee how it use [here](https://github.com/alt-j/fast-react-render#cache).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falt-j%2Ffast-react-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falt-j%2Ffast-react-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falt-j%2Ffast-react-server/lists"}