Triamorph Systems

PasteMagic — Smart Clipboard Styling Sanitizer

A fast, 100% client-side web application that acts as a surgical filter between messy sources and clean documents—stripping intrusive inline styles, tracking URLs, and Office XML cruft while preserving intentional formatting.

Sanitize Latency
0ms
Privacy
100% Local
Build JS
86 kB gzip
Unit Tests
8 Suites

Measured Outcome & Business ROI

Shipped a sub-700ms build, zero-dependency client tool backed by 8 Vitest suites, eliminating document styling pollution while guaranteeing 100% local privacy in browser memory.

Business Challenge & Operational Bottlenecks

When copying text from modern web pages, Google Docs, or Microsoft Office documents, users unknowingly paste dozens of intrusive styling rules: garish colors, inconsistent font sizes, highlighter backgrounds, tracking parameters, and Office XML cruft. The universal workaround has always been pasting into Notepad first—obliterating all formatting and destroying bold emphasis, italics, bullet lists, headings, and hyperlinks.

Architectural Solution & Full-Stack Engineering

We engineered PasteMagic—a fast, 100% client-side web utility that acts as a surgical filter. Built on native browser DOMParser sandboxing, it converts Google Docs styled spans into semantic tags, purges tracking query parameters, straightens smart quotes, and writes both rich text HTML and plain text simultaneously using modern asynchronous multi-MIME ClipboardItem APIs, complete with zero-friction global hotkeys (Ctrl+V to sanitize, Ctrl+C to copy).

Core Modules & Delivered Capabilities

  • Always-on granular toggles for bold, italic, underline, lists, headings, and hyperlinks
  • Automatic font family, custom size, text color, and highlighter background stripping
  • Sandboxed DOMParser traversal converting Google Docs styled spans into and
  • Intelligent URL cleaning removing tracking parameters (utm_*, fbclid, gclid) and dangerous schemes
  • Zero-width space removal, smart quote straightening, and Microsoft Word XML cruft stripping
  • Multi-MIME ClipboardItem writer enabling clean rich-text and plain-text copy simultaneously
Technology Stack: ReactTypeScriptTailwind CSSViteDOMParserClipboardItem APIVitest
Engineering Practice Blueprint

Custom Web Development Services (Next.js & React) →

Custom web development services using React and Next.js. We build corporate sites, SaaS portals, and web platforms with sub-1.5s load times and 98+ Lighthouse scores.

Explore Web Development Capabilities & Architecture →

Related Technical Articles & Engineering Guides

Explore more case studies in our Case Studies & Portfolio → or Request a Custom Technical Offer →