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-code23-duckdb

v0.1.15

Published

n8n node for executing SQL queries on DuckDB

Readme

n8n-nodes-code23-duckdb

A custom n8n node for executing SQL queries on DuckDB, an in-process SQL OLAP database.

Features

  • Execute SQL Queries: Run SQL queries against DuckDB databases
  • Connection Pooling: Efficient connection management for better performance
  • Type Safety: Full TypeScript support with proper type definitions
  • Flexible Input: Support for parameterized queries and dynamic SQL generation
  • n8n Integration: Seamless integration with n8n workflows as an input node

Prerequisites

⚠️ Important: Docker Configuration

This node is NOT compatible with the default n8n Docker image!

The default n8n Docker container is based on Alpine Linux, which is incompatible with DuckDB. Installing this node in an Alpine-based container will destroy the container.

Solution

You must use a Debian-based Docker image for n8n. See the included Dockerfile in this repository as an example of a working Debian-based setup:

FROM node:22-bookworm-slim
# ... rest of configuration

To use this node with n8n in Docker:

  1. Build a custom Docker image using the provided Dockerfile or create your own based on node:22-bookworm-slim or similar Debian variant
  2. Include system dependencies required for building native modules (python3, build-essential, etc.)
  3. Install n8n and the DuckDB node in the custom image

Installation

Clone the repository:

git clone https://github.com/stenet/n8n-nodes-code23-duckdb.git
cd n8n-nodes-code23-duckdb

Install dependencies:

npm install

Development

Start n8n with the node loaded and watch for changes:

npm run dev

This will:

  • Start n8n locally (usually at http://localhost:5678)
  • Load your DuckDB node
  • Enable hot reload for development changes

Available Commands

| Command | Description | | --------------- | -------------------------------------------- | | npm run dev | Start n8n with watch mode | | npm run build | Build the node for production | | npm run lint | Check code for linting issues | | npm run lint:fix| Automatically fix linting issues |

Usage

Adding the Node to a Workflow

  1. Open n8n and create a new workflow
  2. Click the plus icon to add a node
  3. Search for "DuckDB"
  4. Select the DuckDB node

Configuration

  1. Credentials: Set up DuckDB API credentials (database file path or connection string)
  2. Operation: Select "Execute SQL"
  3. SQL Query: Enter your SQL query

Example

SELECT * FROM table_name WHERE column = $1

Project Structure

├── nodes/
│   └── DuckDB/
│       ├── DuckDb.node.ts          # Main node class
│       ├── DuckDB.node.json        # Node metadata
│       ├── resources/
│       │   └── executeSQL/          # SQL execution operation
│       └── shared/                  # Shared utilities
├── credentials/
│   └── DuckDbApi.credentials.ts    # DuckDB credentials
├── icons/                           # Node icons
└── package.json

Building and Publishing

Build for Production

npm run build

This compiles TypeScript and outputs to the dist/ directory.

Publish to npm

npm publish

Before publishing, ensure:

  • Version in package.json is updated
  • Changes are committed to git
  • All tests pass and code is linted

Troubleshooting

Node not appearing in n8n

  1. Ensure dependencies are installed: npm install
  2. Verify the node is registered in package.json under n8n.nodes
  3. Restart the dev server: npm run dev
  4. Check browser console for error messages

Connection Issues

  • Verify DuckDB credentials are correctly configured
  • Check that the database file path or connection string is accessible
  • Review n8n logs for detailed error messages

Linting Errors

Run npm run lint:fix to automatically fix most issues.

Resources

Author

Stefan Heim - [email protected]

License

MIT