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

@tretrauit/opencode-crofai

v1.2.10

Published

Adds CrofAI provider support to OpenCode.

Downloads

1,678

Readme

opencode-crofai

OpenCode plugin for CrofAI's OpenAI-compatible API.

What it does

  • registers CrofAI models from GET /v1/models
  • caches model metadata in the OpenCode cache under .cache/crofai-models.json
  • uses cached models immediately on startup
  • refreshes the cache in background
  • falls back to cached models if the endpoint is unavailable
  • normalizes variant names like Lightning and Precision

Install

Via a LLM

Install the opencode-crofai plugin and configure it by following: https://raw.githubusercontent.com/teppyboy/opencode-crofai/main/installation.md

Via OpenCode CLI

opencode plugin -g @tretrauit/opencode-crofai

Then run /connect in OpenCode and enter your CrofAI API key.

opencode.json

{
  "$schema": "https://opencode.ai/config.json",
  "plugin": ["@tretrauit/opencode-crofai"]
}

Local development

git clone https://github.com/teppyboy/opencode-crofai
cd opencode-crofai
bun run build

Use this in opencode.json:

{
  "$schema": "https://opencode.ai/config.json",
  "plugin": ["./dist/index.js"]
}

Forking

Reusable factory is published from @tretrauit/opencode-crofai/factory and lives in src/openai-compatible-plugin.ts.

Create a thin wrapper like:

import { createOpenAICompatiblePlugin } from '@tretrauit/opencode-crofai/factory';

export const ExamplePlugin = createOpenAICompatiblePlugin({
  providerID: 'example',
  providerName: 'ExampleAI',
  baseURL: 'https://example.com/v1',
  authLabel: 'API Key',
  authPlaceholder: 'example-...',
  authPromptMessage: 'Enter your ExampleAI API key',
  cacheFileName: 'example-models.json',
});

Development

bun run build
bun test
bun run lint
bun run format

Release

GitHub Actions can publish to npm automatically from tags.

Repository setup:

  • configure npm trusted publishing for this GitHub repository
  • allow this workflow to publish @tretrauit/opencode-crofai

Release flow:

# bump package.json version first
git commit -am "chore: bump version to vX.Y.Z"
git tag vX.Y.Z
git push
git push --tags

Workflow behavior:

  • triggers on tags matching v*
  • verifies tag matches package.json version
  • runs tests and build
  • runs npm pack --dry-run
  • publishes to npm with provenance via GitHub Actions OIDC

Links

  • OpenCode plugin docs: https://opencode.ai/docs/plugins/
  • OpenCode config docs: https://opencode.ai/docs/config/
  • CrofAI docs: https://crof.ai/docs

License

See the LICENSE file for details.