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

pi-byterover

v0.2.2

Published

Pi ByteRover extension

Downloads

463

Readme

pi-byterover connects Pi sessions to ByteRover through @byterover/brv-bridge.

It automatically recalls relevant ByteRover memory before an agent response and injects that context into the session. After useful completed turns, it persists durable facts, decisions, preferences, and technical details back to ByteRover.

Prerequisites

  • Pi installed.
  • ByteRover CLI installed as brv, or a custom executable path configured with brvPath.
  • A project where ByteRover can bootstrap and use .brv state.

Installation

Install the package with Pi:

pi install npm:pi-byterover

For local development:

pnpm install
pnpm build
pi -e ./dist/index.js

Configuration

Configure pi-byterover with either a project config file or a global config file:

  • Project: .pi/byterover.json
  • Global: ~/.pi/agent/byterover.json

Project configuration takes precedence over global configuration. If no config file is present, defaults are used.

{
  "enabled": true,
  "brvPath": "brv",
  "searchTimeoutMs": 30000,
  "recallTimeoutMs": 30000,
  "persistTimeoutMs": 60000,
  "quiet": false,
  "autoRecall": true,
  "autoPersist": true,
  "manualTools": true,
  "contextTagName": "byterover-context",
  "recallPrompt": "Recall any relevant context that would help answer the latest user message.\nUse the recent conversation only to resolve references and intent.\nDo not restate the query in your findings.",
  "persistPrompt": "The following is a conversation between a user and an AI assistant.\nCurate only information with lasting value: facts, decisions, technical details, preferences, or notable outcomes.\nSkip trivial messages such as greetings, acknowledgments (\"ok\", \"thanks\", \"sure\", \"got it\"), one-word replies, anything with no substantive content.",
  "maxRecallTurns": 3,
  "maxRecallChars": 4096
}

Configuration fields:

  • enabled: Enable or disable the package without removing configuration. Defaults to true.
  • brvPath: ByteRover CLI executable path. Defaults to brv.
  • searchTimeoutMs: ByteRover search timeout in milliseconds. Defaults to 30000.
  • recallTimeoutMs: ByteRover recall timeout in milliseconds. Defaults to 30000.
  • persistTimeoutMs: ByteRover persist timeout in milliseconds. Defaults to 60000.
  • quiet: Suppress Pi notifications for ByteRover operations. Defaults to false.
  • autoRecall: Automatically recall and inject ByteRover context before agent responses. Defaults to true.
  • autoPersist: Automatically persist useful completed conversation turns after responses. Defaults to true.
  • manualTools: Register manual ByteRover tools. Defaults to true.
  • contextTagName: XML-style tag name used for injected recall context. Defaults to byterover-context.
  • recallPrompt: Instruction text prepended to recent conversation context for automatic recall.
  • persistPrompt: Instruction text prepended to completed turns for automatic persistence curation.
  • maxRecallTurns: Maximum recent user turns used to resolve automatic recall context. Defaults to 3.
  • maxRecallChars: Maximum recent conversation characters used for automatic recall. Defaults to 4096.

Numeric timeout and limit values must be positive integers. brvPath, recallPrompt, and persistPrompt must be non-empty strings. contextTagName must be a simple XML-style tag name such as byterover-context.

Persist does not require ByteRover to be ready ahead of time. ByteRover bootstraps automatically when persist is called.

Manual Tools

When manualTools is enabled, Pi agents can use these ByteRover tools:

  • brv_recall: Ask ByteRover to synthesize relevant memory for a query. Use it when the agent needs targeted, summarized context beyond automatic recall. Accepts optional timeoutMs.
  • brv_search: Search ByteRover memory and return ranked file-level results. Use it when the agent needs to inspect matching memory sources or compare multiple candidates. Accepts optional limit, scope, and timeoutMs.
  • brv_persist: Persist raw memory text directly into ByteRover. Use it when a durable fact, decision, preference, or technical detail should be saved immediately instead of waiting for automatic turn persistence. Defaults to fire-and-forget mode and accepts optional timeoutMs for long-running writes.

With autoRecall and autoPersist enabled, routine memory behavior is automatic. Manual tools are best for explicit lookups, source searches, or immediate saves.

Development

pnpm install
pnpm format:check
pnpm lint
pnpm test
pnpm typecheck
pnpm build