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

@basalt-ai/n8n-nodes

v0.0.1

Published

n8n node for Basalt API

Downloads

23

Readme

@basalt-ai/n8n-node

n8n community node for the Basalt API - Manage prompts, monitoring, and datasets through n8n workflows.

Features

This n8n node allows you to:

Prompts

  • Get - Retrieve a specific prompt by slug
  • Get Many - List all prompts in your workspace
  • Describe - Get detailed information about a prompt including its variables
  • Publish - Publish a prompt version with a specific tag

Monitoring

  • Create Experiment - Create a new experiment for testing prompt variations
  • Log Output - Monitor individual prompt outputs with detailed metrics

Datasets

  • Get - Retrieve a specific dataset by slug
  • Get Many - List all datasets in your workspace
  • Create Item - Add a new row to a dataset

Installation

Community Nodes (n8n Cloud & Desktop)

  1. Go to Settings > Community Nodes
  2. Select Install
  3. Enter @basalt-ai/n8n-node in the Enter npm package name field
  4. Agree to the risks and click Install

Manual Installation (Self-Hosted)

Navigate to your n8n root directory and run:

npm install @basalt-ai/n8n-node

Then restart your n8n instance.

Credentials

To use this node, you'll need:

  1. API Key: Your Basalt API key (available in your Basalt dashboard)
  2. API URL: The base URL for the Basalt API (defaults to https://api.getbasalt.ai)

Setting up Credentials

  1. In n8n, go to Credentials and click Add credential
  2. Search for Basalt API
  3. Enter your API key and API URL
  4. Save the credential

Usage Examples

Example 1: Get a Prompt and Use it in a Workflow

1. Basalt Node (Get Prompt)
   - Resource: Prompt
   - Operation: Get
   - Slug: my-prompt-slug
   - Version: 1.0.0

2. HTTP Request Node
   - Use the prompt text from previous step
   - Make API call with the prompt configuration

Example 2: Log Prompt Outputs for Monitoring

1. Your LLM Node
   - Execute your AI workflow

2. Basalt Node (Log Output)
   - Resource: Monitoring
   - Operation: Log Output
   - Prompt Slug: {{ $json.promptSlug }}
   - Output: {{ $json.llmResponse }}
   - Input Tokens: {{ $json.usage.inputTokens }}
   - Output Tokens: {{ $json.usage.outputTokens }}

Example 3: Create Experiment

1. Basalt Node (Create Experiment)
   - Resource: Monitoring
   - Operation: Create Experiment
   - Feature Slug: my-feature
   - Name: A/B Test - Version 1.0 vs 2.0

Example 4: Add Items to a Dataset

1. Webhook Trigger
   - Receives new data

2. Basalt Node (Create Dataset Item)
   - Resource: Dataset
   - Operation: Create Item
   - Slug: training-data
   - Values: { "input": "...", "output": "..." }
   - Ideal Output: "Expected response"

API Operations

All operations support the full Basalt API specification. For detailed API documentation, visit https://docs.getbasalt.ai

Resources

Development

Building the Node

npm run build

Testing Locally

  1. Build the node:

    npm run build
  2. Link the package:

    npm link
  3. Link to your n8n installation:

    cd ~/.n8n/nodes
    npm link @basalt-ai/n8n-node
  4. Restart n8n

License

MIT

Support

For issues and questions: