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-eval-js

v0.1.1

Published

n8n nodes for evaluating JavaScript code

Readme

n8n-nodes-eval-js

A simple Evaluate JS community node for n8n that lets you execute arbitrary JavaScript against each item in a workflow. It is useful when you need to transform data, compute new values or run custom logic that isn't covered by built‑in nodes.

The node runs code in a sandboxed async function and expects a JSON object result for each item. You can drag values from other nodes (e.g. {{$('Previous Node').json.value}}) directly into the expression editor.

n8n is a fair‑code licensed workflow automation platform.


Installation

  1. In your n8n instance, go to Settings → Community Nodes.
  2. Install from npm by entering n8n-nodes-eval-js or by uploading the .tgz built with npm pack.
  3. Alternatively, clone this repository into your n8n custom nodes folder and restart n8n.

Once installed, the Evaluate JS node will appear under the Developer Tools category.

Usage

  1. Add Evaluate JS to your workflow and connect it to a previous node.
  2. In the Expressions field, write your JavaScript code. The following variables are available:
    • $json – the current item's JSON data
    • $binary – binary data if present
    • $item, $itemIndex, $input, $node, $parameter – helpers from n8n's workflow data proxy
  3. Your script must return a plain object, e.g. return { foo: $json.bar * 2 };.
  4. To insert values from other nodes, open the expression editor (gear icon) or drag fields directly into the code editor.

Example

// multiply the "amount" field by 100 and add a timestamp
return {
  amountCents: $json.amount * 100,
  processedAt: new Date().toISOString(),
};

If an error occurs and Continue On Fail is enabled, the original item will be forwarded with an error property.

Compatibility

  • Tested with n8n v0.210.0 and later.
  • Requires Node.js >=18 (same as n8n itself).

Development

# install dependencies
npm install

# build once
npm run build

# or start dev server (auto rebuild + live preview)
npm run dev

Resources

License

MIT © Michał Białek


Version history will be maintained in changelog.