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

v1.1.2

Published

n8n node to execute custom JavaScript code with 58+ built-in libraries

Readme

n8n-nodes-powercode

Execute custom JavaScript code with 58+ built-in libraries in n8n workflows.

Power Code is the ultimate code execution node for n8n. Unlike the built-in Code node that ships with zero libraries, Power Code comes pre-loaded with 58+ production-ready JavaScript libraries — from data processing and validation to blockchain and media processing.

n8n is a fair-code licensed workflow automation platform.

Installation

n8n Community Edition

  1. Open your n8n instance
  2. Go to SettingsCommunity Nodes
  3. Click Install a community node
  4. Enter: n8n-nodes-powercode
  5. Click Install
  6. Find "Power Code" in your node list

Docker Users

environment:
  - N8N_COMMUNITY_PACKAGES_ENABLED=true

Then install through the UI as shown above.

Operations

The Power Code node executes your custom JavaScript code in two modes:

  • Run Once for All Items — Execute code once for all items. Access all items via $input.all() or items variable.
  • Run Once for Each Item — Execute code once for each item. Access current item via $input.item or item variable.

All 58+ libraries are pre-loaded as global variables — no require() needed.

Complete Library List (58 Working Libraries)

Data Processing

lodash (_), dayjs, moment (moment-timezone), dateFns (date-fns), dateFnsTz (date-fns-tz), bytes, ms, uuid (as uuidv4), nanoid

Validation & Parsing

joi, validator, Ajv, yup, zod, qs

Files & Documents

ExcelJS (exceljs) — supports streaming read/write for large files, xlsxtream — streaming XLSX reader, XLSX (xlsx) — classic XLSX read/write, Papa (papaparse), ini, toml

Web & HTTP

axios, cheerio, FormData (form-data)

Text & Content

Handlebars, marked, htmlToText (html-to-text), xml2js, XMLParser (fast-xml-parser), YAML, pluralize, slug, stringSimilarity (string-similarity), fuzzy (fuse.js)

Security & Crypto

CryptoJS (crypto-js), jwt (jsonwebtoken), bcrypt (bcryptjs), forge (node-forge)

Specialized

QRCode (qrcode), iban, phoneNumber (libphonenumber-js)

Natural Language

franc (franc-min), compromise

Async Control

pRetry (p-retry)

Data Operations

jsonDiff (json-diff-ts), cronParser (cron-parser)

Blockchain & Crypto

web3, solana (@solana/web3.js), bitcoin (bitcoinjs-lib), secp256k1 (@noble/secp256k1), bip39 (@scure/bip39), ccxt, coinGecko (coingecko-api-v3)

Media Processing

ytdl (@distube/ytdl-core), ffmpeg (fluent-ffmpeg), ffmpegStatic (ffmpeg-static)

Usage Examples

Data Transformation with lodash & dayjs

const firstItem = items[0];
const name = _.get(firstItem, 'name', 'World');
return {
  greeting: 'Hello, ' + name + '!',
  timestamp: dayjs().format('YYYY-MM-DD HH:mm:ss'),
};

Web Scraping with axios & cheerio

const response = await axios.get('https://example.com/products');
const $ = cheerio.load(response.data);
const products = [];
$('.product-card').each((i, elem) => {
  products.push({
    title: $(elem).find('.title').text().trim(),
    price: parseFloat($(elem).find('.price').text().replace('$', '')),
    inStock: $(elem).find('.stock-status').hasClass('available'),
  });
});
return _.filter(products, 'inStock');

Excel File Processing (Streaming — supports large files)

// Read large Excel files with streaming (memory efficient)
const workbookReader = new ExcelJS.stream.xlsx.WorkbookReader(binaryData);
for await (const worksheetReader of workbookReader) {
  for await (const row of worksheetReader) {
    // Process each row without loading entire file into memory
    const values = row.values;
  }
}

// Write Excel files with streaming
const workbook = new ExcelJS.stream.xlsx.WorkbookWriter({ stream: fs.createWriteStream('output.xlsx') });
const sheet = workbook.addWorksheet('Report');
sheet.columns = [
  { header: 'Name', key: 'name' },
  { header: 'Email', key: 'email' },
];
items.forEach(item => sheet.addRow(item).commit());
await workbook.commit();

JWT Authentication

const token = jwt.sign(
  { userId: user.id, email: user.email },
  'your-secret-key',
  { expiresIn: '24h' }
);
const hashedPassword = await bcrypt.hash(password, 12);
return { token, hashedPassword };

Data Validation

const schema = joi.object({
  email: joi.string().email().required(),
  age: joi.number().min(18).max(100),
});
const { error, value } = schema.validate($input.item.json);
if (error) throw new Error(`Validation failed: ${error.message}`);
return value;

Compatibility

Compatible with n8n version 1.0+

Version History

1.2.0

  • Added xlsx library for classic XLSX read/write support

1.1.0

  • Initial release with 58 built-in libraries

Resources