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

@toolhouseai/n8n-nodes-toolhouse

v1.0.7

Published

Toolhouse AI nodes for n8n

Readme

Toolhouse n8n Custom Nodes

Important: Before building or running, you must install dependencies with:

npm install

This package provides custom n8n nodes to integrate with Toolhouse, including:

  • Toolhouse: Interact with Toolhouse agents (send/continue conversations)
  • Toolhouse Webhook: Receive callbacks from Toolhouse agents

Features

  • Start and continue conversations with Toolhouse agents
  • Securely store and use Toolhouse API tokens via n8n Credentials
  • Dynamically select agents from your Toolhouse account
  • Webhook node to handle agent callback events (completed/failed)
  • Alternative flows for errors and status handling

Prerequisites


Setup & Build

  1. Install dependencies (if you haven't already)

    npm install
  2. Build the nodes and copy assets

    npm run build
    • This will compile TypeScript files to the dist/ directory and copy the toolhouse.svg icons.
    • Always use npm run build instead of just npx tsc to ensure assets are included!

Running with Docker Compose

A docker-compose.yml is provided. It will:

  • Run n8n
  • Mount your built custom nodes from ./dist into the container

First Time Setup

  1. Install dependencies:
    npm install
  2. Build your custom nodes and copy assets:
    npm run build
  3. Start n8n with Docker Compose:
    docker compose up
    or (older versions)
    docker-compose up
  4. Access n8n:

Rebuilding After Changes

  • If you make changes to your TypeScript node files or assets, you must rebuild before restarting Docker Compose:
    npm run build
    docker compose down
    docker compose up
  • This ensures the latest code and assets are available in the container.

Using the Custom Nodes

1. Toolhouse Node

  • Add the Toolhouse node to your workflow.
  • Select or create a Toolhouse API credential (store your API token securely).
  • Select an agent from the dropdown (populated from your Toolhouse account).
  • Enter your message and (optionally) a run ID to continue a conversation.
  • The node supports two outputs:
    • Output 1: Success
    • Output 2: Error

2. Toolhouse Webhook Node

  • Add the Toolhouse Webhook node to your workflow.
  • Set your Toolhouse agent's callback_url to:
    https://<your-n8n-domain>/webhook/toolhouse-callback
  • The node supports two outputs:
    • Output 1: status is completed
    • Output 2: status is failed
  • The webhook receives and outputs:
    • run_id
    • status
    • last_agent_message

Credentials Setup

  1. In the n8n UI, go to Credentials.
  2. Create a new credential of type Toolhouse API.
  3. Enter your Toolhouse API token.
  4. Select this credential in the Toolhouse node.

Debugging & Troubleshooting

  • Use console.log() in your node code to print debug info (viewable in Docker logs or terminal).
  • Check the n8n UI Executions tab for workflow run details and errors.
  • If credentials are not found:
    • Ensure the credential name matches everywhere (toolhouseApi)
    • Rebuild (npm run build) and restart Docker/n8n
    • Check that dist/nodes/ToolhouseApi.credentials.js and dist/nodes/toolhouse.svg are present and mounted
    • Check logs for errors

Advanced: VS Code Debugging

You can run n8n in debug mode and attach a debugger:

  • Add to your docker-compose.yml:
    command: node --inspect=0.0.0.0:9229 /usr/local/lib/node_modules/n8n/bin/n8n
    ports:
      - 9229:9229
  • Attach VS Code to localhost:9229

References


License

MIT