Back to portfolio

GraphRAG.js

The comprehensive Graph RAG framework for JavaScript and TypeScript.

Overview

GraphRAG.js is the most complete Graph RAG implementation for the JavaScript ecosystem. It unifies all major graph-enhanced retrieval algorithms—LightRAG, Microsoft GraphRAG, Fast GraphRAG, and AWS GraphRAG—into a single, production-ready framework with a consistent API.

With 1,000+ GitHub stars and 20,000+ npm downloads, GraphRAG.js has become the go-to solution for teams building intelligent retrieval systems in Node.js and TypeScript environments.

Why GraphRAG.js

Traditional vector search retrieves similar text chunks. Graph-enhanced RAG goes further—understanding relationships between entities, leveraging community structures, and following multi-hop reasoning paths. This results in more accurate, contextually rich answers for complex queries.

GraphRAG.js eliminates the need to choose between competing algorithms or maintain multiple implementations. One framework, all strategies, production-ready.

Key Capabilities

  • Unified Algorithm Support — LightRAG, Microsoft GraphRAG, Fast GraphRAG, AWS GraphRAG, and similarity-based retrieval in one package
  • Enterprise Storage Options — Neo4j, PostgreSQL, Qdrant, FalkorDB, or in-memory for development
  • Vercel AI SDK Compatible — Seamless integration with OpenAI, Anthropic, Google, and other LLM providers
  • Type-Safe by Design — Full TypeScript support with complete type inference
  • Modular Architecture — Install only the components you need

Algorithm Options

| Algorithm | Best For | |-----------|----------| | Similarity | Simple use cases, fast iteration | | LightRAG | Balanced performance and accuracy | | Microsoft GraphRAG | Deep analysis, complex domains | | Fast GraphRAG | Cost-efficient, high-volume queries | | AWS GraphRAG | Multi-hop reasoning, fact chains |

Links