Skip to content

soumendrak/text-counter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Text Counter

GitHub Pages MIT License HTML5 Zero Dependencies

42 characters twitter: 42/280 sms: 42/160

Real-time character, word, sentence, paragraph, and reading-time counter.

Live: https://soumendrak.github.io/text-counter/


Features

  • Real-time: characters (with/without spaces), words, sentences, paragraphs, lines
  • Reading time at 238 words per minute
  • Speaking time at 183 words per minute
  • Twitter/X (280) and SMS (160) limit progress bars
  • Top 5 most frequent characters bar chart
  • Clear button and Paste from clipboard button
  • Dark theme with orange accent (#ff6b35)

How It Works

Every keystroke triggers a counter recalculation. text.split() regex patterns count words, sentences (by . ! ?), and paragraphs (by double newline). Reading time = wordCount / 238, speaking time = wordCount / 183. Frequency analysis builds a character map from the input and displays the top 5 as horizontal bar segments.

Usage

  1. Open https://soumendrak.github.io/text-counter/ in any browser.
  2. No build step, no installation, no server required.
  3. Deploy anywhere — GitHub Pages, Netlify, or any static host.
git clone https://github.com/soumendrak/text-counter.git
# Open index.html directly

License

Licensed under the MIT License.


Built with ❤️ and zero dependencies

About

A single-file, zero-dependency mini project — part of the soumendrak mini HTML collection

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages