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

@polkadata/cli

v0.1.0

Published

Command-line client for the polkadata SaaS: watch cloud folders, get signed webhooks. Built for developers and AI agents (implements the auth.md agent-registration protocol).

Readme

polkadata CLI

The command-line client for the polkadata SaaS — the service that watches a Google Drive, Dropbox, Box, or OneDrive folder and POSTs signed webhook events (file.created / file.modified / file.deleted) to your URL whenever files in it change.

The CLI is built for developers and AI agents: polkadata login is a reference client of the server's auth.md agent-registration protocol, and every command answers with machine-readable JSON on stdout (progress and prompts go to stderr).

Install

npm install          # from this directory
npm run build
npm link             # puts `polkadata` on your PATH

Requires Node.js ≥ 20.

Quickstart

# 1. Register / sign in — prints a link and a 6-digit code. Open the link,
#    sign in (WorkOS AuthKit: Google, GitHub, or email magic link — a new
#    account provisions itself), and type the code into the polkadata page.
polkadata login --email [email protected]

# 2. Create a grant for a provider account and open the authorize_url it
#    returns (that step is the cloud provider's OAuth consent).
polkadata grants create --provider dropbox

# 3. Watch a folder (the grant must be active; the first connection needs a
#    subscription — a 7-day free trial starts at <server>/billing).
polkadata connections create --grant grant_… --folder /docs \
  --webhook-url https://yourapp.example/hooks/polkadata

# Your webhook URL now receives signed file.* events.
polkadata connections deliveries conn_…   # inspect delivery state

How login works (auth.md)

polkadata login discovers the server's registration surface from its /.well-known/oauth-protected-resource + /.well-known/oauth-authorization-server metadata, registers with service_auth (your email), and shows you a verification_uri and a 6-digit code. You sign in on the polkadata page and type the code; the CLI polls until you finish and receives a durable polkadata API key (sk-…), saved to ~/.config/polkadata/config.json (mode 0600). The key is delivered exactly once; polkadata logout revokes it server-side (RFC 7009) and deletes the local copy.

Commands

| Command | What it does | | --- | --- | | login --email <e> [--server <url>] [--no-open] | Register/sign in; saves the API key | | logout | Revoke the saved key and forget it | | whoami | Show the tenant the key acts on | | providers | List providers configured on the server | | grants create --provider <p> | p = google_drive / dropbox / box / onedrive; prints the authorize_url | | grants list / get <id> / authorize <id> / delete <id> [--yes] | Manage grants | | connections create --grant <id> --webhook-url <url> [--folder <spec>] [--secret <s>] | Watch a folder (secret defaults to a generated whsec_…) | | connections list / get <id> / delete <id> [--yes] | Manage connections | | connections files <id> [--page-token <t>] [--page-size <n>] | List the folder's current files (initial sync) | | connections deliveries <id> [--limit <n>] | Delivery state for the connection's events | | keys create --label <l> / list / delete <id> [--yes] | Manage additional API keys |

Global flags: --server <url> and --key <sk-…> override everything; then POLKADATA_SERVER / POLKADATA_API_KEY; then the saved login. With nothing set, the server defaults to https://api.polkadata.ai.

Development

npm run build   # tsc → dist/
npm test        # compiles + runs node:test suites against a fake server

Zero runtime dependencies, on purpose.