{"id":23688970,"url":"https://github.com/edivados/vite-plugin-github-codespace-hmr","last_synced_at":"2026-05-01T18:32:02.905Z","repository":{"id":246832132,"uuid":"822246653","full_name":"edivados/vite-plugin-github-codespace-hmr","owner":"edivados","description":"Vite plugin to make hmr work in GitHub Codepsaces.","archived":false,"fork":false,"pushed_at":"2024-12-22T17:11:35.000Z","size":29,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-22T04:42:06.695Z","etag":null,"topics":["codespace","codespaces","github-codespace","github-codespaces","hmr","plugin","vite","vite-plugin","vitejs","vitejs-plugin"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/edivados.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-30T17:36:30.000Z","updated_at":"2024-12-22T17:11:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"687bb26f-bd18-4ef4-9e5d-58db2c1d41d4","html_url":"https://github.com/edivados/vite-plugin-github-codespace-hmr","commit_stats":null,"previous_names":["edivados/vite-plugin-codespaces-hmr","edivados/vite-plugin-github-codespace-hmr"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/edivados/vite-plugin-github-codespace-hmr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edivados%2Fvite-plugin-github-codespace-hmr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edivados%2Fvite-plugin-github-codespace-hmr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edivados%2Fvite-plugin-github-codespace-hmr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edivados%2Fvite-plugin-github-codespace-hmr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/edivados","download_url":"https://codeload.github.com/edivados/vite-plugin-github-codespace-hmr/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edivados%2Fvite-plugin-github-codespace-hmr/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32508900,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"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":["codespace","codespaces","github-codespace","github-codespaces","hmr","plugin","vite","vite-plugin","vitejs","vitejs-plugin"],"created_at":"2024-12-30T00:32:21.967Z","updated_at":"2026-05-01T18:32:02.874Z","avatar_url":"https://github.com/edivados.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vite Plugin GitHub Codespace HMR\n\nVite plugin to set the correct HMR client hostname in GitHub Codespaces when the HMR client port differs from the server port.\n\n\u003e [!NOTE]  \n\u003e While this plugin sets the correct client hostname in Vite's client script, you may need to open the address of the forwaded HMR port in your browser once for it to work. When the server and HMR address are the same, this step is unnecessary because you are likely opening the address to view your app.\n\nReference: https://github.com/vitejs/vite/issues/8666#issuecomment-1315694497\n\n## Installation\n\n```\nnpm install @edivados/vite-plugin-github-codespace-hmr\n```\n\n## Usage\n\n```js\nimport { defineConfig } from \"vite\";\nimport codespaceHMR from \"@edivados/vite-plugin-github-codespace-hmr\";\n\nexport default defineConfig({\n   server: {\n    hmr: {\n      port: 4040\n    }\n  },\n  plugins: [codespaceHMR()]\n});\n```\n\n## Options\n\n### options\n\n- Type: Object\n- Default: {}\n\n#### options.open\n\n- Type: boolean\n- Default: false\n\nIndicates whether the plugin should open the HMR address.\n\n#### options.openTimeout\n\n- Type: number\n- Default: 2000\n\nThe timeout duration (in milliseconds) before the HMR address is opened.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedivados%2Fvite-plugin-github-codespace-hmr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fedivados%2Fvite-plugin-github-codespace-hmr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedivados%2Fvite-plugin-github-codespace-hmr/lists"}