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

n8n-nodes-xmem

v1.0.0

Published

Official n8n community node for xMem: open-source memory orchestrator for LLMs. Integrate xMem memory/session/agent APIs with n8n workflows.

Downloads

17

Readme

xmem-n8n-node

Official n8n Integration Node for xMem


Overview

xMem is an open-source memory orchestrator for LLMs (Large Language Models), designed to combine long-term (vector DB) and short-term (session/context) memory with advanced RAG (Retrieval-Augmented Generation) logic. xMem maximizes value for LLM applications by providing modular, API-first, and future-proof memory management for GenAI, chatbots, and agentic workflows.

n8n is a leading open-source workflow automation platform, enabling you to connect anything to everything with low-code/no-code workflows. Integrating xMem with n8n allows you to automate memory operations, build AI-powered automations, and connect LLM memory to hundreds of other apps and services.


Features

  • Seamlessly connect n8n workflows to xMem APIs
  • Upsert/query memory, manage sessions, and trigger LLM-powered actions
  • Use xMem as a knowledge base, context provider, or memory store in your automations
  • Supports all xMem REST API endpoints (memory, session, agent chat, etc.)
  • Secure API key authentication
  • Designed for public listing on n8n.io/integrations

xMem API Endpoints

The following endpoints are most relevant for n8n integration:

  • POST /api/session-memory/ — Add a new session memory or message
  • GET /api/session-memory/ — List all messages for a session or all sessions
  • POST /api/sessions/ — Create or update a session memory
  • GET /api/sessions/ — Fetch a session or list all sessions
  • POST /api/agent-chat/ — Query the agent with context, sources, and session info
  • GET /api/vector-sources/ — List vector sources
  • POST /api/vector-sources/ — Create a new vector source
  • GET /api/qdrant-queries/ — Query Qdrant vector DB for relevant memory
  • POST /api/api-keys/ — Create an API key for secure access

See the xMem API documentation for full details.


Example: n8n HTTP Request Node

You can use the built-in HTTP Request node in n8n to call xMem endpoints. Example config for upserting session memory:

{
  "url": "https://xmem.xyz/api/session-memory",
  "method": "POST",
  "headers": {
    "Content-Type": "application/json",
    "Authorization": "Bearer YOUR_API_KEY"
  },
  "body": {
    "sessionId": "session-123",
    "content": "Remember this fact.",
    "role": "user"
  },
  "bodyContentType": "json"
}

Local Development & Testing

  1. Clone this repo:
    git clone https://github.com/your-org/xmem-n8n-node.git
    cd xmem-n8n-node
  2. Install dependencies:
    pnpm install
    # or npm install
  3. Develop your node using the n8n node starter template.
  4. Link your node to a local n8n instance for testing:
    # See n8n docs for custom node development
  5. Use your xMem API key and endpoint in your test workflows.

Documentation & Resources


Contribution Guidelines

  • Fork this repo and submit pull requests for improvements or bug fixes.
  • Follow the code style and best practices from the n8n node starter template.
  • Add tests and documentation for new features.
  • To submit to the official n8n integrations directory, open a PR to n8n-io/n8n following their process.

Open Source & License

  • This project is open source under the MIT License.
  • xMem and this node are designed to be modular, API-first, and open to community contributions.

Contact & Support


Architectural Philosophy (from xMem)

  • Open Source First: Prefer open-source LLMs and vector DBs; avoid proprietary dependencies.
  • API-First: All features are accessible via REST APIs for easy integration.
  • Modular & Decoupled: Logic is decoupled for maintainability and reusability.
  • Security: Use API keys or OAuth for secure access.
  • Observability: Designed for monitoring, logging, and production readiness.
  • Documentation: All public APIs and features are documented for easy onboarding.

Changelog

  • [Add your release notes here as you develop the node]