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

v0.1.8

Published

OpenCode plugin for Project Warcraft - from vibe coding to warcraft coding

Downloads

74

Readme

opencode-warcraft

License: MIT with Commons Clause

An OpenCode plugin for structured, plan-first AI-assisted development.

Overview

Warcraft uses a plan-first workflow for AI coding assistants:

  1. create a feature
  2. write and review a plan
  3. approve the plan
  4. sync tasks
  5. execute tasks through warcraft_execute

Core model

  • beadsMode: "on" → bead-backed storage
  • beadsMode: "off" → filesystem-backed storage
  • Filesystem-backed stores live in packages/warcraft-core/src/filesystem/
  • beadsMode controls storage backend only; it does not change the execution model

Installation

From npm (recommended)

Add to your project's opencode.json:

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

OpenCode auto-installs npm plugins at startup via Bun.

From source (development)

git clone https://github.com/minhtri2710/opencode-warcraft.git
cd opencode-warcraft
bun install && bun run build
cd packages/opencode-warcraft
opencode plugin dev

Workflow

Planned mode

  1. warcraft_feature_create({ name, request })
  2. clarify as needed
  3. warcraft_plan_write
  4. optional warcraft_plan_read
  5. warcraft_plan_approve
  6. tasks auto-sync after approval
  7. warcraft_execute({ task })
  8. Issue the returned task() call and continue orchestration

Direct mode

For tiny work:

  1. warcraft_feature_create({ name, request })
  2. warcraft_task_create
  3. warcraft_execute({ task })
  4. Issue the returned task() call

Blocked worker resume

  1. warcraft_status()
  2. ask the user via question()
  3. warcraft_execute({ task, continueFrom: "blocked", decision: "..." })
  4. issue the returned task() call again

Tools

Current active Warcraft tools:

  • warcraft_feature_create
  • warcraft_feature_complete
  • warcraft_plan_write
  • warcraft_plan_read
  • warcraft_plan_approve
  • warcraft_tasks_sync
  • warcraft_task_create
  • warcraft_task_expand
  • warcraft_task_update
  • warcraft_execute
  • warcraft_context_write
  • warcraft_status
  • warcraft_agents_md
  • warcraft_doctor
  • warcraft_skill
  • warcraft_hashline_edit

Planning-mode delegation

Read-only exploration is still encouraged during planning.

  • Delegate to Scout/Brann when you cannot name the file path upfront
  • Delegate when investigation likely spans 2+ files
  • “don’t execute” means “don’t implement”

E2E lanes

From packages/opencode-warcraft/:

  • bun run test:e2e:smoke — default smoke coverage with no host tool prerequisites
  • bun run test:e2e:host — host-backed plugin E2E; requires git and br
  • bun run test:e2e:runtime — runtime/provider smoke; requires the host prerequisites first

Further reading

  • docs/WARCRAFT-TOOLS.md
  • ../warcraft-core/README.md
  • ../warcraft-core/BEADS.md