L
LocalMode

Code Diff Viewer · LocalMode

A unified or side-by-side text/code diff of two local strings (before/after of redacted, translated, or transformed text). Additions/deletions highlighted, computed client-side via a dependency-free LCS line diff. The text analog of BeforeAfterImageViewer. No ML hook, no server.

npx shadcn@latest add https://localmode.ai/r/ui/artifacts/code-diff-viewer.json
Preview Code Diff Viewer on LocalMode's site (opens in a new tab)
Loading the source for ui/artifacts/code-diff-viewer…

ui/artifacts/code-diff-viewer