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

opencode-gitloops

v0.3.1

Published

GitHub repo explorer agent and plugin for OpenCode. Clone and explore any public GitHub repo locally.

Readme

Gitloops

A plugin for OpenCode that lets you clone and explore GitHub repositories locally. Ask questions about a repo's code, structure, and patterns — all without leaving your terminal.

Gitloops provides three custom tools (gitloops_clone, gitloops_refresh, gitloops_list) restricted to read operations — no file modifications, no shell access. You can use these tools from any agent, or optionally enable a dedicated gitloops agent via config.

Installation

Add the plugin to your opencode.json config file:

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

OpenCode will automatically install the package.

Alternatively, you can install it as a local plugin by placing it in your plugin directory:

  • Project-level: .opencode/plugins/
  • Global: ~/.config/opencode/plugins/

Configuration

Gitloops auto-creates a config file on first load at:

~/.config/opencode/plugin/gitloops.json
{
  "$schema": "https://raw.githubusercontent.com/maharshi365/opencode-gitloops/master/schema/config.schema.json",
  "max_repos": 10,
  "cache_loc": "~/.cache/gitloops/repos",
  "eviction_strategy": "lru",
  "agent": {
    "enabled": false,
    "model": "anthropic/claude-sonnet-4-5",
    "temperature": 0.1,
    "color": "#ed5f00",
    "mode": "all"
  }
}

| Option | Type | Default | Description | | ------------------- | --------- | ------------------------- | -------------------------------------------------------------------------------------- | | max_repos | integer | 10 | Maximum number of cached repos. When exceeded, repos are evicted automatically. | | cache_loc | string | ~/.cache/gitloops/repos | Directory where cloned repos are stored (<cache_loc>/<owner>/<repo>/). Supports ~. | | eviction_strategy | string | "lru" | Strategy for removing repos when max_repos is exceeded. | | agent | object | see below | Controls the optional dedicated gitloops agent. |

Eviction strategies

| Strategy | Behavior | | --------- | -------------------------------------------------------------- | | lru | Remove the least recently used repo (oldest modification time) | | fifo | Remove the oldest cloned repo (oldest creation time) | | largest | Remove the largest repo by disk size |

Agent configuration

The agent object controls the optional dedicated gitloops agent entry in OpenCode. By default (enabled: false) only the plugin tools are registered — you can call them from any agent or the default assistant.

| Field | Type | Default | Description | | ------------- | --------- | ------------ | ------------------------------------------------------------------------------------------------------------------ | | enabled | boolean | false | Set to true to add a gitloops entry to the OpenCode agent picker. | | model | string | (session) | Model to use, e.g. "anthropic/claude-sonnet-4-5". Falls back to the session model if omitted. | | temperature | number | 0.1 | Sampling temperature (0–2). | | color | string | "#ed5f00" | Hex color (e.g. "#FF5733") or theme color name ("primary", "accent", etc.) shown in the UI. | | mode | string | "all" | "primary" — main picker only. "subagent"@mention only. "all" — both. |

The $schema field enables autocompletion and validation in editors that support JSON Schema.

Private repositories

Private repositories are supported as long as your local git credentials or SSH keys grant access — the same way git clone works in your terminal. No additional configuration is needed.

If a clone fails due to missing credentials, Gitloops will surface a specific error message directing you to configure your git credentials or SSH keys.