This project is not covered by Drupal’s security advisory policy.

Connects Drupal to NodeDB, a single database with
vector, full-text, graph, document and key-value engines, and puts it to work
for AI features.

Modules

  1. NodeDB (required): a checked, least-privilege connection to a NodeDB server.
    • TLS with certificate verification by default.
    • SCRAM-only authentication with libpq 16 or later.
    • The password is stored with the Key module.
    • A small SQL API that never puts values into SQL text.
    • Status report checks.
  2. NodeDB Vector Database: a vector database provider for
    AI Search, with optional hybrid search (vector similarity + BM25 keyword ranking). Filterable attributes and access-checked results.
  3. NodeDB Agent Memory: long-term, per-user memory tools for AI agents (Remember, Recall, Forget). Users can review and delete their memories, and memories are deleted with the account.
  4. NodeDB GraphRAG: a "related content" tool for AI agents. It starts from the content closest to a question and follows the links between content (tags, references) to related items. Every result is access-checked for the current user.

Requirements

  1. Drupal 10.5, or 11.2 and later.
  2. PHP 8.2 or later with `pdo_pgsql` (libpq must fix CVE-2025-1094; 16 or later is recommended)
  3. A NodeDB server, 0.6 or later.
  4. For the AI submodules: AI 1.5 and an embeddings provider. The vector database submodule also needs
    AI Search 1.3.
composer require drupal/nodedb
# For the AI submodules:
composer require drupal/ai drupal/ai_search

Status and caveats

  1. NodeDB is pre-1.0 software. Its own security policy does not yet recommend it for production. Behaviors of NodeDB 0.6 that this project works around are documented in `docs/nodedb-known-issues.md`.
  2. AI Search 1.3 is in alpha. With AI 1.5, its deprecated built-in copy of AI Search shares the machine name `ai_search`; the provider works with both.
  3. Licensing. The NodeDB server is licensed under the Business Source License 1.1. This project only connects to it over the network and is GPL-2.0-or-later.

Security and privacy

The project is built to the Drupal security team's guidance.
docs/threat-model.md lists every trust boundary, its mitigation and the test that proves it. The README covers:

  1. the least-privilege NodeDB setup;
  2. which data leaves Drupal (to NodeDB and to the embeddings provider);
  3. the limits of prompt-injection defenses.

Report security issues privately through the Drupal Security Team.

Development

Code was written with AI assistance (Claude), reviewed and tested by the maintainer.

The repository includes a DDEV setup with a local TLS-enabled NodeDB:

  1. ddev nodedb-provision sets up the NodeDB database and user.
  2. ddev nodedb-test-live runs the tests against that NodeDB server.

Project information

  • caution Minimally maintained
    Maintainers monitor issues, but fast responses are not guaranteed.
  • Project categories: Integrations
  • Ecosystem: Drupal AI
  • Created by akmalfikri on , updated
  • shield alertThis project is not covered by the security advisory policy.
    Use at your own risk! It may have publicly disclosed vulnerabilities.

Releases