{"id":31754831,"url":"https://github.com/lukeed/preact-cli-ssr","last_synced_at":"2025-10-09T18:25:12.799Z","repository":{"id":43308979,"uuid":"109445888","full_name":"lukeed/preact-cli-ssr","owner":"lukeed","description":"A quick demo for adding SSR to a Preact CLI app","archived":false,"fork":false,"pushed_at":"2018-05-30T18:20:07.000Z","size":102,"stargazers_count":79,"open_issues_count":3,"forks_count":9,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-06-29T00:19:03.924Z","etag":null,"topics":["express","preact","preact-cli","preact-demos","ssr"],"latest_commit_sha":null,"homepage":"https://preact-cli-ssr.now.sh/","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/lukeed.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-11-03T21:50:01.000Z","updated_at":"2023-01-03T08:45:30.000Z","dependencies_parsed_at":"2022-09-02T22:10:51.971Z","dependency_job_id":null,"html_url":"https://github.com/lukeed/preact-cli-ssr","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lukeed/preact-cli-ssr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukeed%2Fpreact-cli-ssr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukeed%2Fpreact-cli-ssr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukeed%2Fpreact-cli-ssr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukeed%2Fpreact-cli-ssr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lukeed","download_url":"https://codeload.github.com/lukeed/preact-cli-ssr/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukeed%2Fpreact-cli-ssr/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279001940,"owners_count":26083226,"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-10-09T02:00:07.460Z","response_time":59,"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":["express","preact","preact-cli","preact-demos","ssr"],"created_at":"2025-10-09T18:25:09.599Z","updated_at":"2025-10-09T18:25:12.793Z","avatar_url":"https://github.com/lukeed.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Preact CLI SSR Demo\n\n\u003e A quick demo that illustrates how to add SSR to a Preact CLI app\n\nThis demo was built with [`preact-cli`](https://github.com/developit/preact-cli), using the [`default`](https://github.com/preactjs-templates/default) template.\n\nIt's powered by an Express server with `gzip` compression... nothing special there.\n\nBecause of how `preact-cli` produces the `build` directory, the server must respect static/file requests first. This also means that your `build/index.html` will _always_ be served on the `/` request. This isn't a bad thing, it's just something to be aware of!\n\n**Important:** This server behaves exactly like Preact CLI's [prerendering](https://github.com/developit/preact-cli#pre-rendering). This means that if you (or your libraries) have references to `window` or `document`, you must wrap them in conditional statements or include a shim.\n\n\n## Install\n\n```sh\n$ git clone https://github.com/lukeed/preact-cli-ssr\n$ npm install\n$ npm run build\n$ npm start\n```\n\n\n## License\n\nMIT © [Luke Edwards](https://lukeed.com)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flukeed%2Fpreact-cli-ssr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flukeed%2Fpreact-cli-ssr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flukeed%2Fpreact-cli-ssr/lists"}