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

@ekroon/opencode-copilot-instructions

v0.3.2

Published

An OpenCode plugin that automatically loads GitHub Copilot custom instruction files and injects them into OpenCode's context.

Readme

@ekroon/opencode-copilot-instructions

An OpenCode plugin that automatically loads GitHub Copilot custom instruction files and injects them into OpenCode's context.

Installation

From npm (recommended)

Add the plugin to your opencode.json:

{
  "plugin": ["@ekroon/opencode-copilot-instructions"]
}

OpenCode will automatically install the package from npm on startup.

From local files

For development or customization, you can use the local plugin approach:

  1. Create .opencode/plugin/ directory in your project
  2. Bundle the plugin: bun build ./src/index.ts --outfile=.opencode/plugin/copilot.js --target=node --external:@opencode-ai/plugin
  3. Create .opencode/package.json with dependencies:
{
  "dependencies": {
    "front-matter": "^4.0.2",
    "picomatch": "^4.0.0"
  }
}
  1. Run bun install in the .opencode/ directory

Usage

This plugin supports two types of GitHub Copilot instruction files:

Repository-wide Instructions

Create .github/copilot-instructions.md in your repository root. These instructions apply to all files and are included in every session.

# Project Guidelines

- Use TypeScript strict mode
- Prefer functional programming patterns
- Write comprehensive tests for all new code

Path-specific Instructions

Create files matching .github/instructions/*.instructions.md. These instructions only apply when working with files that match the specified glob patterns.

Each file requires YAML frontmatter with an applyTo field:

---
applyTo: "**/*.ts,**/*.tsx"
---

When writing TypeScript code:

- Always use explicit return types
- Prefer interfaces over type aliases for object shapes
- Use branded types for IDs

The applyTo field accepts a comma-separated list of glob patterns.

How it Works

Loading

Instructions are loaded once when the plugin initializes (at OpenCode startup). To reload instructions after changes, restart OpenCode.

Injection

  • Repository-wide instructions: Injected via the experimental.session.compacting hook, ensuring they persist across session compaction.

  • Path-specific instructions: Injected via the tool.execute.before hook when file operations (read, edit, write) target files matching the applyTo patterns.

Supported Glob Patterns

The plugin uses picomatch for pattern matching. Supported patterns include:

| Pattern | Description | |---------|-------------| | * | All files in current directory | | ** or **/* | All files in all directories | | *.py | All .py files in current directory | | **/*.py | All .py files recursively | | src/**/*.py | All .py files in src directory recursively | | **/*.{ts,tsx} | All .ts and .tsx files recursively |

Multiple patterns can be combined with commas: **/*.ts,**/*.tsx,**/*.js

License

MIT