npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@lazymac/text-analysis-api

v1.0.0

Published

Text/NLP analysis REST API & MCP server — fully algorithmic, no external AI

Readme

lazymac API Store Gumroad MCPize

text-analysis-api

Algorithmic text/NLP analysis REST API and MCP server. All processing is rule-based — no external AI APIs or ML models required.

Features

  • Sentiment analysis — positive/negative/neutral scoring with negation & intensifier handling
  • Readability scores — Flesch-Kincaid Grade, Flesch Reading Ease, Coleman-Liau, ARI
  • Keyword extraction — TF-based scoring with stop word removal
  • Language detection — character frequency analysis (EN, KO, JA, ZH, ES, FR, DE)
  • Text statistics — word/sentence/paragraph counts, avg lengths, reading & speaking time
  • Profanity detection — basic word list check
  • Summarization — extractive, sentence-scoring approach
  • MCP server — stdio-based Model Context Protocol integration

Quick Start

npm install
npm start          # REST API on port 4600
npm run mcp        # MCP server (stdio)

API Endpoints

All POST endpoints accept { "text": "..." } as JSON body.

| Endpoint | Description | |---|---| | GET /health | Health check | | POST /api/v1/sentiment | Sentiment analysis | | POST /api/v1/readability | Readability scores | | POST /api/v1/keywords | Keyword extraction | | POST /api/v1/language | Language detection | | POST /api/v1/stats | Text statistics | | POST /api/v1/analyze | Full analysis (all above) |

Example

curl -X POST http://localhost:4600/api/v1/analyze \
  -H "Content-Type: application/json" \
  -d '{"text": "This is a wonderful and amazing product. I really love using it every day!"}'

MCP Integration

Add to your Claude Desktop or MCP client config:

{
  "mcpServers": {
    "text-analysis": {
      "command": "node",
      "args": ["/path/to/text-analysis-api/src/mcp-server.js"]
    }
  }
}

MCP Tools

analyze_sentiment, analyze_readability, extract_keywords, detect_language, analyze_stats, detect_profanity, summarize_text, analyze_all

Docker

docker build -t text-analysis-api .
docker run -p 4600:4600 text-analysis-api

License

MIT