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

@logicpearl/try

v0.1.1

Published

Kick the tires on LogicPearl. One command, one deterministic verdict, zero setup. See how a compiled rule artifact compares to an LLM.

Readme

@logicpearl/try

Kick the tires on LogicPearl in one command. No setup, no API keys, no config — the package ships with a real compiled Wasm artifact and five real captured Claude Sonnet 4.5 responses to the same input.

npx @logicpearl/try

You get a deterministic refund verdict in under a millisecond. Same input → same bitmask → every run.

The demo

# The default — evaluate the shipped refund-eligibility artifact
# against a day-30 changed-mind boundary case.
npx @logicpearl/try

# Compare the artifact against 5 real captured Claude Sonnet 4.5 runs.
# (Ships with the captures — no API key needed.)
npx @logicpearl/try --explain

# Reproduce those captures live against your own key.
ANTHROPIC_API_KEY=sk-ant-... npx @logicpearl/try --explain --live

# Run the 3-stage pipeline on a plain-English customer message.
npx @logicpearl/try --from-text "I bought this a month ago and want a refund"

# Run that pipeline 5 times to see which stages vary and which stay identical.
npx @logicpearl/try --from-text "..." --prove-it

Flags

| Flag | What it does | |---|---| | --facts '{...}' | Evaluate your own feature vector | | --facts-file <path> | Load the facts from a JSON file | | --artifact <path-or-url> | Use a different compiled artifact | | --describe | Print the feature + rule schema only | | --explain | Side-by-side vs 5 pre-captured LLM runs | | --live | Call the LLM now (needs ANTHROPIC_API_KEY or OPENAI_API_KEY) | | --from-text "<prose>" | 3-stage pipeline: LLM extract → LogicPearl decide → LLM verbalize | | --prove-it | Run the pipeline 5× and report stage variance | | --json | Machine-readable output |

What's in the package

  • A compiled refund-eligibility artifact (8 KB Wasm, 5 learned rules, 8 features including a string-categorical)
  • captures/claude-sonnet-5-runs.json — five real API responses, timestamps, prompt hash
  • captures/policy.md — the policy text the LLM was given
  • captures/prompt.txt — the exact prompt template

Everything in captures/ is reproducible: pass CAPTURE_MODEL=claude-sonnet-4-5 ANTHROPIC_API_KEY=... node scripts/capture_llm_runs.mjs (in the repo) to regenerate them.

What's next

License

MIT