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

fsite-agent

v0.1.0

Published

Runs a locally-authenticated Codex CLI (codex app-server) on your machine to power F•SITE's Flex plan Codex integration. F•SITE never sees your OpenAI/ChatGPT credentials, only this tool's own, separately revocable pairing token.

Downloads

24

Readme

fsite-agent

Runs a locally-authenticated Codex CLI on your own machine so F•SITE's Flex plan can use your existing Codex/ChatGPT subscription instead of F•TOKENS.

F•SITE never sees your OpenAI/ChatGPT credentials. Codex owns its own login entirely, on your machine, in your own $CODEX_HOME. This tool only ever talks to F•SITE with its own, separate, independently revocable token — see "How this stays safe" below.

Prerequisites

  • Codex CLI installed (npm i -g @openai/codex or brew install --cask codex)
  • You've run codex login yourself and signed in with your ChatGPT Plus/Pro/Business/Enterprise plan (or an API key). Verify with codex app-serveraccount/read, or just try fsite-agent run, it checks this for you and tells you plainly if you're not logged in.

Install

npm install -g fsite-agent

Connect

  1. In the F•SITE editor, open a project's Agent tab and click Connect local Codex agent. You'll get a short pairing code (valid 10 minutes) and a copy-paste command.
  2. On your own machine:
    fsite-agent connect XXXX-XXXX
    This mints a brand new F•SITE agent token, scoped to that one project, saved locally at ~/.fsite-agent/config.json.

Run

fsite-agent run

Leave this running. It:

  • Sends a heartbeat every 30s (so F•SITE can show "online"/"offline")
  • Polls for tasks you queue from that project's Agent tab
  • Runs each task through your local codex app-server, in a throwaway temp directory containing a snapshot of the site's current files, sandboxed to workspace-write with no network access
  • Submits the resulting diff back to F•SITE for you to review

Nothing is applied to your real site until you click Apply in the F•SITE editor. Every task's diff goes through the same review gate the AI Builder tier's output does — decline or apply, your call.

Other commands

fsite-agent status       # show current connection info
fsite-agent disconnect   # forget the local connection (does NOT revoke it on F•SITE, see below)

Uninstalling completely

  1. Revoke the agent on F•SITE: go to the project's Agent tab and click Disconnect. This invalidates the token server-side immediately, even if this machine is offline or gone.
  2. Remove the local config: fsite-agent disconnect (or just rm -rf ~/.fsite-agent).
  3. Uninstall the package: npm uninstall -g fsite-agent.

Codex itself, and your ChatGPT/OpenAI login, are entirely untouched by any of the above — this tool never had them in the first place. Run codex logout yourself if you also want to sign Codex out.

How this stays safe

  • Pairing produces an F•SITE-only token, scoped to exactly one project. It's never derived from, or exchanged for, an OpenAI credential.
  • Codex's own OAuth/API-key login happens entirely through the official codex login flow, on your machine. This tool never runs a device-code or OAuth flow on your behalf, and never reads ~/.codex/auth.json.
  • Every task runs in a fresh, isolated temp directory, deleted right after, with sandboxPolicy: workspaceWrite (confined to that directory) and network access disabled.
  • Every proposed change is a diff you review and explicitly approve or decline in F•SITE, applied through the exact same file-validation path (path traversal / extension allowlist / size limits) as every other way of editing a site there.