{"id":13602554,"url":"https://github.com/RisingStack/koa-prerender","last_synced_at":"2025-04-11T08:33:01.640Z","repository":{"id":19481385,"uuid":"22727024","full_name":"RisingStack/koa-prerender","owner":"RisingStack","description":"KOA middleware for prerendering javascript-rendered pages on the fly for SEO","archived":false,"fork":false,"pushed_at":"2021-11-24T13:52:45.000Z","size":12,"stargazers_count":76,"open_issues_count":6,"forks_count":17,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-03-26T12:02:24.989Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/RisingStack.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":"2014-08-07T15:47:54.000Z","updated_at":"2025-02-23T04:33:25.000Z","dependencies_parsed_at":"2022-09-14T13:41:00.228Z","dependency_job_id":null,"html_url":"https://github.com/RisingStack/koa-prerender","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RisingStack%2Fkoa-prerender","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RisingStack%2Fkoa-prerender/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RisingStack%2Fkoa-prerender/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RisingStack%2Fkoa-prerender/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RisingStack","download_url":"https://codeload.github.com/RisingStack/koa-prerender/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248361678,"owners_count":21090962,"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":[],"created_at":"2024-08-01T18:01:28.195Z","updated_at":"2025-04-11T08:32:56.621Z","avatar_url":"https://github.com/RisingStack.png","language":"JavaScript","readme":"# koa-prerender [![Build Status](https://travis-ci.org/RisingStack/koa-prerender.svg)](https://travis-ci.org/RisingStack/koa-prerender)\n\n[![NPM](https://nodei.co/npm/koa-prerender.png)](https://nodei.co/npm/koa-prerender/)\n\n**KOA middleware for prerendering javascript-rendered pages on the fly for SEO**\n\nThis [koa](https://koajs.com) middleware intercepts requests to your Node.js website from crawlers, and then makes a call to the (external)\n[Prerender](https://prerender.io/) service to get the static HTML instead of the javascript for that page.\n\n## Setup\n\n### Prerequisites\n\nInstall [Prerender](https://github.com/prerender/prerender) on a server of your choice.\n\n### Install\n\nInstall the [package](https://npmjs.org/package/koa-prerender) with [npm](https://npmjs.org):\n\n```sh\n$ npm install koa-prerender\n```\n\n### Usage\n\n```js\nvar prerender = require('koa-prerender');\n\n// Options\nvar options = {\n  prerender: PRERENDER_SERVER_URL   // optional, default:'http://service.prerender.io/'\n  protocol: 'http',                 // optional, default: this.protocol\n  host: 'www.risingstack.com'       // optional, default: this.host,\n  prerenderToken: ''                // optional or process.env.PRERENDER_TOKEN\n};\n\n// Use as middleware\napp.use(prerender(options));\n```\n\n## License\n\nISC\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FRisingStack%2Fkoa-prerender","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FRisingStack%2Fkoa-prerender","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FRisingStack%2Fkoa-prerender/lists"}