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

nodebb-plugin-integration

v0.4.2

Published

AI integration layer for NodeBB forums with MCP, semantic search, RAG and Qdrant knowledge pipeline

Readme

NodeBB Integration Layer

AI-слой интеграции для форумов NodeBB с поддержкой MCP, семантического поиска, RAG pipeline и векторного хранилища Qdrant.

Возможности

  • Интеграция с NodeBB
  • MCP (Model Context Protocol) сервер
  • Семантический поиск по содержимому форума
  • RAG pipeline (Retrieval Augmented Generation)
  • Поддержка Qdrant Vector Database
  • Поддержка OpenAI Embeddings
  • Локальный режим с fake embeddings
  • Работа без NodeBB для разработки
  • Автоматические тесты через GitHub Actions

Архитектура

                 NodeBB

                   |
                   |

          Integration Layer

                   |

      +------------+------------+

      |                         |

     MCP                       AI

      |                         |

   Tools API              Embeddings

                                  |

                                Qdrant

                                  |

                           Knowledge Base

Требования

Минимально:

  • Node.js >= 20
  • npm >= 10

Опционально:

  • NodeBB
  • Redis
  • Qdrant
  • OpenAI API

Установка

Клонирование:

git clone https://github.com/Sergey-ek/nodebb-plugin-integration.git

cd nodebb-plugin-integration

Установка зависимостей:

npm install

Создание конфигурации:

cp .env.example .env

Режим разработки

По умолчанию используется локальный генератор векторов:

AI_PROVIDER=fake

Этот режим позволяет запускать проект без:

  • OpenAI API
  • Qdrant
  • NodeBB

Проверка конфигурации:

npm run diagnose

Пример:

{
 environment: "development",

 embeddings:
 {
   provider: "fake",
   size: 1536
 }
}

Тестирование

Проверка синтаксиса:

npm run check

Запуск тестов:

npm test

Ожидаемый результат:

8 passing

Интеграция с NodeBB

Настройка:

NODEBB_URL=http://localhost:4567

NODEBB_API_KEY=your_token

При работе внутри NodeBB используются оригинальные модули NodeBB.

В standalone режиме используются безопасные адаптеры:

NodeBB отсутствует

        |

Fallback adapter

        |

Тесты продолжают работать

AI Pipeline

Полный поток:

Сообщение форума

        |

Создание embedding

        |

Сохранение vector

        |

Qdrant similarity search

        |

Получение контекста

        |

AI ответ

Embeddings

Fake режим

Для разработки:

AI_PROVIDER=fake

Плюсы:

  • бесплатно;
  • быстро;
  • не требует сети;
  • используется в тестах.

OpenAI режим

Настройка:

AI_PROVIDER=openai

OPENAI_API_KEY=your_key

Qdrant

Конфигурация:

QDRANT_URL=http://localhost:6333

QDRANT_COLLECTION=nodebb_knowledge

Автоматически выполняется:

  • проверка коллекции;
  • создание коллекции;
  • загрузка векторов;
  • поиск похожих документов.

MCP сервер

Запуск:

npm run mcp

Доступные инструменты:

get_forum_info

get_post

get_topic

get_user

search_knowledge

Пример поиска:

search_knowledge

{
 "query": "как установить NodeBB",
 "limit": 5
}

Структура проекта

.

├── library.js

├── package.json

├── plugin.json


├── src

│

├── ai

│   ├── embeddings.js

│   ├── openai.js

│   ├── qdrant.js

│   ├── indexer.js

│   └── search.js


│

├── mcp

│   ├── server.js

│   └── tools.js


│

├── nodebb

│   ├── meta.js

│   ├── posts.js

│   ├── topics.js

│   └── users.js


│

└── config

    └── index.js


└── test

    └── plugin.test.js

Безопасность

Не добавлять в Git:

.env

OPENAI_API_KEY

NODEBB_API_KEY

Лицензия

MIT