Run and preview
See the project running next to the code — instantly for a static site, or on a preview machine for a project that needs installing.
YeshBe Code is the environment. Open the project and the Preview tab shows it running, next to the code.
How it runs depends on what the project is, and the difference is worth knowing because only one of the two costs you anything.
Instant preview#
Plain HTML, CSS and JavaScript sites preview the moment you save. There is no build step, nothing to install and nothing to start — the files are the site, so they are served as they are.
Tailwind-based sites built from a CDN work the same way.
A preview machine#
React, Vue, Svelte, Angular, Next.js, Nuxt and Astro projects can't be served as files; they have to be installed and run. For those, the Preview tab shows a Run button.
Pressing it starts a machine for your project: your files are sent to it, dependencies are installed, and the project's dev server starts. The panel shows each stage and the log while it happens, so a failure during install is visible rather than silent.
Once it's up, the preview is the running project, and the bar above it shows the clock, a Restart and a Stop.
Saving a file#
A file you save is sent to the running machine on its own — not the whole project — and the preview reloads. Changes made any other way (an upload, a Git pull, the AI writing files) are picked up the same way, within a second or two.
Two things need a fresh start instead, and both happen by themselves:
- A deleted or renamed file. A running machine can't be told to forget a file, so a new preview is started from the current files.
- A very large set of changes at once. Sending a whole new tree file by file is slower than starting over.
A change to package.json or a config file restarts the dev server. The panel goes back to its loading state until the project is serving again.
It stops when you stop#
A machine left running is time you're paying for and nobody is using. So the preview watches whether anybody is working: anything you do in the editor counts, and so does the pointer being inside the preview itself.
After about a minute of nothing at all, the machine stops. The bar warns you in the final seconds, with a Keep running button if you were only reading.
It also stops when you leave the editor or switch to another version, and Run starts it again whenever you want it back.
When a project can't run here#
Some projects can't: no package.json, no dev script, or a stack the preview doesn't run. The panel says which, rather than failing with a log.
The project list shows the same thing on each card — Instant preview, Can run, Running, or Can't run here with the reason — so you can see it before opening anything.
Edit in the browser#
You edit the code in the browser, with nothing installed on your machine. Edit, save, and see the result next to the code.
Let an AI assistant edit the files#
Connect an AI client through MCP and it can read, search and write the project's files in conversation. See the code project tools.
Next#
- Build the project Run the real build and get the compiled output.
- Publish to a CDN Put it on a live URL.
- Security check Have the code read the way an attacker would read it.