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.jsonui/artifacts/code-diff-viewer