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

@catalogicus-international/n8n-nodes-light-rag

v0.1.4

Published

n8n workflow and AI Agent tool nodes for the LightRAG API server

Readme

@catalogicus-international/n8n-nodes-light-rag

An n8n community package that exposes a LightRAG API server to regular workflows and AI Agents.

Nodes

LightRAG

Use LightRAG in a regular n8n workflow. It has standard Main input and output connections and processes every incoming item.

Choose an operation in the node UI. Operations that send JSON use the complete current input item ({{$json}}) as the request body by default. For example, an input item for the Query operation can be:

{
  "query": "What does the knowledge base say about LightRAG?",
  "mode": "mix",
  "include_references": true
}

You can replace the Request Body expression with a manually configured object or map individual fields from previous nodes. Responses are emitted through the normal Main output and retain n8n item pairing.

LightRAG Tool

Connect LightRAG Tool to the tool input of an n8n AI Agent. This node is dedicated to querying the knowledge base, so the agent only sees one required Query field. The endpoint is always POST /query.

Query the knowledge base:

{
  "query": "What does the knowledge base say about LightRAG?"
}

Use Add Field in the node UI to add optional request body parameters such as Mode, Include References, and Include Chunk Content. The configured values are merged with the agent's query automatically.

The regular LightRAG workflow node retains the full operation list for document management and custom requests, but is not exposed as an AI Agent tool.

Supported operations

  • queryPOST /query;
  • queryDataPOST /query/data;
  • insertTextPOST /documents/text;
  • insertTextsPOST /documents/texts;
  • trackStatusGET /documents/track_status/{track_id};
  • pipelineStatusGET /documents/pipeline_status;
  • listDocumentsPOST /documents/paginated;
  • scanDocumentsPOST /documents/scan;
  • deleteDocumentsDELETE /documents/delete_document;
  • healthGET /health;
  • customRequest — a request to any relative LightRAG API path.

Example custom request:

{
  "operation": "customRequest",
  "method": "GET",
  "path": "documents/status_counts",
  "queryParameters": {}
}

Only relative paths are accepted, so credentials cannot be forwarded to another host.

Query modes

The query operations support LightRAG modes local, global, hybrid, naive, mix, and bypass. mix is the LightRAG-recommended general-purpose mode.

All request fields supported by the LightRAG API can be passed in body, including response_type, top_k, chunk_top_k, token budgets, keyword lists, conversation_history, user_prompt, reranking options, and reference options.

Credentials

Create a LightRAG API credential:

  • Base URL: normally http://localhost:9621;
  • Authentication: API Key, Bearer Token, or None;
  • API key authentication is sent using X-API-Key;
  • include a configured reverse-proxy API prefix in the Base URL when applicable.

Development

pnpm install
pnpm run lint
pnpm test

Resources

License

MIT