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

@aion0/temper

v0.2.0

Published

Constraint lifecycle for source code — place, verify, and monitor TEMPER-CONSTRAINT comments so AI coding agents can't quietly undo your team's lessons

Readme

@aion0/temper

Constraint lifecycle for source code — place, verify, and monitor TEMPER-CONSTRAINT comments so AI coding agents (and humans) can't quietly undo the lessons your team has already paid for.

Install

npm install -g @aion0/temper

Supported platforms: macOS arm64. Other platforms will need to build from source (see cargo install).

Why

Claude Code forgets every session. Four rounds of A/B benchmarking (48 claude -p runs) showed the only integration path that reliably shaped Claude's behavior was a structured comment embedded in the source file itself — producing +75pp WIN rate across three unrelated constraint types.

/**
 * TEMPER-CONSTRAINT: Do NOT cache full Entity objects — only cache entity IDs.
 *   Reason: 2024/03 INC-1247, stale caches broke policy eval for 1247 endpoints.
 *   Rule:
 *     - No Map<..., Entity>, WeakHashMap, Caffeine, or any field holding an Entity.
 *     - TTL-invalidated ID caching is fine.
 *   If full-object caching is required, talk to the platform team first.
 *   Last-Verified: 2026-04-20
 */
public class EntityCache { ... }

Claude reads the file when it edits the file — that's the one channel it can't ignore. Temper manages the rest of the lifecycle.

Commands

temper check [PATH] [--staged] [--format text|json]
  Verify every TEMPER-CONSTRAINT in the project.
  Five status classes: OK / DANGLING / CONTRADICTED / BANNED-TOKEN-IN-CODE / STALE.
  Exits non-zero if any problems are found.

temper constraint list [PATH]
  List every TEMPER-CONSTRAINT block with file:line and title.

temper constraint add --target FILE --incident TEXT \
                      [--detail TEXT] [--apply] [--model MODEL]
  Draft a 4-part constraint (What / Why / Rule / Escape) via `claude -p`.
  Stamps today's Last-Verified. --apply inserts above the first class
  declaration.

temper hook install | uninstall
  Install or remove a git pre-commit hook that runs `temper check --staged`
  and blocks commits containing stale / dangling / contradicted constraints.

temper config
  Print the active configuration.

Typical new-project flow

cd /path/to/your-project

# For each high-risk file (5–20 hotspots per project is normal):
temper constraint add \
  --target src/path/Hotspot.java \
  --incident "INC-1247: cache-Entity-object → stale eval" \
  --detail "attributes update frequently; only cache IDs" \
  --apply

# Sanity check
temper check

# Guard future commits
temper hook install

git add . && git commit -m "guard hotspots with TEMPER-CONSTRAINT"

Requires git on PATH. The constraint add subcommand additionally needs claude (Claude Code CLI) on PATH.

Install from source

git clone https://github.com/aiwatching/temper
cd temper
cargo install --path .

Status

Version 0.2.0 is a product pivot from v0.1.x — see RELEASE_NOTES.md for the full story of why the MCP server, code graph, and tree-sitter machinery were removed.