arifmahmudrana/text-analyzer-api

By arifmahmudrana

Updated 11 months ago

Asynchronous text analysis API with MongoDB, real-time monitoring, and comprehensive metrics.

Image
Languages & frameworks
API management
Databases & storage
0

645

arifmahmudrana/text-analyzer-api repository overview

Text Analyzer API

A robust Node.js/TypeScript API for comprehensive text analysis with asynchronous processing capabilities.

🚀 Features

  • Asynchronous Processing: Event-driven architecture for non-blocking text analysis
  • Comprehensive Metrics: Word count, character count, sentences, paragraphs, and longest words
  • MongoDB Integration: Persistent storage with Mongoose ODM
  • Real-time Monitoring: Grafana + Loki + Promtail stack included
  • Production Ready: Multi-stage Docker builds, health checks, and security scanning

🛠 Tech Stack

  • Node.js 22+ with TypeScript
  • Express.js RESTful API
  • MongoDB with Mongoose
  • Joi validation & Jest testing
  • Docker containerization

📊 API Endpoints

  • POST /api/texts - Submit text for analysis
  • GET /api/texts/:id - Retrieve analysis results
  • GET /api/texts - List texts with pagination
  • GET /health - Health check endpoint

🔧 Quick Start

# Pull and run the container
docker run -p 3000:3000 -e MONGODB_URI=mongodb://localhost:27017/textapi your-username/text-analyzer-api

# With monitoring stack
docker-compose up --build

#### 🔗 Links
- **GitHub Repository**: https://github.com/arifmahmudrana/node-text-analyzer
- **Issues & Support**: GitHub Issues page

#### 🏷️ Tags
`nodejs` `express` `typescript` `asynchronous-processing` `MongoDB` `NoSQL` `Grafana` `Loki` `Promtail` `PLG` `Logging` `rest-api` `docker` `text-analysis` `jest` `production-ready`

---

**Maintained by**: Arif Mahmud Rana  
**License**: BSD 3-Clause  
**Last Updated**: July 2025

Tag summary

Content type

Image

Digest

sha256:c12a72fc7

Size

56.6 MB

Last updated

11 months ago

docker pull arifmahmudrana/text-analyzer-api