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

v0.1.18

Published

n8n community node — SafeAgent execution guard (claim-before-execute idempotency pattern)

Downloads

2,107

Readme

n8n-nodes-safeagent

n8n community node — SafeAgent Execution Guard

Gives every workflow item a durable claim before a side-effectful action runs, then routes to Proceed (new) or Skip (duplicate already seen). Prevents double-sends, double-charges, and double-trades when agents or webhooks retry.

npm License


Installation

In your n8n instance go to Settings → Community Nodes → Install and enter:

n8n-nodes-safeagent

Or install manually:

npm install n8n-nodes-safeagent

Also available as

  • x402 pay-per-call APIOrbis listing — $0.001 USDC per claim, no signup, autonomously discoverable by AI agents on Base
  • Python librarypip install safeagent-exec-guard
  • Claude Desktop MCPsafeagent_claim and safeagent_settle tools available directly in Claude Desktop
  • MCP Registryio.github.azender1/safeagent
  • Bazaar indexed — discoverable by any x402-enabled agent
  • Guarantee model specargentum-core — documents what a COMMITTED SafeAgent claim proves vs a Mycelium TrailRecord

Operations

Claim

Atomically reserves a (Request ID, Action) pair in durable storage. Returns PENDING on the first call, then routes to Proceed or Skip.

| Output | When | |--------|------| | Proceed | Pair is new — run your action, then call Settle | | Skip | Pair already COMMITTED — reuse the stored result |

Settle

Transitions a PENDING claim to COMMITTED once the action has completed successfully. A crash mid-call leaves PENDING; a sweeper resets it so the next worker can retry cleanly.


Quick test

Build a workflow with three nodes:

[Manual Trigger] → [SafeAgent Guard (Claim)] → Proceed → [SafeAgent Guard (Settle)]
                                              → Skip   → [No Operation]
  1. Set Request ID to a fixed value, e.g. test-001.
  2. Set Action to send_email (or any label).
  3. Execute the workflow.
    • First run: item exits Proceed.
    • Second run with the same Request ID: item exits Skip.

Node parameters

| Parameter | Description | Default | |-----------|-------------|---------| | Operation | claim or settle | claim | | Request ID | Unique idempotency key (e.g. webhook event ID, message UUID) | — | | Action | Short label for the action being guarded (e.g. send_email) | — | | Database Path | Path to the SQLite file (relative to n8n working directory) | safeagent.db |


Output fields

Claim (Proceed):

{
  "requestId": "evt-abc123",
  "action": "send_email",
  "status": "PENDING"
}

Claim (Skip):

{
  "requestId": "evt-abc123",
  "action": "send_email",
  "status": "COMMITTED",
  "existing": { ... }
}

Settle:

{
  "requestId": "evt-abc123",
  "action": "send_email",
  "status": "COMMITTED"
}

License

Apache-2.0