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

t3-fauxpencode

v0.1.10

Published

See [`docs/poc.md`](docs/poc.md) for the provisional facade surface and known capture gaps. See [`docs/runbook.md`](docs/runbook.md) for capture, scenario, and verification commands.

Readme

T3 Fauxpencode

See docs/poc.md for the provisional facade surface and known capture gaps. See docs/runbook.md for capture, scenario, and verification commands.

Single-machine Bun launcher for an isolated T3 worker backed by Pi sessions. It exposes the OpenCode-shaped surface T3 needs; PM2 and optional FRP are implementation details.

For a container or workspace supervisor, see docs/container.md.

Run

Run it from the project directory T3 will use. The current directory is the one permitted session root; there are no repo or worker-name flags.

bunx t3-fauxpencode@latest start

Use @latest to select the latest published npm release. Commits on main become available through this command after a release is published.

The launcher stores its singleton state under ~/.local/share/t3-fauxpencode/ (override only for testing with T3_WORKER_HOME). It starts PM2-managed shim and T3 processes. The T3 settings are isolated from a normal T3 installation.

FRP

Pass a complete client configuration on the first start:

bunx t3-fauxpencode@latest start --frpc-config ~/frpc.toml

The config is copied to the worker state directory and enables a third PM2 process. On its first use, the launcher downloads the matching official frpc binary for macOS/Linux amd64 or arm64.

FRP must target T3, not the shim. Create a token file with the token configured on your FRP server, then protect it:

mkdir -p ~/.config/t3-fauxpencode
printf '%s' '<frp-token>' > ~/.config/t3-fauxpencode/frp-token
chmod 600 ~/.config/t3-fauxpencode/frp-token

Create ~/frpc.toml:

serverAddr = "frp.example.com"
serverPort = 7000

auth.method = "token"
auth.tokenSource.type = "file"
auth.tokenSource.file.path = "/Users/you/.config/t3-fauxpencode/frp-token"

[[proxies]]
name = "t3"
type = "http"
localIP = "127.0.0.1"
localPort = 3773
customDomains = ["home.workers.example.com"]

Replace the server address, token-file path, and public hostname. Point that hostname's DNS record at the FRP server. The FRP server must have HTTP virtual-host support enabled (its vhostHTTPPort), and must use the same token authentication. Terminate TLS at the FRP server or its edge proxy: hosted T3 needs the public endpoint over HTTPS/WSS. Then start the worker:

bunx t3-fauxpencode@latest start --frpc-config ~/frpc.toml

The launcher copies the TOML to its state directory, downloads the matching frpc binary if needed, and starts it under PM2. The token file remains where the TOML points; do not put its token in a CLI flag.

Generate a pairing token for the running worker:

t3-fauxpencode connection

This uses the installed FRP config and cached T3 environment identity under ~/.local/share/t3-fauxpencode/. If T3_WORKER_HOME is overridden, use the same value for lifecycle and connection commands.

Lifecycle

bunx t3-fauxpencode@latest run
bunx t3-fauxpencode@latest health --json
bunx t3-fauxpencode@latest connection
bunx t3-fauxpencode@latest start
bunx t3-fauxpencode@latest stop
bunx t3-fauxpencode@latest restart
bunx t3-fauxpencode@latest status
bunx t3-fauxpencode@latest logs

run is the foreground/container entrypoint. start, restart, stop, status, and logs retain the detached PM2 workflow.

Publish the package to npm for the bunx t3-fauxpencode form. The release workflow in publish.yml uses npm trusted publishing after its one-time setup.

npm publishing

Publish version 0.1.0 once from a trusted local machine, then configure npm to trust this repository's release workflow:

npm publish
npm trust github t3-fauxpencode \
  --repo <owner>/<repo> \
  --file publish.yml \
  --env npm \
  --allow-publish

Create an npm GitHub environment for the repository, then publish future versions by creating a GitHub Release after updating package.json's version. The workflow uses OIDC; it needs no NPM_TOKEN secret.

Commands

bun install
bun run check
bun test
bun run build
bun run dev
bun run contract:inventory
bun run contract:matrix
bun run contract:capture -- artifacts/raw/<corpus>.jsonl
bun run contract:record
bun run contract:scenarios
bun run contract:reference
bun run contract:reference-verify -- artifacts/runs/<corpus>.reference.json

The POC is intentionally explicit about unsupported requests. It does not run OpenCode and does not claim complete OpenCode compatibility.