{"id":28635903,"url":"https://github.com/alt-j/fast-react-render","last_synced_at":"2025-06-12T17:11:50.752Z","repository":{"id":57233072,"uuid":"67038071","full_name":"alt-j/fast-react-render","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:08:54.000Z","size":37,"stargazers_count":99,"open_issues_count":2,"forks_count":5,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-05-22T22:56:11.517Z","etag":null,"topics":["cache","performance","react","react-dom","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-31T13:04:56.000Z","updated_at":"2024-04-23T07:58:37.000Z","dependencies_parsed_at":"2022-08-31T14:11:24.010Z","dependency_job_id":null,"html_url":"https://github.com/alt-j/fast-react-render","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/alt-j/fast-react-render","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alt-j%2Ffast-react-render","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alt-j%2Ffast-react-render/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alt-j%2Ffast-react-render/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alt-j%2Ffast-react-render/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alt-j","download_url":"https://codeload.github.com/alt-j/fast-react-render/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alt-j%2Ffast-react-render/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259509523,"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":["cache","performance","react","react-dom","render","server-side-rendering"],"created_at":"2025-06-12T17:11:46.361Z","updated_at":"2025-06-12T17:11:50.731Z","avatar_url":"https://github.com/alt-j.png","language":"JavaScript","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 render [![Build Status](https://travis-ci.org/alt-j/fast-react-render.svg?branch=master)](https://travis-ci.org/alt-j/fast-react-render) [![Coverage Status](https://coveralls.io/repos/github/alt-j/fast-react-render/badge.svg?branch=master)](https://coveralls.io/github/alt-j/fast-react-render?branch=master)\n\nThe module for rendering react-element in the server **3 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\nAll you need to use it, is only:\n\n1) install package\n\n```sh\nnpm install fast-react-render\n```\n\n2) replace you render to:\n\n```js\nvar ReactRender = require('fast-react-render');\n\nvar element = React.createElement(Component, {property: 'value'});\nconsole.log(ReactRender.elementToString(element, {context: {}}));\n```\n\n## Cache\n\nReact server rendering support cache for component.\n\nFirst of all, you must choose cache system. It can be any system, which implement ICache interface ([interface](src/interfaces/i-cache.js)).\nFor caching, component must implement ICacheableComponent interface ([interface](src/interfaces/i-cacheable-component.js)).\n\nExample with using LRU cache: [render with LRU cache](examples/cache.js) (install `lru-cache` package first).\n\n## What's next\n\nIf you need more performance, you can try use [fast-react-server](https://github.com/alt-j/fast-react-server) - is high speed mock for react, which provide rendering **11 times as fast** as traditional, but require more configuration for build system.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falt-j%2Ffast-react-render","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falt-j%2Ffast-react-render","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falt-j%2Ffast-react-render/lists"}