Text Splitter & Counter: Chrome Side Panel Tool
Zero-Latency In-Browser Text Segmentation & Real-Time Telemetry Engine
System Architecture Overview
Text Splitter & Counter is a focused developer and writer productivity extension integrated directly into Google Chrome's native Side Panel. It provides real-time character, word, and paragraph telemetry while dividing long documents into clean, manageable segments across multiple splitting strategies.
Problem Statement
When formatting long-form content, database payloads, or threaded social media posts, users constantly copy text back and forth to third-party web tools. This breaks focus, creates tab clutter, and risks sharing sensitive text with external web servers.
Architectural Blueprint
Side Panel Integration
Runs in Chrome's dedicated side panel docking area, allowing side-by-side editing next to any active web tab without context switching.
Real-Time Telemetry Parser
Computes accurate Unicode character, word, and paragraph metrics dynamically on every keystroke using optimized string pointers.
Batch Exporter with Custom Prefixes
Generates in-memory Blobs and packages segmented slices into numbered text files (e.g. Chapter-1.txt, Part-1.txt) with a single click.
Engineered Feature Toolkit
Five Distinct Split Algorithms
Divide text by Word count, Character threshold, natural Sentences, Paragraph breaks, or evenly distributed Slices.
Live Word & Character Analytics
Instantaneous feedback on total characters, words, sentences, paragraphs, and generated slice count.
Direct .txt File Ingestion
Load source text files directly from local storage without manual copy-paste operations.
Smart Text Normalization
Optional trim toggle to clean up irregular line breaks and whitespace before running split algorithms.
Session History & Persistence
Retains the 5 most recent operations and auto-restores your last active workspace when reopening Chrome.
Engineering Challenges & Solutions
Equally distributing words across N slices without breaking natural sentence cadence.
Developed a proportional slice allocation algorithm that balances word counts while respecting paragraph and sentence boundaries wherever feasible.
Maintaining side panel state during window resizes and tab transitions.
Utilized chrome.storage.local backed state synchronization to preserve input fields and split results seamlessly across browser restarts.
Technology Stack Breakdown
Extension APIs
Text Algorithms
File & Clipboard
Measurable Production Impact
- Streamlines text preparation workflows for developers, writers, and students directly in Chrome.
- Eliminates reliance on external cloud splitters, maintaining 100% data confidentiality.
- Zero network footprint with instant side panel loading.