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

@numairbaseer/scifcode

v0.5.0

Published

Scifcode: a coding CLI agent powered by Poolside Laguna.

Readme

Scifcode

Scifcode is the user-facing configuration wrapper for the Scifcode coding agent powered by Poolside Laguna.

It installs one global scifcode command, configures the Scifcode runtime to use Laguna, and launches the coding agent with Scifcode defaults.

Install

Scifcode requires Node.js >=22.19.0. It depends on @numairbaseer/scifcode-runtime, which installs the compiled runtime for the current operating system and CPU. Users do not need Bun or a source checkout.

npm install -g @numairbaseer/scifcode

Supported runtime packages cover:

  • macOS: arm64 and x64
  • Linux: arm64 and x64, with glibc and musl variants
  • Windows: arm64 and x64
  • baseline x64 builds for CPUs without AVX2

Offline install and update

Each v* GitHub release includes platform archives containing a standalone scifcode launcher and its pinned scifcode-runtime. The target machine does not need Node.js, Bun, npm, or network access.

Transfer the archive, the versioned offline SHA256SUMS file, and its .sigstore.json bundle through the approved media process. Verify the signed checksum manifest and the archive, then extract it and run the included installer:

cosign verify-blob scifcode-0.5.0-offline-SHA256SUMS \
  --bundle scifcode-0.5.0-offline-SHA256SUMS.sigstore.json \
  --certificate-identity \
    https://github.com/numairbaseer/scifcode/.github/workflows/release-cli.yml@refs/tags/v0.5.0 \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com
sha256sum -c scifcode-0.5.0-offline-SHA256SUMS
tar -xzf scifcode-0.5.0-linux-x64-baseline.tar.gz
cd scifcode-0.5.0-linux-x64-baseline
./install.sh

On Windows, extract the archive and run:

.\install.ps1

Installing a newer archive performs an offline update. Versions are retained under the installation root so an administrator can restore an earlier version. Unix installs default to ~/.local/share/scifcode; Windows installs default to %LOCALAPPDATA%\Programs\Scifcode.

The release workflow signs every offline archive and the release-level checksum manifest with a keyless Sigstore certificate tied to the tagged GitHub Actions workflow. It verifies every signature before publishing the release assets; no long-lived signing key is required.

Publish the runtime version pinned in package.json before tagging the CLI. The CLI workflow downloads that exact platform runtime package, compiles the launcher, and attaches the completed offline archives to the CLI release.

Log in

Authenticate once through the Scifcode control-plane portal. The CLI opens a short-lived authorization page and receives its own revocable session after you approve it:

scifcode login

The session is stored at ~/.scifcode/session.json with owner-only permissions. Scifcode uses it only to authenticate with the control plane; upstream model URLs and credentials remain server-side.

The control plane defaults to http://localhost:8080 for local development. Self-hosted customers pass their URL once with scifcode login --control-plane https://scifcode.customer.example; the URL is stored with the session and reused. Non-local control planes must use HTTPS.

Run

cd your-repo
scifcode

One-shot prompt

scifcode -p "Review the current diff for correctness and missing tests."

Scifcode automatically creates or updates:

~/.config/scifcode/scifcode.json

This happens before the runtime launches, so no separate initialization command is required.

When launched inside a Git worktree, Scifcode sends only the cumulative number of lines changed since the session began. It checkpoints that value every minute and once more during a normal or signal-driven shutdown; it never sends file names, source code, or diff contents. Deploy control-plane support for replacing an authenticated session checkpoint before rolling out this CLI behavior.

Environment variables

| Variable | Required | Default | Description | | --- | ---: | --- | --- | | SCIFCODE_CONTROL_PLANE_URL | no | http://localhost:8080 | Alternative to login --control-plane; useful for managed installation and automation | | SCIFCODE_SESSION_TOKEN | no | stored login session | Ephemeral process override for the control-plane session | | SCIFCODE_CODE_USAGE_REPORT_INTERVAL_MS | no | 60000 | Interval for cumulative code-usage checkpoints while a session is running; values below 1000 use the default | | SCIFCODE_CONTEXT_WINDOW | no | 32768 | Context window reported for scifcoder-1.0 | | SCIFCODE_MAX_TOKENS | no | 4096 | Maximum output tokens reported for scifcoder-1.0 | | SCIFCODE_RUNTIME_BIN | no | installed platform package | Override path to a compiled Scifcode runtime binary | | SCIFCODE_SOURCE_DIR | no | adjacent ../scifcode | Development-only path to the Scifcode source fork | | SCIFCODE_BUN_BIN | no | auto-detected | Development-only Bun executable used to run the fork from source |

Scifcode also loads private env defaults from:

~/.scifcode/env
./.scifcode.env

Shell environment variables win over these files. Do not put session tokens in project env files or commit them to source control.

Troubleshooting

Scifcode requires a control-plane session

Log in through the browser. If you already have a portal session, you only need to approve the CLI. Otherwise, complete the portal's email verification first:

scifcode login

Inspect or revoke the current session with:

scifcode whoami
scifcode logout

Invalid Scifcode config

Scifcode writes to:

~/.config/scifcode/scifcode.json

If this file contains invalid JSON, fix it or move it aside and rerun:

scifcode

Security

Scifcode never receives the upstream model credential. The control plane owns the model endpoint, model-ID translation, and upstream authentication. The CLI stores only a revocable user session token in an owner-readable file and injects it into the runtime through SCIFCODE_SESSION_TOKEN.

Scifcode launches the installed platform runtime directly with argument arrays and does not use shell string execution. Bun/source execution remains available only as a local-development fallback.

For usage analytics, Scifcode snapshots the Git working tree when an agent session starts and reports the aggregate number of added and deleted lines when the session ends. The snapshot uses an isolated temporary Git index, so staged, unstaged, and untracked work that existed before the session is preserved and excluded from the count. Source code and file names are never sent to the control plane.

Third-party notices

Scifcode uses third-party open-source software internally. See THIRD_PARTY_NOTICES.md.