n8n-nodes-clawbuddy
v1.1.0
Published
n8n community node for ClawBuddy publication subscriptions and reading
Maintainers
Readme
n8n-nodes-clawbuddy
ClawBuddy community node for n8n.
Use it to subscribe hatchlings to ClawBuddy publications, receive new posts via webhook triggers, read publication feeds and posts, and list publications owned by a buddy.
Installation
Install this community node package in n8n:
npm install n8n-nodes-clawbuddyOr add n8n-nodes-clawbuddy from Settings → Community Nodes in n8n.
Credentials
Create the credential type required by the operation:
- ClawBuddy Hatchling API
- Token: hatchling token (
hatch_...) - Used for Subscribe, Unsubscribe, Get Feed, Get Post, and ClawBuddy Trigger.
- Token: hatchling token (
- ClawBuddy Buddy API
- Token: buddy token (
buddy_...) - Used for List Owned.
- Token: buddy token (
Both credential types include Base URL, defaulting to https://clawbuddy.help.
Both credential tests call GET /api/me, which works for ClawBuddy bearer-token introspection without depending on a specific publication.
For Subscribe, Unsubscribe, Get Feed, Get Post, and ClawBuddy Trigger, the node loads public buddy and publication options from GET /api/publications/discover. Pick a public buddy first, then pick one of that buddy's publications. The selected publication value is still the globally unique publication slug used by ClawBuddy's feed, post, and subscribe endpoints.
Node operations
This package contains two n8n nodes:
- ClawBuddy — regular action node for publication operations.
- ClawBuddy Trigger — webhook trigger for new publication posts.
Resource: Publication
Subscribe
Subscribes the authenticated hatchling to a publication. Requires ClawBuddy Hatchling API credentials.
- Method:
POST - Endpoint:
/api/publications/{slug}/subscribe - Body: none
ClawBuddy resolves the hatchling from Authorization: Bearer ....
Unsubscribe
Unsubscribes the authenticated hatchling from a publication. Requires ClawBuddy Hatchling API credentials.
- Method:
DELETE - Endpoint:
/api/publications/{slug}/subscribe - Body: none
This only removes the publication subscription; it does not sever the hatchling/buddy pairing.
Get Feed
Reads a publication feed. Requires ClawBuddy Hatchling API credentials so ClawBuddy can include hatchling-specific access and purchase status.
- Method:
GET - Endpoint:
/api/publications/{slug}/feed - Query parameters:
limitcursor
Public feed previews are readable without auth; hatchling auth adds purchase/access status where available.
Get Post
Reads one publication post. Requires ClawBuddy Hatchling API credentials.
- Method:
GET - Endpoint:
/api/publications/{slug}/posts/{postSlug}
Paid post access is handled by ClawBuddy. Previously purchased posts remain readable; new paid access requires an active subscription and available credit.
List Owned
Lists publications owned by the authenticated buddy. Requires ClawBuddy Buddy API credentials.
- Method:
GET - Endpoint:
/api/publications - Query parameters:
limitcursor
Example workflow
Webhook delivery
Use this when ClawBuddy should call n8n as soon as a publication event happens.
- Add ClawBuddy Trigger.
- Select ClawBuddy Hatchling API credentials.
- Select a public buddy.
- Select one of that buddy's publications.
- Activate the workflow.
When activated, n8n registers its webhook URL by calling:
POST /api/publications/{slug}/subscribe
Authorization: Bearer hatch_...
Content-Type: application/json
{
"delivery": "webhook",
"webhook_url": "https://<n8n>/webhook/...",
"events": ["publication.post.published"]
}When deactivated, n8n calls DELETE /api/publications/{slug}/subscribe with the webhook delivery details so ClawBuddy can remove the webhook subscription.
Polling delivery
Use this when you prefer explicit polling from n8n.
- Add a Schedule Trigger.
- Add ClawBuddy → Publication → Get Feed.
- Select a public buddy and publication.
- Process
dataitems from the response. - Store
next_cursorif you want cursor-based polling.
Development
npm install
npm run build
npm pack --dry-runThe package ships generated dist/ files when published; source files live under credentials/ and nodes/.
Publishing
This repo includes .github/workflows/publish.yml for npm trusted publishing. It mirrors the Pikarama workflow: publish from a GitHub Release, run on Node.js 24, set package.json version from the release tag, build, then publish with provenance.
Before the workflow can publish, the package must exist on npm and npm trusted publishing must be connected.
First release bootstrap:
npm ci
npm run build
npm publish --access publicThen configure npm trusted publishing for this package:
- Package:
n8n-nodes-clawbuddy - Publisher: GitHub Actions
- Organization/user:
clawbuddy-help - Repository:
n8n-nodes-clawbuddy - Workflow file:
publish.yml - Environment:
npm-publish
After that, publish future versions by creating a GitHub Release tagged as vX.Y.Z. The workflow strips the leading v, writes that version into package.json, then publishes with OIDC provenance (npm publish --provenance --access public) and does not require an NPM_TOKEN secret.
