{"id":13679443,"url":"https://github.com/preactjs/prefresh","last_synced_at":"2026-04-08T08:02:14.760Z","repository":{"id":38381532,"uuid":"259910254","full_name":"preactjs/prefresh","owner":"preactjs","description":"Hot Module Reloading for Preact","archived":false,"fork":false,"pushed_at":"2026-04-02T17:38:45.000Z","size":3723,"stargazers_count":387,"open_issues_count":14,"forks_count":47,"subscribers_count":3,"default_branch":"main","last_synced_at":"2026-04-04T12:11:47.084Z","etag":null,"topics":["hmr","hmr-enabler","hmr-plugin","hooks","preact"],"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/preactjs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["preactjs"],"open_collective":"preact"}},"created_at":"2020-04-29T11:45:57.000Z","updated_at":"2026-03-31T17:48:27.000Z","dependencies_parsed_at":"2023-09-27T10:54:31.042Z","dependency_job_id":"6a078ba2-169c-4130-9e7a-4b6d12e9ed77","html_url":"https://github.com/preactjs/prefresh","commit_stats":{"total_commits":439,"total_committers":37,"mean_commits":"11.864864864864865","dds":0.4510250569476082,"last_synced_commit":"d127aefbc786a215c777cb47949f307fac89309d"},"previous_names":["jovidecroock/preact-refresh","jovidecroock/prefresh"],"tags_count":225,"template":false,"template_full_name":null,"purl":"pkg:github/preactjs/prefresh","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/preactjs%2Fprefresh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/preactjs%2Fprefresh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/preactjs%2Fprefresh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/preactjs%2Fprefresh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/preactjs","download_url":"https://codeload.github.com/preactjs/prefresh/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/preactjs%2Fprefresh/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31545909,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T16:28:08.000Z","status":"online","status_checked_at":"2026-04-08T02:00:06.127Z","response_time":54,"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":["hmr","hmr-enabler","hmr-plugin","hooks","preact"],"created_at":"2024-08-02T13:01:05.650Z","updated_at":"2026-04-08T08:02:14.730Z","avatar_url":"https://github.com/preactjs.png","language":"JavaScript","readme":"# Prefresh\n\nFast-refresh for Preact!\n\n## Integrations\n\n- [@web/dev-server](https://github.com/preactjs/prefresh/tree/main/packages/web-dev-server)\n- [gatsby](https://www.gatsbyjs.org/packages/gatsby-plugin-preact/)\n- [nollup](https://github.com/preactjs/prefresh/tree/main/packages/nollup)\n- [rolldown](https://github.com/preactjs/prefresh/tree/main/packages/rolldown)\n- [vite](https://github.com/preactjs/prefresh/tree/main/packages/vite)\n- [webpack](https://github.com/preactjs/prefresh/tree/main/packages/webpack)\n\n[Writing your own integration](https://dev.to/jovidecroock/prefresh-fast-refresh-for-preact-26kg)\n\n## Best practices\n\n### Recognition\n\nWe need to be able to recognise your components, this means that components should\nstart with a capital letter and hook should start with `use` followed by a capital letter.\nThis allows the Babel plugin to effectively recognise these.\n\nDo note that a component as seen below is not named.\n\n```jsx\nexport default () =\u003e {\n  return \u003cp\u003eWant to refresh\u003c/p\u003e;\n};\n```\n\nInstead do:\n\n```jsx\nconst Refresh = () =\u003e {\n  return \u003cp\u003eWant to refresh\u003c/p\u003e;\n};\n\nexport default Refresh;\n```\n\nWhen you are working with HOC's be sure to lift up the `displayName` so we can\nrecognise it as a component.\n\n## Usage in IE11\n\nIf you want to use `@prefresh/webpack` with IE11, you'll need to transpile the `@prefresh/core` and `@prefresh/utils` packages.\n","funding_links":["https://github.com/sponsors/preactjs","https://opencollective.com/preact"],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpreactjs%2Fprefresh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpreactjs%2Fprefresh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpreactjs%2Fprefresh/lists"}