<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Boris Korolev</title>
    <description>The latest articles on DEV Community by Boris Korolev (@boris_korolev_c67805e62a6).</description>
    <link>https://dev.to/boris_korolev_c67805e62a6</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3938364%2F35c94015-84a6-4407-89e2-0dfc97970294.jpg</url>
      <title>DEV Community: Boris Korolev</title>
      <link>https://dev.to/boris_korolev_c67805e62a6</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/boris_korolev_c67805e62a6"/>
    <language>en</language>
    <item>
      <title>How I Built a Privacy-First Word Counter Chrome Extension (with CJK Support)</title>
      <dc:creator>Boris Korolev</dc:creator>
      <pubDate>Mon, 18 May 2026 15:12:59 +0000</pubDate>
      <link>https://dev.to/boris_korolev_c67805e62a6/how-i-built-a-privacy-first-word-counter-chrome-extension-with-cjk-support-384g</link>
      <guid>https://dev.to/boris_korolev_c67805e62a6/how-i-built-a-privacy-first-word-counter-chrome-extension-with-cjk-support-384g</guid>
      <description>&lt;p&gt;I’ve always been frustrated with online word counters.&lt;/p&gt;

&lt;p&gt;You copy text, paste it into a random website, and hope it doesn’t store your content or track you. For writers, editors, and students who work with sensitive drafts, that’s a real problem.&lt;/p&gt;

&lt;p&gt;So I built &lt;strong&gt;Text Stats — Word &amp;amp; Character Counter&lt;/strong&gt; — a Chrome extension that gives you instant word count, character counter, and full text statistics &lt;strong&gt;right on the page you're reading, 100% offline and private&lt;/strong&gt;. No text ever leaves your device.&lt;/p&gt;

&lt;p&gt;(Previously known as Instant Word Counter — we rebranded to better reflect what the extension actually does: providing complete text stats, not just counting words.)&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why another word counter?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Most existing extensions either:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;require copy-pasting,&lt;/li&gt;
&lt;li&gt;use clunky right-click menus,&lt;/li&gt;
&lt;li&gt;or send your text to external servers for processing.
I wanted something faster, truly private, and capable of delivering full text stats — not just a word count, but sentences, paragraphs, average word length, and more.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;How it works&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Select any text on a webpage.&lt;/li&gt;
&lt;li&gt;Click the extension icon (or press Alt+W).&lt;/li&gt;
&lt;li&gt;See word count, character count (with/without spaces), estimated reading time, and — when you enable Advanced Stats — sentences, paragraphs, average word/sentence length, longest/shortest sentences, and unique words. All in a clean popup.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If no text is selected, the extension gently guides you. No clutter, no confusion.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;CJK character counting&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;One feature I’m especially proud of: the extension correctly handles Chinese, Japanese, and Korean (CJK) characters. When CJK characters are detected, it automatically switches from "Words" to "CJK Characters" — something most word counters get completely wrong.&lt;/p&gt;

&lt;p&gt;It uses the Intl.Segmenter API for word segmentation and falls back to a regex-based counter for older browsers.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Tech stack&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Vanilla JavaScript (no frameworks)&lt;/li&gt;
&lt;li&gt;Chrome Manifest V3&lt;/li&gt;
&lt;li&gt;Intl.Segmenter for accurate word counting&lt;/li&gt;
&lt;li&gt;chrome.i18n for localization (11 languages and counting)&lt;/li&gt;
&lt;li&gt;All processing happens locally — no backend, no analytics, no tracking&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Privacy by design&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;No data collection&lt;/li&gt;
&lt;li&gt;No network requests&lt;/li&gt;
&lt;li&gt;No cookies&lt;/li&gt;
&lt;li&gt;The extension only requests activeTab and scripting permissions — nothing else&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;What I learned&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Intl.Segmenter is powerful but still limited for mixed-language texts&lt;/li&gt;
&lt;li&gt;Chrome Web Store localization is surprisingly tricky (detailed descriptions must be added manually per language)&lt;/li&gt;
&lt;li&gt;Users genuinely care about privacy — several early reviews mentioned it as the main reason for installing&lt;/li&gt;
&lt;li&gt;Keyword-optimized naming matters. After rebranding from "Instant Word Counter" to "Text Stats — Word &amp;amp; Character Counter", the extension started ranking for more relevant search queries like "text stats" and "character counter"&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Try it out&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Text Stats — Word &amp;amp; Character Counter is free and available on the Chrome Web Store. Search for "Text Stats" or use the link: Text Stats on Chrome Web Store.&lt;/p&gt;

&lt;p&gt;Happy to answer questions or hear your feedback in the comments!&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fm2eciqb6pvapnw2wgi8l.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fm2eciqb6pvapnw2wgi8l.png" alt=" " width="800" height="500"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F36vvjf5aa39lzvbtqimd.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F36vvjf5aa39lzvbtqimd.png" alt=" " width="800" height="500"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqg1mk9e11h2d15yf8vir.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqg1mk9e11h2d15yf8vir.png" alt=" " width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>productivity</category>
      <category>privacy</category>
      <category>chrome</category>
    </item>
  </channel>
</rss>
