Back to Projects
Extensions & ToolsJun 24, 2026Published Chrome Extension

Text Splitter & Counter: Chrome Side Panel Tool

Zero-Latency In-Browser Text Segmentation & Real-Time Telemetry Engine

PlatformGoogle Chrome (Side Panel API)
Split Algorithms5 Dedicated Modes
Processing SpeedSub-10ms Instantaneous
Export FormatsClipboard & Numbered .txt Files
OVERVIEW & PHILOSOPHY

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.

THE ENGINEERING MOTIVATION

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.

SYSTEM ARCHITECTURE

Architectural Blueprint

01

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.

02

Real-Time Telemetry Parser

Computes accurate Unicode character, word, and paragraph metrics dynamically on every keystroke using optimized string pointers.

03

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.

CORE CAPABILITIES

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.

TECHNICAL DEEP DIVE

Engineering Challenges & Solutions

Challenge 01

Equally distributing words across N slices without breaking natural sentence cadence.

Engineering Solution

Developed a proportional slice allocation algorithm that balances word counts while respecting paragraph and sentence boundaries wherever feasible.

Challenge 02

Maintaining side panel state during window resizes and tab transitions.

Engineering Solution

Utilized chrome.storage.local backed state synchronization to preserve input fields and split results seamlessly across browser restarts.

TECHNOLOGY FOUNDATION

Technology Stack Breakdown

Extension APIs

Chrome Side Panel APIWebExtensionsTypeScript

Text Algorithms

Multi-mode SegmenterBalanced Slice AllocatorRegex Stream Cleaner

File & Clipboard

Blob DownloaderAsync Clipboard APISession Persistence
OUTCOMES

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.