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

v0.1.3

Published

n8n node for GCF (Graph Compact Format) - bidirectional conversion between GCF and JSON. 71% fewer tokens, zero config.

Readme

n8n-nodes-gcf

n8n community node for GCF (Graph Compact Format) -- bidirectional conversion between GCF and JSON with 71% fewer tokens and zero config.

GCF is a structured data wire format optimized for LLM tool responses. It achieves 90.7% comprehension across 10 models while cutting token costs by 71% compared to JSON.

Installation

In your n8n instance:

npm install n8n-nodes-gcf

Or install via the n8n UI: Settings > Community Nodes > Install > n8n-nodes-gcf

Operations

Encode (JSON to GCF)

Converts JSON input to GCF format. Automatically detects whether to use the graph profile (for tool payloads with tool + symbols fields) or the generic profile (everything else).

  • Input Data: Drag and drop JSON data, use {{ $json }}, or reference a field name
  • Output Field: Field name for the GCF output (default: data)
  • Include Token Metrics: Adds estimated token counts for JSON vs GCF with reduction percentage

Decode (GCF to JSON)

Parses GCF text back into JSON. Automatically detects graph vs generic profile from the header.

  • Input Data: A GCF-formatted string (field reference or literal text)
  • Output Field: Field name for the JSON output (default: data)

AI Agent Integration

This node has usableAsTool: true, so n8n AI agents can use it directly to compress tool responses before sending them to the LLM, saving tokens on every call.

Example Workflow

  1. HTTP Request node fetches API data (JSON)
  2. GCF node encodes it to GCF (Encode operation)
  3. AI Agent node receives the compressed payload, saving 71% on input tokens
  4. GCF node decodes agent output back to JSON (Decode operation)

Token Savings

Enable "Include Token Metrics" to see per-item comparisons:

{
  "data": "GCF profile=generic\n...",
  "tokenMetrics": {
    "jsonTokens": 1200,
    "gcfTokens": 350,
    "tokensSaved": 850,
    "reductionPercent": 70.83
  }
}

Links

Why GCF over TOON?

| | GCF | TOON | |---|---|---| | Token savings vs JSON | 71% | 40% | | GCF vs TOON (15 datasets) | 25.5% fewer | baseline | | LLM comprehension (500 records) | 100% on every frontier model | Fails on GPT-5.5 | | LLM generation validity | 5/5 on every frontier model | Rejected by 7/9 models | | Source format support | JSON, YAML, TOML, CSV, MessagePack | JSON only | | Runtime dependencies | Zero | 1 | | Lossless round-trips verified | 33 billion+ | None published | | Session deduplication | Yes (92% savings by 5th call) | No | | Graph/relationship encoding | Yes (local IDs, typed edges) | No |

Full comparison with benchmarks

How GCF Works

GCF replaces JSON's verbose syntax with a compact, deterministic encoding:

  • No braces, brackets, or quotes for keys
  • Tabular arrays encoded as pipe-separated rows
  • Nested structures via indentation
  • Zero config: encodeGeneric(data) and decodeGeneric(text) handle everything

The encoding is fully deterministic and round-trip safe.

License

MIT