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-memcontext

v0.1.5

Published

Custom n8n nodes for memcontext API integration

Readme

n8n-nodes-memcontext

n8n custom nodes for a self-hosted memcontext API (Flask). Includes:

  • Memory Add: add text memories (/init_memory/import_conversations)
  • Memory Search: search memories and get a reply (/init_memory/chat)
  • Memory Add Multimodal: add multimodal memories (video/audio/image, /init_memory/add_multimodal_memory), supports binary upload or local file path.

Installation

Local / private install

# in package root
npm run build
npm pack  # produces n8n-nodes-memcontext-<version>.tgz

# in n8n custom nodes dir (example: C:\Users\<you>\.n8n\nodes)
npm init -y
npm install /path/to/n8n-nodes-memcontext-<version>.tgz

Restart n8n to load the nodes.

Publish to npm (optional)

# ensure version is bumped
npm login
npm publish   # if using a scope, rename to @your-scope/n8n-nodes-memcontext and add --access public

Target env: npm install n8n-nodes-memcontext, then restart n8n.

Backend requirements

  • Your Flask backend running (default http://127.0.0.1:5019).
  • Multimodal video converter needs:
    • env vars: LLM_API_KEY, LLM_BASE_URL, LLM_MODEL
    • ffmpeg/ffprobe in PATH
  • videorag converter is optional (imagebind/hnswlib, better on Linux/GPU). On Windows/CPU, use video.

Credentials (Memory API)

  • Base URL: backend URL (default http://127.0.0.1:5019)
  • API Key: optional; if backend requires auth, fill it (e.g. Bearer xxx, passed through as-is)

Nodes

Memory Add

  • Writes text memory.
  • Params: userId, userInput, agentResponse, timestamp (optional), metaData (JSON).
  • Routes: /init_memory/import_conversations.

Memory Search

  • Searches memory and returns reply.
  • Params: userId, query.
  • Routes: /init_memory/chat.

Memory Add Multimodal

  • Writes multimodal memory (video/audio/image).
  • Modes:
    • Upload File (Binary): binary from upstream node; set Binary Property Name.
    • Use Local File Path: absolute path accessible by backend host.
  • Converters:
    • video (recommended; requires ffmpeg + Ark SDK + LLM API env vars)
    • videorag (optional; extra deps/models)
  • Routes: /init_memory/add_multimodal_memory.

Example workflow

Manual Trigger
  └─ Memory Add
       └─ Memory Add Multimodal
            └─ Memory Search
  • Three nodes share the same Memory API credential and the same userId.
  • Base URL recommendation: http://127.0.0.1:5019.
  • For Memory Add Multimodal path mode: File Path must be an absolute path reachable by the backend machine; start with converter video.

FAQ

  • ECONNREFUSED 127.0.0.1:5019: backend not running or wrong port; curl http://127.0.0.1:5019/ first.
  • Video file missing / ingested_rounds=0: path not reachable or ffmpeg/env vars missing; check backend logs.
  • Backend 500: inspect python app.py console stack; common causes are deps/env/path issues.
  • Community nodes TLS errors: unrelated to node execution; usually external network/proxy; ignore or configure network.

Development build

  • npm run build to generate dist/
  • npm pack to produce release .tgz
  • Before publishing, ensure package.json n8n field points to nodes/credentials under dist.