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-newapi

v0.1.1

Published

n8n community node for NewAPI - Access AI models through OpenAI compatible API

Downloads

18

Readme

n8n-nodes-newapi

This is an n8n community node for NewAPI - an OpenAI compatible API service.

Features

  • Chat Completions: Send messages to AI models and get responses
  • Model List: Query available models
  • OpenAI Compatible: Works with GPT-4, Claude, and other models

Installation

For Docker deployments

Add the following to your docker-compose.yml:

environment:
  - N8N_CUSTOM_EXTENSIONS=/home/node/.n8n/custom
volumes:
  - ./custom:/home/node/.n8n/custom

Then copy the built package to the custom folder:

cp -r dist /path/to/custom/n8n-nodes-newapi

For npm installations

# In your n8n installation directory
cd ~/.n8n
npm install /path/to/n8n-nodes-newapi

For local development

# Build the package
cd ~/Documents/n8n-development/n8n-nodes-newapi
npm run build

# Link the package
npm link

# In n8n custom directory
cd ~/.n8n
npm link n8n-nodes-newapi

# Start n8n
n8n start

Configuration

  1. In n8n, go to Credentials and create a new NewAPI Credentials
  2. Enter your API Key (starts with sk-)
  3. Optionally modify the Base URL (default: https://newapi.lvis.lol)

Usage

Chat Completion

  1. Add a NewAPI node to your workflow
  2. Select Chat as the resource
  3. Select Complete as the operation
  4. Enter the model name (e.g., gpt-4o-mini, claude-3-5-sonnet)
  5. Enter your message
  6. Optionally add a system message and adjust parameters

List Models

  1. Add a NewAPI node to your workflow
  2. Select Model as the resource
  3. Select List as the operation

Parameters

| Parameter | Description | |-----------|-------------| | Model | The AI model to use (e.g., gpt-4o, gpt-4o-mini, claude-3-5-sonnet) | | User Message | The message to send to the model | | System Message | Optional system prompt to set behavior | | Max Tokens | Maximum tokens in the response (default: 1024) | | Temperature | Randomness control 0-2 (default: 0.7) | | Top P | Nucleus sampling 0-1 (default: 1) |

Output

The node returns the API response with an additional message field containing the extracted response text for easy access.

{
  "id": "chatcmpl-xxx",
  "choices": [...],
  "message": "The extracted response text"
}

Project Location

This project is located at:

~/Documents/n8n-development/n8n-nodes-newapi

License

MIT

Author

qiyu