{"id":18830062,"url":"https://github.com/brycedorn/react-snap-action","last_synced_at":"2026-05-09T02:13:56.696Z","repository":{"id":163502911,"uuid":"606856130","full_name":"brycedorn/react-snap-action","owner":"brycedorn","description":"Github Action for pre-rendering via react-snap.","archived":false,"fork":false,"pushed_at":"2023-02-26T20:44:43.000Z","size":32,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-02T12:04:40.352Z","etag":null,"topics":["chrome","deployment","headless-chrome","prerender","puppeteer","react-snap","server-side-rendering","ssr"],"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/brycedorn.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-02-26T19:05:29.000Z","updated_at":"2024-05-07T20:14:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"f9a8c89e-2280-4168-a78f-c9a138459bfd","html_url":"https://github.com/brycedorn/react-snap-action","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brycedorn%2Freact-snap-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brycedorn%2Freact-snap-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brycedorn%2Freact-snap-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brycedorn%2Freact-snap-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brycedorn","download_url":"https://codeload.github.com/brycedorn/react-snap-action/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239765685,"owners_count":19693175,"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":["chrome","deployment","headless-chrome","prerender","puppeteer","react-snap","server-side-rendering","ssr"],"created_at":"2024-11-08T01:47:30.128Z","updated_at":"2026-01-23T22:30:13.980Z","avatar_url":"https://github.com/brycedorn.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-snap action\n\n[![Test SSR](https://github.com/brycedorn/react-snap-action/actions/workflows/test.yml/badge.svg)](https://github.com/brycedorn/react-snap-action/actions/workflows/test.yml)\n\nThis action uses [react-snap](https://github.com/stereobooster/react-snap) to pre-render a web application into static, hydratable HTML.\n\nIf your node-based web application has a `build` script that outputs HTML, this action will render it and update the `index.html` within output directory with the result. This can then easily be deployed to GitHub pages, etc and you'll have some of the benefits of server-side rendering (SSR) without needing a server!\n\nWhile you can include [react-snap](https://github.com/stereobooster/react-snap) as a dependency to directly your project, [puppeteer](https://github.com/puppeteer/puppeteer/tree/main) is heavy and headless Chrome is overkill for a simple web app. This also simplifies the configuration required to enable them to run in CI.\n\n## Usage\n\n```yml\njobs:\n  prerender:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Checkout 🛎️\n        uses: actions/checkout@v3\n      \n      - name: Server-side render\n        uses: brycedorn/react-snap-action@v1.0.2\n```\n\nFor input options see [action.yml](https://github.com/brycedorn/react-snap-action/blob/main/action.yml).\n\n## Why use this?\n\n - Enables SEO for SPAs. Web crawlers only care about `\u003cmeta\u003e` tags in HTML markup, not those rendered client-side.\n - Better performance. As the server frontloads the expensive initial render once, clients only need to [hydrate](https://beta.reactjs.org/reference/react-dom/hydrate) to render the app.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrycedorn%2Freact-snap-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrycedorn%2Freact-snap-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrycedorn%2Freact-snap-action/lists"}