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-datatable-cache

v0.1.3

Published

Read-through / write-back cache node backed by an n8n data table

Readme

n8n-nodes-datatable-cache

npm version npm downloads license

A Data Table Cache node for n8n: a read-through / write-back cache backed by an n8n data table, with hit/miss routing and TTL expiry.

📦 npm: n8n-nodes-datatable-cache

Requirements: an n8n version whose public API serves /api/v1/data-tables (older instances return 404), and executionOrder: v1 (the default on recent n8n).

What it does

Two inputs (Input, Update), two outputs (Cache Hit, Cache Miss), wired as a loop:

 Input  ─▶ ┌─ Data Table Cache ─┐ ─▶ Cache Hit  → use payload
 Update ─▶ └────────────────────┘ ─▶ Cache Miss → work ─┐
                ▲──────────────── Update ───────────────┘
  • Input — look up by key. A fresh hit emits the cached payload on Cache Hit; a miss or expired hit emits the item on Cache Miss (with the stale row under _staleRow).
  • Update — write processed items back; each is upserted and re-emitted on Cache Hit.

Wire it as a loop: Cache Miss → your work → the Update input; take Cache Hit onward.

➡️ Setup — one-time install: community node, data table, API key, credential (with screenshots). ➡️ Usage guide — per-workflow: importable example, node config, the cache loop, TTL, and evicting expired rows.

Install

Community node (n8n Settings → Community Nodes → Install): n8n-nodes-datatable-cache.

Setup (quick)

  • Data table with columns cache_key, payload, last_modified (and optional last_access) — see Setup.
  • Credential: the built-in n8n API credential — an API key (with dataTable* scopes) and a Base URL ending in /api/v1.

Parameters

| Parameter | Default | Notes | | -------------------- | --------------- | ---------------------------------------------------- | | Data Table | — | Pick from list or enter the table ID | | Key Column | cache_key | Column matched against the cache key | | Cache Key | — | Value to look up (Input) or store under (Update) | | Payload Column | payload | Holds the JSON-stringified payload | | Last Modified Column | last_modified | ISO timestamp of the last write | | Last Access Column | last_access | ISO timestamp of the last hit (optional; leave empty to skip) | | Max Age + Unit | 3600 s | A hit older than this becomes a miss | | Measure From | Last Modified | Whether TTL counts from last_modified or last_access |

Limitations

  • Expiry: TTL only (filter-condition mode planned).
  • Concurrency: last-write-wins — fine for a cache, not for transactional data.
  • Malformed payload: degrades to { _raw: <value> } rather than throwing.
  • Continue On Fail: errored items are emitted with an error field (lookup → Cache Miss, store → Cache Hit) instead of failing the run.

Development

npm install
npm run build   # tsc + copy assets to dist/
npm run lint

All data-table I/O is isolated in nodes/DataTableCache/stores/ behind the CacheStore interface; client.ts (dataTableRequest) is the single line to revisit on n8n API changes.

License

MIT