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

@pokash/n8n-nodes-pokash-archive

v0.1.1

Published

n8n community node for POKASH document archive — register existing MinIO files for AI classification, fetch documents and request status.

Downloads

204

Readme

n8n-nodes-pokash-archive

Custom n8n node integrating with the POKASH document archive API (https://archive.pokash.cloud).

Operations

| Operation | What it does | |---|---| | Register MinIO File | Triggers AI classification on a PDF/XML/image already stored in MinIO. The file is not copied — only metadata flows into the archive. Optional polling waits for classification to finish and returns the full Document object in the next step. | | Get Request Status | Polls the status of a previously registered request by request_id. | | Get Document | Fetches a classified document by UUID or by archive number (e.g. PKSH/2026/05/42). Includes a presigned MinIO download URL. |

Build

cd n8n-node
npm install
npm run build
# Output goes to ./dist

Install in self-hosted n8n (Docker)

Mount dist/ into the n8n custom-extensions directory:

docker run -d \
  -p 5678:5678 \
  -v ~/.n8n:/home/node/.n8n \
  -v $(pwd)/dist:/home/node/.n8n/custom/n8n-nodes-pokash-archive \
  -e N8N_CUSTOM_EXTENSIONS=/home/node/.n8n/custom \
  n8nio/n8n

Or via npm-link in n8n's custom directory:

mkdir -p ~/.n8n/custom && cd ~/.n8n/custom
npm link n8n-nodes-pokash-archive

Restart n8n. The node appears as POKASH Archive in the node palette.

Configure credentials

  1. n8n → CredentialsNew → search POKASH Archive API
  2. Fields:
    • API URLhttps://archive.pokash.cloud
    • API Key — long-lived key issued via POST /api-keys (format: ark_<tenant>_<random>)
    • Tenant Code (optional, cosmetic) — np. PKSH, ułatwia rozpoznanie credentialu w UI

API key NIE wygasa do momentu rewokacji. Tenant jest powiązany z kluczem po stronie API — nie trzeba podawać go ręcznie w żądaniach.

Generowanie API key

Pełny przewodnik (Swagger UI + curl, listowanie, rewokacja, best practices): docs/API_KEYS.md

TL;DR (curl):

API="https://archive.pokash.cloud"; TENANT="PKSH"
BOOT=$(curl -s -X POST "$API/auth/bootstrap-token" -H 'Content-Type: application/json' -d '{}' | jq -r .access_token)
JWT=$(curl -s -X POST "$API/auth/token" -H "Authorization: Bearer $BOOT" -H 'Content-Type: application/json' -d "{\"tenant_code\":\"$TENANT\",\"ttl_seconds\":3600}" | jq -r .access_token)
curl -s -X POST "$API/api-keys" -H "Authorization: Bearer $JWT" -H 'Content-Type: application/json' -d '{"name":"n8n production"}' | jq -r .key

Output to plaintext API key — wklej go natychmiast do n8n credentials (pole API Key). Pokazywany jest tylko raz.

Example workflow

[MinIO Webhook]  →  [POKASH Archive: Register MinIO File]  →  [Slack: notify]
                       bucket: ={{$json.Records[0].s3.bucket.name}}
                       objectKey: ={{$json.Records[0].s3.object.key}}
                       source: ksef
                       waitForClassification: true

When waitForClassification is enabled, the node returns the full Document object once classification finishes (status classified). Useful fields in the output:

{
  "id": "...",
  "archive_number": "PKSH/2026/05/42",
  "document_type": "invoice",
  "document_date": "2026-05-13",
  "document_number": "PL6773048",
  "sender_name": "OVH SP z.o.o.",
  "sender_tax_id": "8992520556",
  "amount_net": 58.99,
  "amount_gross": 72.56,
  "currency": "PLN",
  "summary": "...",
  "download_url": "https://s3.pokash.cloud/...presigned..."
}

License

MIT