← Back to products

textlens: zero-dependency TypeScript library & CLI for text analysis. Runs 100% locally, no API calls. 8 readability formulas (Flesch, Flesch-Kincaid, Gunning Fog, SMOG, Coleman-Liau, ARI, Dale-Chall, Linsear Write) with consensus grade. AFINN-165 sentiment analysis. TF keyword extraction with stopword filtering. Keyword density (unigram/bigram/trigram). SEO scoring with actionable suggestions. Reading time estimation. Extractive summarization. CLI with pretty, JSON & minimal output.see more

ProductivityOpen SourceDeveloper Tools

Founder

Uunknown

Screenshots

textlens screenshot 1
textlens screenshot 2
textlens screenshot 3

About

Are you tired of relying on clunky, slow, or privacy-invasive external APIs just to understand the quality and impact of the text you are creating or analyzing? Meet textlens, the powerful, zero-dependency solution built entirely for TypeScript developers who demand speed, control, and accuracy right where they work. This isn't just another library; it’s a comprehensive toolkit that runs 100% locally on your machine, meaning your data stays yours and your analysis is instantaneous. Whether you are fine-tuning documentation, optimizing marketing copy, or ensuring your educational materials hit the right comprehension level, textlens provides the deep insights you need without ever needing an internet connection for processing. Imagine instantly knowing the precise readability level of a complex technical manual or ensuring your blog post resonates with your target audience—all handled seamlessly within your existing development workflow.

textlens brings the heavy lifting of linguistic analysis directly to your fingertips, offering an impressive suite of eight industry-standard readability formulas, including Flesch, Flesch-Kincaid, Gunning Fog, and Coleman-Liau, culminating in a helpful consensus grade. This allows you to move beyond guesswork and apply objective metrics to your writing process. But we go deeper than just reading level. We integrate AFINN-165 sentiment analysis to gauge the emotional tone of your text, and provide robust keyword extraction using TF analysis with smart stopword filtering, giving you the core topics at a glance. For content creators, the keyword density analysis (unigram, bigram, and trigram) combined with an actionable SEO scoring feature ensures your content is both engaging for humans and discoverable by search engines. Furthermore, you can instantly estimate reading time and generate concise extractive summaries, saving countless hours on manual review.

We designed textlens for maximum utility across different environments. For developers integrating it into applications, the TypeScript library offers clean, reliable functions. For quick checks or scripting, the Command Line Interface (CLI) is incredibly versatile, offering beautifully formatted, standard JSON, or a super minimal output to suit any pipeline requirement. This commitment to local processing, comprehensive analysis, and developer friendliness makes textlens an indispensable utility for anyone serious about the quality and effectiveness of their written communication. Stop sending sensitive text data over the wire; start analyzing it instantly and privately with the precision of textlens.