惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

月光博客
月光博客
J
Java Code Geeks
F
Fortinet All Blogs
Blog — PlanetScale
Blog — PlanetScale
P
Proofpoint News Feed
U
Unit 42
B
Blog
宝玉的分享
宝玉的分享
腾讯CDC
Microsoft Azure Blog
Microsoft Azure Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
Last Week in AI
Last Week in AI
博客园 - Franky
博客园 - 三生石上(FineUI控件)
人人都是产品经理
人人都是产品经理
Martin Fowler
Martin Fowler
博客园_首页
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
云风的 BLOG
云风的 BLOG
L
LangChain Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Y
Y Combinator Blog
The GitHub Blog
The GitHub Blog
博客园 - 叶小钗

Show HN

GitHub - astefanutti/shaderbang: Shebang for Shaders Show HN: Generate Claude Code Workflows using Spec Driven Development approach Show HN: AI agents for UK GDAD PCF roles and their skills The Two Pillars: Mixer Mode and Meta-Software in the Reorganization of Software Work After AI GitHub - JaiCode08/teleport-env What 1,000+ Harness Experiments Taught Me About Self-Improving Agents Show HN: Liiists, a Markdown-first, iOS and CLI list app SwiperTab – Get this Extension for 🦊 Firefox (en-US) GitHub - kouhxp/fftext: Summarize, explain, fact-check, or translate any text, URL, or file. No GPU. No cloud. One command GitHub - sweetpad-dev/sweetpad: Develop Swift/iOS projects using VSCode GitHub - dogmaticdev/IRON: IRON a.k.a. Intermediate Representation Object Notation is a Interpreter/Database that is used to create Programming Languages. GitHub - sjhalani7/vaen: Package your AI coding harness into a portable .agent file, and share it across repos, teams, & the community without ever having to copy-paste instructions, skills, MCP config, or secrets. Show HN: Gandalf the Grader Show HN: Citadeld – replay any CI failure locally from a single file GitHub - tdortman/cuSBF: High-Performance GPU Super Bloom Filter coral-ai/claude-code-token-xray at main · Coral-Bricks-AI/coral-ai GitHub - ulyssestenn/funes: Funes is a Git-based framework for LLM-managed knowledge work: an AI Librarian ingests raw sources, builds an interlinked Markdown knowledge base, and uses it to produce cited reports, analyses, and other outputs. GitHub - ThatXliner/gah: Git Add Hunk, built for agents to use GitHub - harmont-dev/harmont-cli: Command-line client for the Harmont CI platform GitHub - brooksmcmillin/mcp-authflow: OAuth 2.0 Authorization Server framework for MCP servers GitHub - javaid-codes/audit-supply-chain-agents GitHub - amorey/gochan: A small library of common channel architectures for Go, inspired by Rust GitHub - arifozgun/OpenGem: Free, Open-Source AI API Gateway with Gemini, OpenAI & Anthropic Compatibility in 1 file GitHub - Pranesh950/BioPetals: 🌸 Run BIOxAI models at home, BitTorrent-style. Fine-tuning and inference up to 10x faster than offloading GitHub - cnguyen14/bounty-doctor: Diagnose a GitHub bounty issue before you waste hours: detects honeypot scam repos, AI-bot attempt swarms, and stale contests. Show HN: CoreMCP – MCP Server for On-Prem DBs Show HN: KittyHTML – Render HTML/CSS as an inline image in your terminal GitHub - bingud/filemat: Web-based file manager Show HN: TruthLens – Free multi-signal deepfake image detector GitHub - apexlocal-jz/claude-usage-tray: Windows system-tray app showing your Claude Code rate-limit usage at a glance. Zero deps, ~300 lines of PowerShell. Cross-IDE (works regardless of VS Code, Cursor, plain terminal).
GitHub - donghaxkim/react-rewrite: visual editor (figma) ...
donghaxkim · 2026-05-31 · via Show HN

react-rewrite lets you edit a React app visually while it is running locally, then automatically writes those changes back to the source files in your project.

It is built for local development and works by opening a proxy in front of your dev server and injecting an overlay into the page.

Demo

React Rewrite GIF Converter

full demo: https://x.com/imdonghakim/status/2038230475894899119

Fastest path

You do not need to download or clone this repo.

From the root of your React app:

npm install -D react-rewrite-cli

Start your dev server, then in a second terminal run:

If you want to try it without installing first:

npx react-rewrite-cli@latest

What it does

  • Select an element and inspect its component name, file path, and line number
  • Edit supported Tailwind-based layout, spacing, size, typography, and color properties
  • Double-click text to edit it inline
  • Copy, paste, and duplicate elements
  • Delete elements
  • Reorder sibling elements
  • Stage multiple changes and apply them with Confirm
  • Undo in-progress canvas changes and review applied changes in the changelog

Requirements

  • Node.js 20+
  • A React project (18+)
  • A running development server
  • Supported app setups: Next.js, Vite, and Create React App

Tailwind CSS is recommended if you want to use the property editor. Text editing and some structural actions do not depend on Tailwind.

Install

Run this in the root of the React app you want to edit:

npm install -D react-rewrite-cli

If you don't want to install it first, you can also run it directly with npx react-rewrite-cli@latest.

Quick start

  1. Start your React dev server as usual.
  2. In a second terminal, from the same project root, run:

If auto-detection does not pick the right port, pass it explicitly:

The tool opens a local proxy in your browser, shows the editing overlay, and writes confirmed changes back into files inside your project.

Basic flow

  1. Click an element to inspect and select it.
  2. Edit properties in the sidebar, drag to reorder where supported, or double-click text to change copy.
  3. Review pending changes in the UI.
  4. Click Confirm to apply them to your source files.

CLI options

react-rewrite [options] [port]

Arguments:
  port           Dev server port override

Options:
  --no-open      Don't open browser automatically
  --host <host>  Dev server host (default: "localhost")
  --verbose      Enable debug logging

Shortcuts

Shortcut Action
Ctrl/Cmd + C Copy selected element
Ctrl/Cmd + V Paste copied element as sibling
Ctrl/Cmd + D Duplicate selected element in place
Delete / Backspace Remove selected element
Ctrl/Cmd + Z Undo canvas changes
Ctrl/Cmd + Shift + L Toggle changelog
Ctrl/Cmd + Click Follow links through the overlay
Double-click text Edit text inline

Notes

  • Run react-rewrite from your app's root directory so it can detect the framework and safely resolve file paths.
  • It only works against development builds, not production builds.
  • Only files inside the current project are eligible for writes.

Development

To work on this repository itself:

pnpm install
pnpm build
pnpm test -- --run

For iterative CLI development:

You will still need a separate supported React app running locally to test the tool end to end.

Project structure

packages/
  cli/      CLI, proxy server, and source transforms
  overlay/  Injected browser overlay
  shared/   Shared TypeScript types

License

MIT