惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Jina AI
Jina AI
云风的 BLOG
云风的 BLOG
人人都是产品经理
人人都是产品经理
T
The Blog of Author Tim Ferriss
阮一峰的网络日志
阮一峰的网络日志
罗磊的独立博客
J
Java Code Geeks
博客园 - 聂微东
B
Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
WordPress大学
WordPress大学
腾讯CDC
L
LangChain Blog
Apple Machine Learning Research
Apple Machine Learning Research
Microsoft Azure Blog
Microsoft Azure Blog
D
DataBreaches.Net
The GitHub Blog
The GitHub Blog
美团技术团队
博客园 - Franky
Google DeepMind News
Google DeepMind News
V
V2EX
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
月光博客
月光博客
The Cloudflare Blog

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
How I Built a Privacy-First Word Counter Chrome Extension...
Boris Korole · 2026-05-18 · via DEV Community

Boris Korolev

I’ve always been frustrated with online word counters.

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.

So I built Instant Word Counter — a Chrome extension that counts words, characters, and reading time instantly, offline, and 100% locally. No text ever leaves your device.

Why another word counter?

Most existing extensions either:

  • require copy-pasting,
  • use clunky right-click menus,
  • or send your text to external servers for processing.

I wanted something faster and truly private.

How it works

  1. Select any text on a webpage.
  2. Click the extension icon (or press Alt+W).
  3. See word count, character count (with/without spaces), and estimated reading time in a clean popup.

If no text is selected, the extension gently guides you. No clutter, no confusion.

CJK character counting

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.

It uses the Intl.Segmenter API for word segmentation and falls back to a regex-based counter for older browsers.

Tech stack

  • Vanilla JavaScript (no frameworks)
  • Chrome Manifest V3
  • Intl.Segmenter for accurate word counting
  • chrome.i18n for localization (10 languages so far)
  • All processing happens locally — no backend, no analytics, no tracking

Privacy by design

  • No data collection
  • No network requests
  • No cookies
  • The extension only requests activeTab and scripting permissions — nothing else

What I learned

  • Intl.Segmenter is powerful but still limited for mixed-language texts
  • Chrome Web Store localization is surprisingly tricky (detailed descriptions must be added manually per language)
  • Users genuinely care about privacy — several early reviews mentioned it as the main reason for installing

Try it out

Instant Word Counter is free and available on the Chrome Web Store.

Happy to answer questions or hear your feedback in the comments!