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

sloppydisk

v0.2.0

Published

Minimal contract-preserving reset patcher for OpenAI Codex.

Readme

sloppydisk

sloppydisk is a small contract-preserving reset patcher for @openai/codex.

It replaces summary-style compaction with a reset path that preserves the latest user steer, writes exact recent user directives plus raw history snapshots to disk, and avoids reinjecting synthetic summaries back into the live context window.

What It Does

  • auto-compaction resets live history instead of summarizing it
  • /compact follows the same reset flow
  • continuity is written under ~/.codex/sloppydisk/threads/<thread-id>
  • recent hard user directives are kept verbatim in a lightweight contract.md
  • raw reset segments are exported as JSON snapshots for deeper recovery
  • install applies a binary delta against the stock Codex vendor binary with no config mutation
  • uninstall restores the original binary from backup when available, or repairs Codex from the official npm package if it is not

Install

Codex must already be installed:

npm install -g @openai/codex
npm install -g sloppydisk

Package install patches Codex automatically. Global npm uninstall does not reliably fire package uninstall hooks on modern npm, so sloppydisk also installs a tiny Codex entrypoint guard that restores stock Codex the next time codex is invoked after sloppydisk has been removed. The explicit helper commands are still available for repatching, restoring stock behavior, and inspection:

sloppydisk patch
sloppydisk stock
sloppydisk status

Normal installs do not build Codex from source. They only do this:

  1. find a matching patch bundle
  2. back up the current Codex binary once
  3. reconstruct the patched binary from the stock binary plus the bundled delta
  4. record install state for clean restore

On Linux, this build currently assumes system bwrap is present and refuses to patch if it is missing.

Patch bundles are resolved in this order:

  1. bundled artifact in the package
  2. cached artifact under ~/.sloppydisk/artifacts

Maintainers

Release artifact builds are kept out of the shipped runtime. If you are working in the repo itself, use:

npm run build-release-artifact
npm run smoke-packaged-install

The release build script applies the patch to a clean Codex checkout, builds the patched musl binary, generates a zstd --patch-from delta against the stock Codex vendor binary, and writes the patch bundle into both the repo artifacts/ tree and the local cache so the packaged install path can be smoke-tested without any runtime source build.