
TextLens
Zero-dependency text analysis with 8 readability formulas
FreeOpen Source1,422 impressionslaunches Dec 14
TextLens is a zero-dependency npm package that provides comprehensive text analysis, readability scores, sentiment, keywords, SEO scoring and more.
- for
- JavaScript/TypeScript developers needing text analytics in Node or the browser
- pricing
- freemium
- license
- MIT
Key features
- 8 Readability Formulas — Calculates Flesch-Kincaid, Gunning Fog, SMOG, ARI, Dale-Chall, Linsear Write, Coleman-Liau and Flesch Reading Ease.
- Sentiment Analysis — Lexicon-based sentiment scoring with positive, negative and neutral labels.
- Keyword Extraction & Density — TF-IDF based top keywords and n-gram frequency analysis.
- SEO Scoring — Grades content quality and gives actionable suggestions for SEO.
- Extractive Summarization — Generates concise summaries by ranking sentences.
- CLI Tool — Run analyses on files or piped text directly from the terminal.
Use cases
- Generate readability reports for blog posts before publishing
- Add sentiment and keyword insights to a chatbot’s responses
- Automate SEO grading of marketing copy in a CI pipeline
- Provide quick reading-time estimates in a news app
- Summarize long articles for newsletter previews
TextLens pricing
- Free$0Unlimited public packages · Basic support
- Pro$7/monthUnlimited public & private packages · Package-based permissions
- Teams$7/user per monthTeam-based management · Unlimited public & private packages
TextLens FAQ
Do I need any runtime dependencies to use TextLens?+
No, TextLens has zero runtime dependencies and is under 15 KB gzipped.
Can I use TextLens without Node.js?+
Yes, the hosted REST endpoint provides the same analysis for any language via HTTP.
How accurate is the sentiment analysis?+
It uses the AFINN-165 lexicon with roughly 60 % accuracy and may miss sarcasm or domain-specific terms.
What is the consensus grade?+
A weighted average of all eight readability formula results, giving a single grade level.
Is there a free tier for the API?+
The API offers a free tier of 1,000 requests per month.
How do I run TextLens from the command line?+
Install the package and use `npx textlens <file>` or pipe text; options let you output JSON, keywords, sentiment, etc.
Summarized by DevHunt from npmjs.com · Oct 1, 2026. Details may change; check the official site.








