🚀 Socket Launch Week Day 4:Socket MCP Adds Org Alerts, Threat Feed Review, and Package Inspection.Learn more
Sign In

@nestjs-ai/document-reader-markdown

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nestjs-ai/document-reader-markdown

Markdown document reader for NestJS AI

Source
npmnpm
Version
0.0.2
Version published
Weekly downloads
5
-75%
Maintainers
2
Weekly downloads
 
Created
Source

NestJS AI

A TypeScript/NestJS port of Spring AI — bringing the same powerful AI abstraction layer to the Node.js ecosystem.

Last synced Spring AI commit: da8db657 (Remove Anthropic IT that no longer makes sense)

Overview

NestJS AI is a comprehensive TypeScript port of the Spring AI project, reimagined for the NestJS/Node.js ecosystem. It provides a unified abstraction layer for integrating Large Language Models (LLMs), vector stores, document readers, and RAG pipelines into NestJS applications.

The project faithfully mirrors Spring AI's module structure and API design while leveraging TypeScript idioms, RxJS reactive streams, and NestJS dependency injection.

Key Features

  • Model Abstraction — Unified ChatModel and EmbeddingModel interfaces across providers
  • Multi-Provider Support — OpenAI, Google GenAI (Gemini), Hugging Face Transformers
  • Tool Calling — Structured function/tool calling orchestration
  • RAG Pipeline — End-to-end Retrieval Augmented Generation with vector stores
  • Chat Memory — In-memory and Redis-backed conversation history
  • Document Readers — PDF, Markdown, HTML (Cheerio), Apache Tika
  • Vector Stores — Abstract interface with Redis implementation
  • Observability — OpenTelemetry tracing and metrics
  • Prompt Templating — StringTemplate-based prompt rendering
  • NestJS Integration — Modules, decorators, and DI support

Tech Stack

CategoryTechnology
LanguageTypeScript 6.x (strict mode)
RuntimeNode.js >= 20
FrameworkNestJS 11.x
Package Managerpnpm 10.x
BuildTurborepo + tsc
TestVitest 4.x + TestContainers
Lint/FormatBiomejs 2.x
ReactiveRxJS 7.x
ValidationZod 4.x

Porting Progress

Spring AI module porting status to NestJS AI. (~520 source files, ~180 test files ported across 22 packages)

CategorySpring AI Modulenestjs-ai PackageProgress
Corespring-ai-model@nestjs-ai/model100%
spring-ai-client-chat@nestjs-ai/client-chat100%
spring-ai-commons@nestjs-ai/commons100%
spring-ai-retry@nestjs-ai/retry100%
spring-ai-template-st@nestjs-ai/template-st100%
spring-ai-observation@nestjs-ai/observation100%
spring-ai-test@nestjs-ai/testing100%
Model Providersspring-ai-openai@nestjs-ai/model-openai100%
spring-ai-openai-sdk@nestjs-ai/model-openai-sdk100%
spring-ai-google-genai@nestjs-ai/model-google-genai100%
spring-ai-transformers@nestjs-ai/model-transformers100%
spring-ai-anthropic0%
spring-ai-azure-openai0%
spring-ai-bedrock0%
spring-ai-mistral-ai0%
spring-ai-ollama0%
RAG & Vector Storesspring-ai-rag@nestjs-ai/rag100%
spring-ai-vector-store@nestjs-ai/vector-store100%
spring-ai-redis-store@nestjs-ai/vector-store-redis100%
spring-ai-advisors-vector-store@nestjs-ai/advisors-vector-store100%
spring-ai-pgvector-store0%
spring-ai-chroma-store0%
spring-ai-pinecone-store0%
spring-ai-milvus-store0%
Document Readersspring-ai-pdf-document-reader@nestjs-ai/document-reader-pdf100%
spring-ai-markdown-document-reader@nestjs-ai/document-reader-markdown100%
spring-ai-tika-document-reader@nestjs-ai/document-reader-tika100%
(cheerio - NestJS specific)@nestjs-ai/document-reader-cheerio100%
Memoryspring-ai-model-chat-memory-redis@nestjs-ai/model-chat-memory-repository-redis100%
spring-ai-model-chat-memory-jdbc0%
spring-ai-model-chat-memory-cassandra0%
Platformspring-ai-autoconfigure@nestjs-ai/platform100%
spring-ai-mcp@nestjs-ai/mcp-common10%
spring-ai-jsdbc@nestjs-ai/jsdbc30%

Project Structure

nestjs-ai/
├── packages/
│   ├── model/                    # Core chat/embedding abstractions
│   ├── client-chat/              # High-level client API & advisors
│   ├── commons/                  # Shared utilities & tokens
│   ├── platform/                 # NestJS module integration
│   ├── rag/                      # RAG pipeline
│   ├── vector-store/             # Vector store abstractions
│   ├── observation/              # OpenTelemetry integration
│   ├── retry/                    # Retry utilities
│   ├── template-st/             # Prompt templating
│   ├── testing/                  # Test utilities
│   ├── jsdbc/                    # JDBC integration layer
│   ├── models/
│   │   ├── openai/               # OpenAI provider
│   │   ├── google-genai/         # Google GenAI provider
│   │   └── transformers/         # Hugging Face local embeddings
│   ├── mcp/
│   │   └── common/               # Model Context Protocol
│   ├── vector-stores/
│   │   └── redis-store/          # Redis vector store
│   ├── memory/
│   │   └── repository/
│   │       └── model-chat-memory-repository-redis/
│   ├── document-readers/
│   │   ├── pdf-reader/           # PDF.js reader
│   │   ├── markdown-reader/      # Markdown reader
│   │   ├── cheerio-reader/       # HTML/web scraping
│   │   └── tika-reader/          # Apache Tika reader
│   └── advisors/
│       └── advisors-vector-store/
├── docs/                         # Antora documentation site
└── turbo.json                    # Turborepo configuration

Getting Started

Prerequisites

  • Node.js >= 20.0.0
  • pnpm >= 10.0.0

Installation

pnpm install

Build

pnpm build

Test

pnpm test

Lint & Format

pnpm lint
pnpm format

Keywords

nestjs

FAQs

Package last updated on 19 Apr 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts