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

feathers-curlew

v0.0.2

Published

AI-friendly CLI toolkit for driving FeathersJS v5 servers, in-process or remote.

Readme

An AI-friendly CLI toolkit for driving FeathersJS v5 servers — in-process or remote. JSON in, JSON out.

You configure feathers-curlew into your app with app.configure(curlew()). Each Feathers method becomes a verb that takes the service path as an argument — curlew find users, curlew patch users 42 — plus authenticate, watch and your own custom commands (like sql). Output is JSON with non-zero exit codes on error, so an AI agent can drive your server reliably.

Install

pnpm add feathers-curlew
# optional, for remote mode:
pnpm add @feathersjs/rest-client @feathersjs/authentication-client

Quickstart

Configure the plugin in your app, then point curlew at an app factory:

// src/app.ts
app.configure(curlew())

// curlew.config.ts
export default defineCurlewConfig({ createApp: () => createApp() })
npx curlew services
npx curlew find users --query '{"$limit":5}'
npx curlew create users --data '{"email":"[email protected]","password":"secret"}'
npx curlew authenticate --email [email protected] --password secret
npx curlew find api/v1/users             # nested paths need nothing special
npx curlew call messages markRead -d '{"id":42}'   # Feathers custom method

Add --pretty for indented JSON. Errors go to stderr as JSON with exit code 1. Full walkthrough: Getting Started.

Teach your AI agent

feathers-curlew is built to be driven by an AI agent. Generate instructions tailored to your app — real services, methods, custom commands, and the safety model — and drop them into your agent config:

npx curlew instructions --out AGENTS.md                                      # idempotent managed block
npx curlew instructions --format skill --out .claude/skills/curlew/SKILL.md  # Claude Code Skill

Re-run after your services change; the block is replaced in place, never duplicated. See the AI Agents guide.

Modes

  • In-process (default): boots your app (app.setup()) and calls services directly — full DB access, supports custom sql-style commands.
  • Remote: talks to a running server over REST/Socket.IO via @feathersjs/client.
npx curlew --remote --url http://localhost:3030 find users

Large results & live events

npx curlew findAll users --ndjson | head -20   # one record per line, paged through
npx curlew watch orders --query '{"status":"paid"}'   # stream events (in-process)

Permissions & safety

Calls are internal (full access) by default. Scope them per call, or change the default with permission: 'authenticated':

npx curlew patch users 42 --data '{"role":"admin"}'   # internal (default)
npx curlew find users --as 7                          # run as a user
npx curlew find users --token "$JWT"                  # run with a token

Bulk writes (patch/remove with the id null) hit every matching record, so preview them — and make confirmation mandatory if an agent is driving:

npx curlew remove users null -q '{"expired":true}' --dry-run
# {"dryRun":true,"method":"remove","service":"users","wouldAffect":412,"sample":[…]}
export default defineCurlewConfig({ confirmBulk: true }) // bulk writes now need --yes

See Permissions.

Custom commands

import { defineCurlewCommand, defineCurlewConfig } from 'feathers-curlew'

export default defineCurlewConfig({
  createApp: () => createApp(),
  commands: [
    defineCurlewCommand({
      name: 'sql',
      requiresApp: true,
      args: { query: { type: 'positional', required: true } },
      async run({ app, args, output }) {
        const knex = app!.get('postgresqlClient')
        output((await knex.raw(args.query)).rows)
      },
    }),
  ],
})

Programmatic use

import { runCurlew } from 'feathers-curlew'
import { app } from './src/app'

process.exit(await runCurlew(app, { argv: ['find', 'users'] }))

Documentation

Full docs (built with VitePress) live in docs/. Run them locally with pnpm docs:dev.

License

MIT