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.
pnpm dlx shadcn@latest add "https://localmode.ai/r/ui/artifacts/code-diff-viewer.json"