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-pikoolev-openrouter-pro

v0.3.9

Published

Professional OpenRouter integration nodes for n8n workflows with advanced AI model routing, multimodal support, and structured outputs.

Readme

n8n OpenRouter Pro Node (Неофициальная community-нода)

English | Русский

⚠️ Это неофициальная community-нода для n8n.

🚀 Регистрация в OpenRouter: https://openrouter.ai/

Пакет добавляет в n8n две ноды:

  • OpenRouter Chat Model — выбор модели и параметров генерации.
  • OpenRouter Pro Chain — отправка промптов, вложений, structured output и кэширования.

Возможности

  • Подключение OpenRouter через credential с API-ключом.
  • Выбор модели из /models или ручной ввод model ID.
  • Параметры генерации (temperature, top_p, max tokens, frequency penalty).
  • Фильтрация провайдеров (Provider Only / Provider Ignore, взаимоисключающие).
  • Мультимодальные вложения: изображение, аудио, видео, PDF.
  • Structured output через JSON Schema.
  • Настройки prompt caching (vendor + увеличение TTL для Anthropic).
  • Режим вывода результата в n8n.

Установка (Community Nodes в n8n)

  1. Откройте n8n.
  2. SettingsCommunity Nodes.
  3. Нажмите Install.
  4. Укажите пакет: n8n-nodes-pikoolev-openrouter-pro.
  5. Подтвердите установку и перезапустите n8n при необходимости.

Credential: OpenRouter API

Поля:

  • API Key (обязательное)
  • Base URL (по умолчанию https://openrouter.ai/api/v1)
  • HTTP-Referer (опционально)
  • Title (опционально, отправляется как X-Title)

Документация по аутентификации:

  • https://openrouter.ai/docs/api-reference/authentication

Нода 1: OpenRouter Chat Model

Основное поле

  • Model Name or ID

Model Preferences

  • Temperature
  • Max Output Tokens
  • Top P
  • Frequency Penalty

Settings

  • Provider Ignore
    • Enabled
    • Providers (через запятую)
  • Provider Only
    • Enabled
    • Providers (через запятую)

Provider Ignore и Provider Only нельзя включать одновременно.

Нода 2: OpenRouter Pro Chain

Базовые поля

  • Model
  • User Prompt
  • System Message (опционально)
  • Additional Messages
    • Role (User / Assistant / System)
    • Content

Prompt Attachments

Image

  • Source (Public URL / Base64 String)
  • Image URL
  • Base64 Image
  • Image MIME Type

Audio

  • Source (Public URL / Base64 String)
  • Audio URL
  • Base64 Audio
  • Audio Format
  • Audio MIME Type

Video

  • Source (Public URL / Base64 String)
  • Video URL
  • Base64 Video
  • Video MIME Type

PDF

  • Source (Public URL or Data URI / Base64 String)
  • PDF URL or Data URI
  • Base64 PDF
  • Filename
  • PDF MIME Type

Гайды OpenRouter:

  • Models overview: https://openrouter.ai/docs/guides/overview/models
  • Multimodal images: https://openrouter.ai/docs/guides/overview/multimodal/images
  • Multimodal PDFs: https://openrouter.ai/docs/guides/overview/multimodal/pdfs
  • Multimodal audio: https://openrouter.ai/docs/guides/overview/multimodal/audio
  • Multimodal videos: https://openrouter.ai/docs/guides/overview/multimodal/videos

Structured Output

  • Enable Structured Output
  • Schema Name
  • Schema Description (опционально)
  • JSON Schema

Документация:

  • https://openrouter.ai/docs/guides/features/structured-outputs

Caching

  • Enable Caching
  • Cache Vendor (Auto / Anthropic)
  • Increase Cache TTL (только для Anthropic)

Best practices:

  • https://openrouter.ai/docs/guides/best-practices/prompt-caching

Output Mode

  • Full Response
  • First Completion Text

Локальная разработка

npm install
npm run build
npm run dev

Copyright © Александр Пикулев