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

@ionite/fd

v0.0.4

Published

Command-line client for Faraday

Readme

@ionite/fd

The command-line client for Faraday. It works locally, over SSH, in containers, and in coding agents: interactive sign-in uses the OAuth 2.0 Device Authorization Grant and never opens a localhost callback listener.

bunx @ionite/fd login https://fd-dev.ionite.dev/acme/dev/projects/INTAPP...
# or
npx @ionite/fd login https://fd-dev.ionite.dev/acme/dev/projects/INTAPP...

The CLI prints a URL and short code. Complete sign-in in any browser, including one on a different device.

Commands

fd version
fd create <name> [--theme ID] [--server URL]
fd login [project-url] [--server URL] [--label NAME] [--no-browser]
          [--write-example | --no-write-example]
fd logout
fd whoami
fd project show
fd env pull [--label NAME] [--file .env] [--stdout]
fd status
fd sso people [--company ID-OR-NAME]
fd sso password <person> [--company ID-OR-NAME]
fd relay run [--base-url URL] [--onboard APP-TENANT-SLUG]
fd company pin <company-id>@<version|latest>
fd dataset pull --company <id> [--out ionite.dataset.json] [--stdout]
fd dataset load --file ionite.dataset.json --eci URL --tenant ID [--tenant ID]
fd export catalog [--out FILE] [--stdout]
fd export config-diff [--out FILE] [--stdout]

Every command accepts --json. Unknown flags are rejected.

fd version (or --version) prints the package version plus the Node version and platform running it, so a stale bunx cache or an unsupported Node shows up before anything else fails.

fd create scaffolds a TanStack Start app with the pinned shadcn CLI. Pass --theme twsn to install Faraday's public TWSN theme, system-aware light/dark toggle, starter page, and logos in the same command. Creation does not require Faraday sign-in; theme files are public. --server, FD_SERVER, or https://fd-dev.ionite.dev chooses the Faraday origin that serves the theme.

login uses the RFC 8628 approval page to search for or create one project, then creates a delegate with exactly Project Developer on that project. A project URL from the command line, .env, or .env.example preselects a project but never locks the approval page to it. The delegate is authorized only by its own grant; it never inherits its owner's teams, tenant access, or other projects. login stores the project-scoped developer delegate in the CLI credential store, mints an App key, and writes the canonical project URL plus App key to .env as FD_URL and FD_TOKEN. It then offers to record the non-secret URL and an explicit FD_TOKEN generation placeholder in .env.example. Use --write-example or --no-write-example to make that choice non-interactively. env pull refreshes the checkout's App key while preserving all other content. The default key label identifies the host and checkout. Ensure .env is ignored; login never writes a token to a tracked or unignored .env. In a terminal it explains the risk and offers to add /.env to .gitignore; scripts and --json runs fail with the same explanation. When it saves .env.example and git ignores that file (a template's .env* line does), it offers to add !.env.example so teammates receive the project association, and fd create adds that line itself.

status prints a checklist: project created, signed in, App connected, Config delivered, and Workload verified, followed by the next step for the first open stage. A WebSocket copy counts as connected while its socket is open, and a polling copy for 20 minutes after its last read. Config delivered means the App reported a schema-valid config; it cannot prove the App applied it. Workload verified fills in when something presents the project's workload token to the Faraday workload whoami route. status --json keeps the raw fields.

sso people lists the test people in the current project's test company. sso password prints a five-minute, single-use username/password pair for the separate development IdP origin. Interactive project delegates may mint passwords directly; App keys are never accepted.

Dev CIAM exposes the same five-minute, single-use login-ticket API for customer personas. The UI uses the signed-in developer delegate. The CLI does not yet wrap that endpoint with a ciam password command.

relay run is the one-shot bridge to a local App. It diff-applies Tenant Management rows and their credential-free config locators, pages the App's requestable SCIM Groups catalog, applies Dev IAM's desired SCIM Users and standing Group memberships, delivers queued OIDC back-channel logout tokens, and posts the combined result to Faraday. Session grants remain token claims and never enter the SCIM plan; revoke or expiry queues logout for the next run. SCIM writes use a five-minute project-bound fd-iam token and run while SCIM provisioning is switching on, applied, or switching off. The relay does not start the App, a daemon, or a tunnel; a warm run reports zero writes.

Purchase-mode companies enter the relay only after Simulate ionite purchase is selected on the project page. When Tenant Management returns action_required, the CLI prints the onboarding URL and opens it for an interactive terminal. Warm runs preserve a valid action link; use --onboard <app-tenant-slug> to replace it deliberately, while expired links are replaced automatically.

company pin makes a project's exports use a selected immutable dataset version instead of the latest. dataset pull writes ionite.dataset.json plus an ionite.dataset.lock recording its id, version, content hash, and source. It exports the current project's pinned version composed with its policies, standing assignments, and company-scoped customers. dataset load posts a validated dataset to an ECI's standard /ionite/api/dataset/load route. export catalog and export config-diff write the requestable-catalog setup artifact and the redacted RemoteConfig diff for handing a project to another environment.

Environment

  • FD_URL — the canonical current Faraday target URL.
  • FD_TOKEN — the current checkout's project-scoped fd_ak_ App key. envConfig() derives the development vault connection from this pair.
  • FD_SERVER — optional Faraday origin used by login when no project URL or --server is available.

The project URL and App key live in the checkout's .env, which is written with mode 0600. The developer's ion_dlg_ delegate lives in $XDG_CONFIG_HOME/fd/credentials.json (or ~/.config/fd/credentials.json) with mode 0600; it is never exposed to the App process. Login uses the first project suggestion from its argument, .env, or .env.example; otherwise it uses --server, FD_SERVER, or https://fd-dev.ionite.dev. The browser always permits searching for a different project or creating one on a manageable team. A URL in .env.example is a non-secret suggestion. Its FD_TOKEN entry is instructional text, never a credential; raw tokens are never read from or written to .env.example. Inside a git checkout, fd login and fd env pull refuse to write credentials to a file that is tracked or not ignored. They also refuse a .env that already configures another ION_* ConfigSource, since envConfig() rejects mixing it with the Faraday pair; stale ION_VAULT_* lines that point at the same Faraday origin are removed. Project and server URLs must use https://; http:// is accepted only for localhost.

Delegates default to seven days. Tenant settings may choose a one-to-thirty-day maximum, but no delegate can exceed the hard thirty-day cap. Authenticated CLI calls derive their tenant route from FD_URL; the delegate is never searched across tenants. fd logout revokes the delegate, its grant, and its App keys, then removes the local credential.

Publishing

The package is versioned independently from the ionite SDK, using the same prerelease scheme:

bun run publish:package                  # next X.Y.Z-beta.YYYYMMDD.N on the `beta` dist-tag
bun run publish:package --version X.Y.Z  # stable release on the `latest` dist-tag

Install the stable release with @ionite/fd; use @ionite/fd@beta to try a prerelease.

Publishing requires npm access to the @ionite organization.