A zero-dependency JavaScript library for live paragraph, word, and character counting in HTML elements.
Countable is a JavaScript library that adds live paragraph, word, and character counting to HTML elements such as textareas or contenteditable divs. It solves the need for real-time text statistics in web applications without requiring external dependencies, making it ideal for forms, editors, or any interface where users input text.
Frontend developers and web designers building text-heavy interfaces like forms, content editors, or comment systems that require live feedback on text length and structure.
Developers choose Countable for its zero-dependency design, minimal footprint (1KB minified/gzipped), and straightforward API that simplifies adding real-time text counting without bloating their projects.
Add live paragraph-, word- and character-counting to an HTML element.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Has no external library requirements, reducing bundle size and avoiding dependency conflicts, as emphasized in the README's focus on standalone functionality.
At only 1KB minified and gzipped, it adds negligible overhead to web applications, ensuring fast load times and lightweight integration.
Automatically updates counts on every text change via the on() method, providing instant feedback for user inputs without manual refreshes.
Offers options like hardReturns and ignore arrays to tailor counting behavior to specific needs, as detailed in the README's API section.
Limited to paragraphs, words, characters, and sentences; lacks support for more complex text analytics or custom metrics beyond the core features.
Requires developers to build their own interfaces for displaying counts, adding development overhead compared to drop-in solutions with pre-styled elements.
The README covers core usage but lacks extensive examples, best practices, or troubleshooting guides for edge cases, which may hinder adoption in complex scenarios.