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

@tiagopigatto/n8n-nodes-json-text-splitter

v0.2.4

Published

N8N node for automatic JSON object chunk splitting

Readme

@tiagopigatto/n8n-nodes-json-text-splitter

This is an n8n community node. It lets you split JSON text into JSON-object chunks in your n8n workflows.

n8n is a fair-code licensed workflow automation platform.

Installation
Operations
Compatibility
Usage
Resources

Installation

Follow the installation guide in the n8n community nodes documentation.

Quick Installation:

  • Make sure to allow community nodes with N8N_COMMUNITY_PACKAGES_ENABLED=true
  • Once logged in to your N8N web UI, go to /settings/community-nodes and type @tiagopigatto/n8n-nodes-json-text-splitter

Self-hosted: load locally (no registry install)

If you don’t want n8n to install from npm, you can load this node as a local custom extension.

  1. Copy this folder into a directory you will mount into your n8n instance, for example:

    • <somewhere-on-host>/n8n-custom/@tiagopigatto/n8n-nodes-json-text-splitter/

    Put the contents of json_text_splitter/ (this repo folder) inside that package directory.

  2. Install the package dependencies inside the container (or bake them into a custom image):

    • npm install --omit=dev --no-audit --no-fund
  3. Set n8n to load custom extensions from that parent folder (the one containing @tiagopigatto/...):

    • N8N_CUSTOM_EXTENSIONS=/home/node/.n8n/custom
  4. Restart n8n. The node should appear in the editor as “JSON Text Splitter” (AI → Text Splitters).

Operations

The JSON Text Splitter node provides token-bounded JSON object chunking:

  • Object selection: Collect objects from the JSON (recommended: objects inside arrays)
  • Token-bounded packing: Packs multiple objects per chunk, keeping each chunk under a token budget (approximate)
  • Oversized object splitting: If a single object is too large, it is split into multiple smaller object parts
  • Configurable behavior: Decide what to do on invalid JSON or when there are no matches
  • Flexible output: Pretty-print JSON and trim whitespace

Compatibility

  • Minimum n8n version: Compatible with n8n v1.0+
  • Node.js version: Requires Node.js 18.10 or higher
  • Dependencies: Uses @langchain/textsplitters

Usage

Node configuration

  • Object Selection:
    • Array Objects (default): objects that appear as elements inside arrays
    • All Objects: all objects found in the JSON (excluding the root)
  • Max Tokens Per Chunk: default 900 (approximate)
  • Chars Per Token (Estimate): default 4 (tokens ≈ chars/4)
  • On Invalid JSON: error (default), returnOriginal, or empty
  • On No Matches: empty (default) or returnOriginal
  • Pretty Print JSON: Pretty-print JSON output
  • Trim: Trim whitespace on the produced chunks

Example

If your input text is:

{"items":[{"text":"a"},{"text":"b"}]}

With the default Array Objects selection, the output chunks will be JSON like:

  • {"items":[{"path":"/items/0","value":{"text":"a"}},{"path":"/items/1","value":{"text":"b"}}]}

Resources

License

MIT