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-forge

v1.0.3

Published

OpenCode Forge - autonomous dev loops, plan storage, and sandboxing for OpenCode

Readme

Quick Start

pnpm add opencode-forge

Add to your opencode.json to enable Forge's server-side hooks, tools, and agents:

{
  "plugin": ["opencode-forge@latest"]
}

For TUI features: Also add to your tui.json to enable the sidebar and execution dialog:

{
  "$schema": "https://opencode.ai/tui.json",
  "plugin": ["opencode-forge@latest"]
}

Plugin-directory install

Instead of editing the plugin arrays by hand, the installer can wire the plugin into opencode's config directory:

bunx opencode-forge --link        # re-export shim for the current build
bunx opencode-forge --vendor      # self-contained copy (portable)

From a source checkout, use pnpm run setup --link or pnpm run setup --vendor. Both modes also write the tui.json plugin entry automatically — opencode does not auto-load the TUI plugin from the plugin directory, so the plugin directory alone cannot enable the sidebar and execution dialog. In a non-interactive shell the flags still require -y, -f, or -k.

| | --link | --vendor | | --- | --- | --- | | Picks up a rebuild | Yes — re-exports the live build | No — re-run after upgrade | | Portable to another machine | No — absolute path to this checkout | Yes | | Payload in config dir | Shim only | Full copy (~6.5 MB) | | Needs re-run after upgrade | No | Yes |

Loops require OpenCode 1.17.8 or newer with OPENCODE_EXPERIMENTAL_WORKSPACES=true set in the environment that launches opencode:

export OPENCODE_EXPERIMENTAL_WORKSPACES=true

Without it, Forge cannot create loop worktrees, so plan loops, goal loops, TUI Loop launches, and grouped execution fail before their first session. See Workspace Integration.

What Forge Adds

Forge ships two plugin entrypoints plus standalone management surfaces:

  • Server plugin — enabled through OpenCode plugin config in opencode.json. Provides the core hooks, tools, agents, plan storage, loop orchestration, review persistence, and sandbox support.
  • TUI plugin — enabled separately in tui.json. Layers on the sidebar and execution dialog.
  • Installer CLI — installs/upgrades bundled prompts and skills, and installs the plugin itself into opencode's plugin directory (--link/--vendor/--unlink).
  • Dashboard — an observability interface launchable from the TUI command palette (Open dashboard) or via pnpm dashboard (source checkouts only).

For a quick tour of the loop itself, see Loop Flow below.

Features

  • Plans — architect authors validated plans directly into SQL storage with plan-write/plan-edit
  • Execution — approved-plan launch paths plus direct /execute-goal loops in dedicated worktree sessions; plan loops can also target a configured remote opencode server; grouped execution launches features from a PRD as parallel loops
  • Loops — iterative coding/auditing with an isolated git worktree and optional msb sandbox
  • Review Findings — persistent, loop-scoped review findings across loop sessions
  • TUI — sidebar and execution dialog
  • Dashboard — a repo shell for loops, groups, findings, and plans, with live loop state

Documentation

  • Agents and Slash Commands — the bundled code, architect, and auditor agents, hidden loop agents, and every slash command.
  • Planning and Execution Workflow — how the architect authors plans, the three execution modes, variants, and grouped execution.
  • Tools Reference — full arguments, section-scoping behavior, restart options, and sandbox shell details.
  • Loop System — phases, section lifecycle, review findings, session rotation, stall detection, model configuration, and termination.
  • TUI Plugin — sidebar, palette commands, the execution dialog, model selection, and setup.
  • Dashboard — views, hash deep links, and the HTTP API.
  • Workspace Integration — OpenCode workspace registration, requirements, and failure behavior.
  • Sandbox — host requirements, image building and loading, network access, secrets, bind mounts, and resource defaults.
  • Configuration Reference — every option in forge-config.jsonc, plus the installer and bundled-asset sync.
  • Architecture — plugin architecture, module layout, hooks, storage, and data flow.
  • Modules — the source tree and each module's public surface.
  • Common Issues — worktree launch failures and workspace prerequisites.

Screenshots

Execution flow dialog with mode and model selection:

Execution Flow

Loop Flow

The diagram below shows the overall flow of the Forge loop system — from loop trigger and provisioning through coding/auditing, section advancement, the final audit, and the optional post-action phase. See Loop System for the full lifecycle. Source: diagrams/loop-flow.mmd.

Loop Flow

Development

pnpm build      # Compile TypeScript to dist/
pnpm test       # Run tests
pnpm typecheck  # Type check without emitting

License

MIT