Edit live pages straight into source.

Select elements on your Vite dev server; Glide writes atomic diffs.

Open source · Apache 2.0Contribute
Mockup to live source in 10 s

Watch the code change live.

Scrub real clips of token rewrites, component scopes, and refusals.

App.tsx / Button.tsx

Updates only text-brand-500 in App.tsx.

Rewrites md:text-7xl; comments stay intact.

Targets one usage, definition, or variant.

Refuses unsafe edits across four frameworks.

Exact targeting
File, line, column, JSX hash.
Stale-file guard
SHA-256 blocks stale edits.
Class expressions
cn, clsx, cva, template strings.
Local loopback
127.0.0.1 + session token.

Attach Glide to Vite.

vite.config.ts
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import { glideSourceStamping } from '@srivarsank/glide/vite-plugin';

export default defineConfig({
  plugins: [react(), glideSourceStamping()],
});
File typeStyles, textStructure
JSX / TSXYesYes
Vue, Svelte, AstroYesRefused
Plain HTMLYesRefused

Trace the HMR-to-AST write loop.

  1. 01

    Source files

    .tsx .vue .svelte .astro .html

    Repo stays single source.

  2. 02

    Vite stamping

    glideSourceStamping()

    Stamps file, line, column.

  3. 03

    Browser canvas

    127.0.0.1:5173/__glide/

    Sends loopback edit transaction.

  4. 04

    Atomic write

    SHA-256 + temp rename

    Patches token; triggers HMR.

Hand canvas selections to MCP.

Click any command or prompt to copy.

Common questions.

Direct answers on production output, AST safety, MCP agents, and open-source licensing.

Does Glide ship any runtime code or attributes to production?

No. glideSourceStamping() is a dev-only Vite plugin. Production builds emit zero data-gl-source attributes, zero bridge scripts, and zero editor assets.

Which frameworks and build tools does Glide support?

Glide works with Vite 6, 7, and 8 projects using React (JSX/TSX), Vue, Svelte, Astro, and plain HTML. JSX/TSX supports full style, text, and structural edits (insert, move, group, extract); Vue, Svelte, Astro, and HTML support class, inline style, and text edits. Webpack and Next.js are not supported.

Will Glide reformat my files or strip Tailwind variants like md: and hover:?

No. Glide splices only the edited token directly into your original source text so indentation, quotes, and comments stay untouched. For Tailwind, it replaces only the utility prefix in the active breakpoint or pseudo-state scope, preserving responsive variants, arbitrary values, and theme tokens.

Why does Glide refuse edits with STALE_DIGEST, STALE_NODE, or UNSUPPORTED_OPERATION?

Refusals are intentional safety gates so Glide never guesses in source code. STALE_DIGEST or STALE_NODE means the file changed externally after selection—re-select the element on the canvas. UNSUPPORTED_OPERATION means the target uses a computed binding (:class, class:list, {...spread}) or unsupported structural edit; edit that binding directly in source.

Why does the editor open on 127.0.0.1 instead of localhost?

For browser origin isolation. The editor serves on 127.0.0.1 while the preview iframe loads your app on localhost, preventing scripts running inside your app from reading the editor page or issuing write transactions.

How do Claude Code, Cursor, Antigravity, and Codex work with Glide?

Install Glide’s three bundled skills and register the stdio MCP server (14 tools including get_selection, get_source, update_styles, and insert_markup). Agents write through the same local transaction server, matching your style format and joining canvas undo history.

What is {false && <div data-gl-workspace-id="...">} in my JSX?

That is Glide’s pasteboard. Dragging an element off the canvas stores it as a non-rendering draft in source so you can drag it back later without losing JSX structure or styling. Do not delete it as dead code.

Is Glide free and open source? How can I contribute?

Yes. Glide is 100% open source under the Apache 2.0 license with no accounts, cloud sync, or telemetry. Pull requests for framework adapters, AST edge cases, canvas UX, docs, and tests are welcome on GitHub or via the Contact & Contribute page.

Open source. Built with contributors.

Apache 2.0 licensed. Star the repo, open an issue, or contribute adapters, AST fixes, and agent skills.

Contribute / ContactStar on GitHub
Glide walkthrough (2:22)