Download and set up vite-dynamic-workers-preview
vite-dynamic-workers-preview lets a local Vite app send each save to a live Cloudflare preview link.
It is made for Windows users who want to:
- open a project
- make a change
- save the file
- see that change on a public preview URL
The app keeps a stable preview link in sync with the latest build. That means you can share one link and keep using it as you work.
Before you start, check that your PC has:
- Windows 10 or Windows 11
- A web browser like Chrome, Edge, or Firefox
- An internet connection
- Enough space for the app and project files
- Node.js installed for local use
- A GitHub account if you plan to work with the source project
Open the project page here:
Visit the vite-dynamic-workers-preview download page
On that page, choose the latest version or source files you want to use. If you download the full project, save it to a folder you can find again, such as Downloads or Documents.
Follow these steps:
- Open the download page in your browser.
- Download the project files to your PC.
- If the files come in a ZIP file, right-click the ZIP file and choose Extract All.
- Pick a folder for the extracted files.
- Open the folder and look for the main project files.
- If you want to run the app from source, install Node.js first.
- Open Command Prompt or PowerShell in the project folder.
- Run the setup commands for the app and its packages.
If you use a package manager, the project is meant to work with a normal Node-based setup. A typical flow is:
- install packages
- start the local Vite app
- keep the dev server running while you work
After setup, start the local preview session.
Use this flow:
- Open the project folder.
- Start the local dev server.
- Save a file in the demo app.
- Wait for the build to finish.
- Open the public preview link in your browser.
- Refresh the page if needed.
The preview host keeps a stable URL that points to the newest worker version. Each save updates the preview behind that same link.
This project has three parts:
- a Vite plugin that watches your local files
- a preview host Worker that serves the current snapshot
- a demo app that shows the preview result in the browser
Here is the basic flow:
- The Vite plugin runs during
vite dev. - When the app starts, it makes a production build.
- When you save a file, it makes another build.
- The build output is packed for the edge runtime.
- The snapshot is sent to the preview host Worker.
- The public URL always points to the newest version.
This setup lets you work locally while still getting a live Cloudflare preview.
This package watches your changes and sends fresh builds to Cloudflare.
It handles the local update flow and keeps the preview link current.
This app acts as the public host for the preview.
It uses:
- a Worker
- a Durable Object
- the Worker Loader binding
This part keeps the stable link in place and serves the latest snapshot.
This is the sample React app.
It shows the current preview version and sends a request to the small edge API.
Use these steps if you are opening the source project on your Windows PC:
- Download the repository from GitHub.
- Extract the files if needed.
- Open the main folder in File Explorer.
- Open PowerShell in that folder.
- Install the project packages.
- Start the demo app.
- Keep the terminal open while you test changes.
- Open the local app in your browser.
If the project has multiple folders, start with the root folder and follow the same package install flow in each app folder.
Once the app is running, use it like this:
- Make a change in the code.
- Save the file.
- Wait for the local build to finish.
- Watch the preview update.
- Open the shared preview link to check the latest result.
This makes it easy to test a React app in a public preview without rebuilding by hand each time.
The app gives you one stable public link.
Use that link when you want to:
- test from another device
- share the current state with a teammate
- compare local edits with the deployed preview
- check the latest build from a browser outside your PC
The link stays the same while the content behind it updates with each save.
In the demo app, you can expect:
- a React page that loads in your browser
- a display of the current preview version
- a small edge API call
- live updates after each save
- a public preview URL that reflects the newest build
If the app does not start, check these points:
- Node.js is installed
- you opened the right folder
- the terminal is still running
- your internet connection is active
- the browser cache is not hiding the latest page
- the preview link was copied in full
If the preview page loads but looks old, refresh the browser and wait a moment for the latest build to finish.
These names matter when you work in the project:
vite-plugin-dynamic-workers-previewpreview-hostdemosrc/edge.ts.dynamic-workers-preview/dist
If you open the source, these files help you find the app flow fast.
A few Windows steps can make setup easier:
- Use File Explorer to find the project folder
- Use the address bar in File Explorer to open PowerShell fast
- Keep one terminal open for the dev server
- Use another terminal if you need to install packages in a second folder
- Pin your browser tab so you can reach the preview link quickly
If you want one simple path, use this order:
- Visit the download page.
- Download the project.
- Extract it.
- Install Node.js if needed.
- Open the project folder.
- Install dependencies.
- Start the app.
- Open the local page in your browser.
- Make a change and save it.
- Open the public preview link.
If you need the project page later, use this link: