SG

srivarsank/glide

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

149 stars 质量 75 趋势 39Apache-2.0

斯里瓦桑克/滑翔是从https://github.com/srivarsank/glide.导入的特工技能候选人

概览

斯里瓦桑克/滑翔是从https://github.com/srivarsank/glide.导入的特工技能候选人

概述(AI 翻译)

本地的React、Vue、Svelte和Astro视觉设计工具。 在实时画布上选择元素,可视化调整样式和布局,并直接写回你的源文件。


什么是滑翔?

Glide 是一个面向前端项目的本地可视化编辑器。它运行在你的浏览器中,并连接到本地开发服务器,允许你选择屏幕上的元素、移动它们以及更改样式。

与导出模型或保存为封闭格式的设计工具不同,Glide会修改你的实际源文件。当你更改颜色、调整填充或将元素拖入新容器时,Glide会对你的JSX、TSX、Vue、Svelte、Astro或HTML文件运行AST代码mod。你的代码保持干净,格式保持完整,你仍掌控版本控制。


它是如何运作的

Glide使用7777端口的iframe代理来显示你正在运行的应用。本地WebSocket服务器负责协调与文件的视觉交互。

  1. 像平常一样运行你的开发服务器(例如,端口5173上的npm run dev。
  2. 开始滑翔,使用npx @srivarsank/glide 5173。
  3. 打开http://localhost:7777。Glide代理你的应用并叠加编辑Chrome。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Local visual design tool for React, Vue, Svelte, and Astro. Select elements on a live canvas, adjust styles and layout visually, and write changes directly back to your source files.


What is Glide?

Glide is a local visual editor for frontend projects. It runs in your browser and connects to your local dev server, letting you select elements on screen, move them, and change their styling.

Unlike design tools that export mockups or save into closed formats, Glide modifies your actual source files. When you change a color, adjust padding, or drag an element into a new container, Glide runs an AST codemod on your JSX, TSX, Vue, Svelte, Astro, or HTML files. Your code remains clean, formatting stays intact, and you stay in control of version control.


How it works

Glide uses an iframe proxy on port 7777 to display your running app. A local WebSocket server coordinates visual interactions with your files.

flowchart LR
    App["Your dev server\n(port 5173 or custom)"]
    Server["Glide server\n(port 7777)"]
    Canvas["Visual canvas\n(browser at localhost:7777)"]
    Files["Source files\n(TSX, Vue, Svelte, Astro, HTML)"]

    App -->|"proxied into"| Canvas
    Canvas -->|"visual edits"| Server
    Server -->|"AST codemods"| Files
    Files -->|"Vite HMR"| App
  1. Run your dev server as usual (for example, npm run dev on port 5173).
  2. Start Glide with npx @srivarsank/glide 5173.
  3. Open http://localhost:7777. Glide proxies your app and overlays an editing chrome.
  4. Click elements on the canvas to inspect their properties, adjust styles, or drag them.
  5. Glide updates your source code with targeted AST modifications.
  6. Changes you make outside Glide in your code editor automatically update the canvas through bidirectional sync, without reloading the iframe.

Architecture: The Figma and v0 model

Glide combines the spatial responsiveness of canvas tools with bidirectional AST synchronization:

Canvas edits                          External code edits
在 GitHub 查看完整 README

推荐工具

换一个关键词,或者移除筛选条件。

安装

npx skillfish add srivarsank/glide
新手?先看 mcpskill.org 教程 →