{"repo":"humanspeak/svelte-diff","free":true,"listed":false,"github":"https://github.com/humanspeak/svelte-diff","clone":"git clone https://github.com/humanspeak/svelte-diff.git","description":"📜 A powerful, customizable diff-match-patch library for Svelte with TypeScript support","language":"Svelte","stars":10,"topics":["component","diff","diff-match-patch","patch","svelte","svelte5","sveltekit"],"license":"MIT","category":"saas-starters-boilerplates","readme_excerpt":"@humanspeak/svelte-diff A powerful, customizable diff-match-patch component for Svelte with TypeScript support. Features - 🚀 High-performance diff algorithm implementation - 💪 Complete TypeScript support with strict typing - 🎨 Customizable diff rendering with CSS classes OR svelte snippets - 🔒 Safe and efficient text comparison - 🎯 Configurable cleanup algorithms (semantic and efficiency) - 🧪 Comprehensive test coverage (vitest and playwright) - 🔄 Svelte 5 runes compatibility - ⚡ Configurable timeout for large text comparisons - 📊 Detailed timing and diff statistics - 🎨 Customizable diff highlighting styles - 🔍 Real-time diff updates - 🎯 Expected patterns — mark dynamic regions (dates, names) as \"expected\" instead of diffs Installation Or with your preferred package manager: Basic Usage TypeScript Support The package is written in TypeScript and includes full type definitions: Props Prop Type Default Description ------------------- --------------------------- ---------- ------------------------------------------------------------------------------------- originalText string required The original (before/source) text to compare modifiedText string required The modified (after/target) text to compare timeout number 1 Max diff computation time in seconds; 0 is unlimited cleanupSemantic boolean false Optimize edit boundaries for human readability cleanupEfficiency number 4 Edit cost used by efficiency cleanup; 0 disables it compact boolean true Render unstyled equal te","default_branch":null,"files":null,"tree":[],"storefront":"/r/humanspeak","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/humanspeak/svelte-diff/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}