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 🙏

© 2025 – Pkg Stats / Ryan Hefner

n8n-nodes-aisearchapi

v1.0.8

Published

n8n node for AI Search API — semantic search, web search, summarization, and context-aware answers with balance monitoring.

Readme

🤖 AI Search API n8n Node

Custom n8n node to integrate the AI Search API into your automation workflows.
Bring semantic search, context awareness, summarization, and balance monitoring directly into your n8n pipelines.

npm version TypeScript Node.js


✨ Features

  • 🔍 Semantic Search (AI Search API) – Natural language search with embeddings
  • 🌐 Web Search API – Search across the web with intelligent filtering
  • 📝 Summarization API / Summary API – Condense long text into clear summaries
  • 💬 Context Management – Add previous messages for richer answers
  • 📊 Balance Monitoring – Track credits and usage in real time
  • TypeScript Support – Strong typings and IDE hints
  • 🧩 Seamless n8n Integration – Drag-and-drop node inside your n8n editor

🚀 Quick Start

1) Sign Up & Get Your API Key

2) Install the Package

From npm (recommended):

npm install n8n-nodes-aisearchapi

From source:

git clone https://github.com/aisearchapi/aisearchapi-n8n.git
cd aisearchapi-n8n
npm install
npm run build

3) Run n8n with the Extension

Windows PowerShell (edit the path):

docker run -it --rm -p 5678:5678 `
  -e N8N_CUSTOM_EXTENSIONS=/extensions `
  -e N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=true `
  -e DB_SQLITE_POOL_SIZE=5 `
  -e N8N_RUNNERS_ENABLED=true `
  -v "C:\n8n-extensions\aisearchapi-n8n:/extensions" `
  -v n8n_data:/home/node/.n8n `
  n8nio/n8n:latest

macOS / Linux / WSL (edit the path):

docker run -it --rm -p 5678:5678   -e N8N_CUSTOM_EXTENSIONS=/extensions   -e N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=true   -e DB_SQLITE_POOL_SIZE=5   -e N8N_RUNNERS_ENABLED=true   -v "$HOME/n8n-extensions/aisearchapi-n8n:/extensions"   -v n8n_data:/home/node/.n8n   n8nio/n8n:latest

Then open: http://localhost:5678

You should see:
Loaded extensions from /extensions.


🔧 Configuration in n8n

  1. Go to Credentials → New → AI Search API
  2. Paste your API Key (without the Bearer prefix)
  3. Save

📖 Usage

Search API

  • Resource: Search
  • Operation: Search
  • Parameters:
    • query → your question (required)
    • responseTypemarkdown | text
    • context → optional array of messages
    • timeout → ms (default 30000)

Web Search API

  • Resource: Web Search
  • Operation: Search the web
  • Parameters:
    • query → keywords or question
    • maxResults → limit number of results
    • filters → optional filters

Summarization API / Summary API

  • Resource: Summarize
  • Operation: Summarize Text
  • Parameters:
    • text → input text or content
    • ratio → compression ratio (0–1)
    • length → target length of summary

Balance

  • Resource: Account
  • Operation: Get Balance

⚠️ Error Codes

| Code | Meaning | Fix | |------|---------|-----| | 401 | Unauthorized | Invalid key → Get key | | 429 | Too Many Requests | Slow down / add retry logic | | 433 | Quota Exceeded | Buy credits / upgrade | | 500 | Server Error | Try again later | | 503 | Service Unavailable | Temporary downtime |


🛡️ Best Practices

  • Keep your API key secret → store it in n8n Credentials
  • Use Markdown output for rich UI when possible
  • Reset context when you change topics
  • Monitor your credits via the balance endpoint

🧰 Troubleshooting

  • Node not visible in n8n

    • Check dist/... files exist after build
    • Verify package.json has "n8n" block
    • Restart the Docker container after changes
    • Run docker exec -it <ID> sh -c "ls -R /extensions"
  • Cannot find package 'n8n-workflow'

    • Install it: npm i [email protected]
    • Build as CommonJS (see tsconfig.json)
    • Keep node_modules mounted into the container
  • Windows copy errors (cp not found)

    • Use shx (already included) or PowerShell Copy-Item

📚 Resources


🎉 Start Now

npm install n8n-nodes-aisearchapi

Connect your API key in n8n and build AI-powered workflows in minutes.


🔍 SEO Keywords

AI Search API n8n node, web search api, summary api, summarization api, search api, semantic search automation, context-aware AI n8n, AI Search API workflow automation, AI Search API key integration, n8n extension AI Search API, AI search node for n8n, n8n semantic search plugin