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

opencarl

v2.1.30

Published

OpenCARL - Dynamic rule injection for OpenCode. Rules load when relevant, disappear when not. Adapted from CARL by Chris Kahler.

Downloads

273

Readme

OpenCARL

Coverage

Context Augmentation & Reinforcement Layer — Dynamic rules for OpenCode.

npm version License GitHub stars Docs

"Rules that load when relevant, disappear when not."


What is OpenCARL?

OpenCARL is a dynamic rule injection plugin for OpenCode. Define your preferences once, and they load automatically when relevant to your current task.

Key Features:

  • Keyword-based rule loading
  • Star-commands for explicit triggers (*brief, *deep)
  • Context-aware behavior
  • Global and project-level rules

Documentation

Full documentation: krisgray.github.io/opencarl

Guides:

Tutorials:

Troubleshooting: Troubleshooting Guide


Quick Start

# 1. Install
npm install opencarl

# 2. Add to opencode.json
echo '{"plugin": ["opencarl"]}' > opencode.json

# 3. Run setup
npx opencarl --local

Restart OpenCode. Type *opencarl for interactive help.


Usage

*opencarl              # Interactive help mode
*opencarl docs         # View documentation
*brief explain this    # Concise response
*deep analyze this     # Comprehensive analysis

Rules load automatically when your prompt matches domain keywords (e.g., "fix bug" loads development rules).


CLI Commands

npx opencarl --local              # Install for current project
npx opencarl --global             # Install for all projects
npx opencarl --integrate          # Add OpenCARL section to AGENTS.md
npx opencarl --integrate-opencode # Add docs to opencode.json
npx opencarl --help               # Show all options

Configuration

.opencarl/
├── manifest        # Domain registry (states + keywords)
├── global          # Always-loaded rules
├── commands        # Star-command definitions
└── {domain}        # Custom domains (lowercase, no extension)

Troubleshooting

| Problem | Fix | |---------|-----| | Rules not loading | Check STATE=active in manifest | | Plugin not found | Verify opencode.json has "plugin": ["opencarl"] | | Domain ignored | Filename must be lowercase, no extension |

Debug mode: OPENCARL_DEBUG=true

Full guide: Troubleshooting Guide


License

MIT License. See LICENSE for details.


OpenCode is powerful. OpenCARL makes it personal.