{"id":19876098,"url":"https://github.com/anilkumarum/live-preview-server","last_synced_at":"2025-06-25T03:05:10.459Z","repository":{"id":167009389,"uuid":"642104439","full_name":"anilkumarum/live-preview-server","owner":"anilkumarum","description":"Dependency-free native nodejs live preview server","archived":false,"fork":false,"pushed_at":"2023-06-21T10:32:20.000Z","size":72408,"stargazers_count":5,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-01T23:37:31.430Z","etag":null,"topics":["reload-server","vscode-extensions"],"latest_commit_sha":null,"homepage":"https://marketplace.visualstudio.com/items?itemName=anilkumarum.live-preview-server","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/anilkumarum.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2023-05-17T20:42:58.000Z","updated_at":"2024-11-12T17:11:33.000Z","dependencies_parsed_at":"2024-03-31T10:45:42.547Z","dependency_job_id":null,"html_url":"https://github.com/anilkumarum/live-preview-server","commit_stats":null,"previous_names":["anilkumarum/live-preview-server"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/anilkumarum/live-preview-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anilkumarum%2Flive-preview-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anilkumarum%2Flive-preview-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anilkumarum%2Flive-preview-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anilkumarum%2Flive-preview-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anilkumarum","download_url":"https://codeload.github.com/anilkumarum/live-preview-server/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anilkumarum%2Flive-preview-server/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261795317,"owners_count":23210618,"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":["reload-server","vscode-extensions"],"created_at":"2024-11-12T16:30:36.621Z","updated_at":"2025-06-25T03:05:10.424Z","avatar_url":"https://github.com/anilkumarum.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Dependency-free native nodejs live preview server\n\n- Updates your files instantly while typing on your keyboard\n- Don't need to leave vscode. Embedded inline preview\n- Url path completion intellisense in embedded preview\n- file extension **(.html)** don't require in url\n- Link multiple custom routes on any file url [know more]()\n- Option to choose browser in status bar [know more]()\n- Typescript support out of box [know more]().\n- Trigger reload only fetched files not all workspace's files.\n- 10x-30x less memory consumption due to dynamic loading and no dependency.\n\n⚠️ WARNING: This extension is still under development! ⚠️\n\n# Features\n\n### HTML File Previewing\n\nPreview your HTML files quickly by clicking the preview button in the top right corner of your editor or using the context menu.\n\n![embedded-preview](https://raw.githubusercontent.com/anilkumarum/live-preview-server/master/images/embedded-preview.gif)\n\n### Live Refreshing\n\nlive refresh is the reason for writing whole extension from scratch.\n\n- It doesn't reload whole browser page on every key like others do.\\\n  It only update changed DOM element using javascript.\n\n- It doesn't compare 100+ dom's properties like others do.\\\n  **LPS** know where you are and which tag or attributes are you updating then just update only that property.\n\n| Features  | Live preview Server | Live Preview             | Five Server                              |\n| --------- | ------------------- | ------------------------ | ---------------------------------------- |\n| Mechanism | update element      | reload page on every key | find by regrex \u0026 compare, update element |\n| file type | Html \u0026 Css          | reload every file        | only Html                                |\n\n### Reload only fetched files\n\nOther live server reload webpage on any file changed in open workspace.\\\n**Live preview server** reload only fetched files\n\n### Page url path completion intellisense\n\n#### In embedded preview\n\n**Live Preview Server** show path completion same as vscode show in `src=\"\"` or `import('')`.\n![path-intellisense](https://raw.githubusercontent.com/anilkumarum/live-preview-server/master/images/path-intellisense.gif)\n\n#### In browser\n\nGo to `/paths` and hover over file and directories tree then press enter key.\n![directory-listing](https://raw.githubusercontent.com/anilkumarum/live-preview-server/master/images/directory-listing.gif)\n\n### Map custom paths with file paths\n\nDon't need to add `.html` in browser address bar.\\\n`LPS` let you to map multiple custom paths to your files.\n![tree-structure](https://raw.githubusercontent.com/anilkumarum/live-preview-server/master/images/tree-structure.png)\n\n### HMR features like vite\n\n### Embedded Preview\n\nPreview current html file in right panel in vscode. Don't need to leave vscode.\\\nkeyboard shortcuts:`ctrl+alt+v`\n\n### keys features\n\n- Path completion intellisense\n- Page history tracking\n- URL bar for address-based navigation\n- Open the editor's webview DevTools\n\n### External Browser Previewing\n\nLaunch any browser from status bar in one click.\\\nChoose and launch different browser from status bar in one click.\n![external-browser](https://raw.githubusercontent.com/anilkumarum/live-preview-server/master/images/external-browser.gif)\n\n### External Browser Debugging\n\nRun `LPS: Start debug server` in the command palette to start debugging server.\n\n### Console Output Channel (For Embedded Preview)\n\nFor a simple view of the embedded preview's console messages, go to the Output tab and select `LPS Preview log` Console in the dropdown.\n\n### HTTP proxy,custom domain\n\ncoming soon...\n\n### Lazy loading\n\nAll existing live server load whole extension every time when you launch vscode.\\\nThis extension take different approach: `dynamic importing`. When you open html file then this extension load with status bar functionality only. This extension only load its core functionality when you give command.\n\n## Some gotchas in live refresh\n\n- live refresh not update on boolean attribute e.g hidden\\\n  solution: add `=\"\"`. example: `hidden=\"\"`\n\n- CSS live refresh doesn't update in html file\\\n  solution: Use css file\n\n# FAQ\n\n1. How to add workspace specific settings\n   ans: Copy setting id from vscode settings page. \\\n   Add setting id in `settings.json` inside `.vscode` folder\n\n2. Why I should choose this instead of [live-server](https://marketplace.visualstudio.com/items?itemName=ritwickdey.LiveServer)\n\n| Features     | Live preview Server                      | Live Server                     |\n| ------------ | ---------------------------------------- | ------------------------------- |\n| Reload       | Only trigger reload on fetched files     | trigger reload page on any file |\n| Inline-panel | ✅ Available                             | ❌ Not available                |\n| Dependency   | Zero dependency                          | More than 20 dependencies       |\n| Live refresh | Instant update on every keystroke        | Need to save file               |\n| Css Reload   | HMR replace stylesheet (no FOUC)         | Css replace cause FOUC          |\n| PHP          | Web extension coming soon                | Web extension                   |\n| Https        | ❌ coming soon                           | ✅ Available                    |\n| CORS \u0026 proxy | ❌ coming soon                           | ✅ Available                    |\n| Debug        | auto-config debug and start in one click | Manually config                 |\n| Browser      | Select any browser in status bar         | Only default browser            |\n| File Ext     | Don't require `.html` in url             | Require `.html` in url          |\n| urlPath      | Tree-structure path intellisense         | Directory listing               |\n\n# Issue Tracking\n\nPlease file issues against the [Live Preview Server repository](https://github.com/anilkumarum/live-preview-server/issues).\n\n⚠️ NOTE: No tested on macos.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanilkumarum%2Flive-preview-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanilkumarum%2Flive-preview-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanilkumarum%2Flive-preview-server/lists"}