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

@fieldwork-ai/cli

v0.3.0

Published

The Fieldwork CLI: drive the org asset model and tool surface from the compute container, a laptop, or any agent harness.

Downloads

508

Readme

@fieldwork-ai/cli

The Fieldwork CLI: drive your organization's Fieldwork assets and tools from a terminal, a script, or an agent harness like Claude Code.

npm install -g @fieldwork-ai/cli
fieldwork login          # browser sign-in; the token is pinned to the org you pick
fieldwork whoami
fieldwork tool list

Inside a Fieldwork compute container the CLI is preinstalled and pre-authenticated as the conversation's user — no login step; credentials are injected per conversation.

Running tools

Every tool your account can use in chat (platform reads plus your org's connected integrations) is invocable by name. Arguments are one JSON object:

fieldwork tool describe kb_search                 # description + input schema
fieldwork tool run kb_search --args '{"query": "replenishment thresholds"}'
echo '{"database": "Metrics DB", "sql": "select count(*) from orders"}' \
  | fieldwork tool run db_query --args -          # stdin for large payloads
fieldwork tool run kb_search --args '{"query": "x"}' --arg query=override

--arg key=value overlays a string field; --arg key:=json parses the value as JSON. Tool-level errors (strings starting Error:) are data and exit 0; transport and auth failures use the exit codes below.

Asset families

fieldwork agents list | get <slug>
fieldwork kb list | get | search | put <path> | rm | mv | pull --dir <d> | push --dir <d>
fieldwork files list [prefix] | get <path> | put <local> [remote]
fieldwork data list | schema <table> | query "select …"
fieldwork db list | schema <database> [table] | query <database> "select …"
fieldwork apps list | get | init | pull | publish <dir> --message "…"
fieldwork automations list | get | enable | disable | runs [--follow] | run-now [--follow] | logs <name> | delete
fieldwork connectors list | pull <key> | publish <dir> --message "…" | connect <key> --spec <file> | test <id> | secrets set | secrets pull --out <file>

Mutations prompt for confirmation on a TTY; pass --yes to skip (required in non-interactive use). --json prints stable machine-readable output on every verb. Secret values never travel via argv or stdout: secrets set reads from --stdin, --from-env-file, or --from-env; secrets pull writes a chmod-600 file atomically and refuses to overwrite an existing file without --force.

The connector development loop end to end: connectors pull acme_erp → edit the adapter → connectors publish acme_erp --message "…" --base-revision N (a new key creates the definition from the tree's connector.json) → connectors connect acme_erp --spec spec.jsonconnectors secrets set <id>automations run-now <sync> --follow to watch the logs.

Auth and configuration

Credential resolution order: the injected container file (~/.fieldwork/credentials) → FIELDWORK_TOKEN / FIELDWORK_API_URL environment variables → the fieldwork login config (~/.config/fieldwork/config.json). One token binds one organization; fieldwork orgs use re-runs the browser flow to switch. Revoke a login anytime in Fieldwork under Settings → Connected apps.

Prefer a native tool surface in an MCP-capable harness? Fieldwork is also a remote MCP server:

claude mcp add --transport http fieldwork https://app.getfieldwork.ai/mcp

Exit codes

0 success (including tool-level Error: strings) · 1 server/network · 2 usage or validation · 3 unauthenticated · 4 forbidden · 5 not found · 6 conflict · 7 rate-limited