<?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;Instant Word Counter&lt;/strong&gt; — a Chrome extension that counts words, characters, and reading time &lt;strong&gt;instantly, offline, and 100% locally&lt;/strong&gt;. No text ever leaves your device.&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.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I wanted something faster and truly private.&lt;/p&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), and estimated reading time 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 (10 languages so far)&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;/ul&gt;

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

&lt;p&gt;Instant Word Counter is free and available on the &lt;a href="https://chromewebstore.google.com/detail/instant-word-counter/eajenjkjnfooelbcodhmcgbaflnfoefh" rel="noopener noreferrer"&gt;Chrome Web Store&lt;/a&gt;.&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%2Fipzhh2at669p06dyuvmw.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%2Fipzhh2at669p06dyuvmw.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%2Fezv602iazjxaavmqv95h.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%2Fezv602iazjxaavmqv95h.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%2Fy9lpbyw0sx8n43nxy20t.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%2Fy9lpbyw0sx8n43nxy20t.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>
