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

@comfanion/workflow

v4.36.65

Published

Initialize OpenCode Workflow system for AI-assisted development with semantic code search

Readme

@comfanion/workflow

AI-assisted development workflow with semantic code search, agents, and structured documentation.

npm version

Features

  • 🔍 Semantic Code Search - Find code by meaning, not just text ("authentication logic" → finds auth handlers)
  • 🤖 AI Agents - Specialized personas (Analyst, PM, Architect, Developer) with skills
  • 📝 Structured Workflow - PRD → Architecture → Epics → Stories → Implementation
  • 🔄 Auto-indexing - Background indexing on startup with fun toast notifications
  • 🎯 Jira Integration - Bidirectional sync with your project

Agents & Workflow

The workflow uses specialized AI agents, each with a unique persona and skills:

| Agent | Name | Role | Phase | |-------|------|------|-------| | 📊 Analyst | Sara | Requirements gathering, stakeholder interviews | Planning | | 📋 PM | Dima | PRD, epics, stories, sprint planning, Jira | Planning → Sprint | | 🏗️ Architect | Winston | System design, ADRs, coding standards | Planning | | 💻 Dev | Rick | TDD implementation, story development | Implementation | | ⚡ Coder | Morty | Quick implementation, bug fixes | Implementation | | 🔍 Reviewer | Marcus | Security review, bug finding (GPT-5.2 Codex) | Implementation | | 🔬 Researcher | Kristina | Technical/market/domain research | Any | | 🔄 Change Manager | Bruce | Documentation changes, impact analysis | Any |

Workflow Pipeline

Planning:    /requirements → /prd → /coding-standards → /architecture
Sprint:      /epics → /stories → /sprint-plan → /jira-sync  
Development: /dev-story → /review-story (auto) → done
                  ↑______________|  (fix if issues found)

Auto Review

After /dev-story completes all tasks, @reviewer (GPT-5.2 Codex) automatically reviews:

  • Security - secrets, injection, auth/authz
  • Correctness - AC satisfied, edge cases
  • Testing - coverage, quality
  • Code quality - architecture, performance

Key Skills

  • requirements-gathering - Extract FR/NFR through interviews
  • prd-writing - Product requirements documents
  • architecture-design - System architecture patterns
  • story-writing - User stories with Given/When/Then AC
  • dev-story - Red-green-refactor implementation cycle
  • jira-integration - Bidirectional sync with Jira

Quick Start

npx @comfanion/workflow init

Semantic Code Search

Search your codebase by meaning, not just text matching:

# Terminal CLI:
npx @comfanion/workflow search "authentication logic"
npx @comfanion/workflow search "how to deploy" --index docs
npx @comfanion/workflow search "database config" --all

# AI agents use MCP tool automatically:
# search({ query: "authentication", index: "code" })

How It Works

  1. Vectorizer converts code into embeddings using local AI model
  2. Indexes are stored in .opencode/vectors/ (code, docs, config)
  3. Search finds semantically similar code chunks
  4. Auto-indexer keeps indexes fresh on startup

Available Indexes

| Index | Files | Use Case | |-------|-------|----------| | code | *.js, *.ts, *.py, *.go... | Find functions, classes, logic | | docs | *.md, *.txt | Find documentation, guides | | config | *.yaml, *.json | Find configuration, settings |

Commands

# Manual indexing
npx @comfanion/workflow index              # Index all
npx @comfanion/workflow index --code       # Index code only
npx @comfanion/workflow index --docs       # Index docs only

# Check index status
npx @comfanion/workflow index --status

Installation

NPX (recommended)

npx @comfanion/workflow init

Global Install

npm install -g @comfanion/workflow
opencode-workflow init

Alternative Package Name

npx create-opencode-workflow init

Commands

init

Initialize .opencode/ in current project.

npx @comfanion/workflow init

Interactive prompts:

  1. Your name - For personalized agent communication
  2. Communication language - Ukrainian, English, Russian
  3. Development methodology - TDD or STUB
  4. Vectorizer - Enable semantic search
  5. Embedding model - Choose speed vs quality:
    • MiniLM-L6 (Fast) - ~10 files/10sec
    • BGE-small (Balanced) - ~9 files/10sec ← default
    • BGE-base (Quality) - ~3 files/10sec
  6. Jira integration - Enable/disable

Flags:

| Flag | Description | |------|-------------| | -y, --yes | Skip prompts, use defaults | | --tdd | Use TDD methodology | | --stub | Use STUB methodology | | --jira | Enable Jira integration | | --full | Create full repository structure |

update

Update .opencode/ to latest version.

npx @comfanion/workflow update

Preserves:

  • ✅ Your config.yaml (with comments!)
  • ✅ Vector indexes (.opencode/vectors/)
  • ✅ Custom settings

doctor

Check installation health.

npx @comfanion/workflow doctor

vectorizer

Manage semantic search vectorizer.

npx @comfanion/workflow vectorizer install   # Install dependencies
npx @comfanion/workflow vectorizer status    # Check status

Configuration

config.yaml

# User settings
user_name: "Developer"
communication_language: "en"  # en, uk, ru

# Development
development:
  methodology: tdd  # tdd or stub
  auto_review: true # Auto-invoke @reviewer after /dev-story

# Semantic Search
vectorizer:
  enabled: true
  auto_index: true      # Auto-index on startup
  model: "Xenova/bge-small-en-v1.5"  # MiniLM, bge-small, bge-base
  debounce_ms: 5000
  indexes:
    code: { enabled: true }
    docs: { enabled: true }
    config: { enabled: false }
  exclude:
    - "node_modules/**"
    - "dist/**"
    - "*.min.js"

# Jira Integration
jira:
  enabled: false
  url: "https://your-domain.atlassian.net"
  project_key: "PROJ"

What Gets Created

.opencode/

.opencode/
├── config.yaml          # Your configuration
├── FLOW.yaml            # Workflow definition
├── agents/              # AI agent personas
│   ├── analyst.md       # Sara - Business Analyst
│   ├── pm.md            # Dima - Product Manager
│   ├── architect.md     # Winston - Solution Architect
│   ├── dev.md           # Rick - Senior Developer
│   ├── coder.md         # Morty - Fast Coder
│   ├── reviewer.md      # Marcus - Code Reviewer (GPT-5.2 Codex)
│   ├── researcher.md    # Kristina - Researcher
│   └── change-manager.md # Bruce - Change Manager
├── skills/              # Knowledge modules (25+)
├── plugins/             # Plugins
│   ├── file-indexer.ts  # Auto-indexer on startup
│   └── custom-compaction.ts  # Agent-aware session compaction
├── vectorizer/          # Semantic search engine
│   ├── index.js
│   └── package.json
├── vectors/             # Vector indexes (auto-created)
│   ├── code/
│   ├── docs/
│   └── config/
├── tools/               # MCP tools
│   ├── search.ts        # Semantic search tool
│   └── codeindex.ts     # Index management tool
└── commands/            # Slash commands

docs/

docs/
├── sprint-artifacts/    # Epics, stories, sprints
├── requirements/        # Requirements documents
├── architecture/        # Architecture + ADRs
└── coding-standards/    # Coding patterns

Auto-Indexer Plugin

The auto-indexer runs on Claude Code / AI assistant startup:

  • 🔍 Checks if indexes need updating
  • 📊 Shows toast notification with file count
  • ☕ Shows fun message while indexing ("Grab a coffee!")
  • 📝 Logs to .opencode/indexer.log

Disable auto-indexing:

# config.yaml
vectorizer:
  auto_index: false

Methodologies

TDD (Test-Driven Development)

1. Write failing test (RED)
2. Write minimal code to pass (GREEN)
3. Refactor (BLUE)
4. Repeat

STUB (Stub-First Development)

1. Write interface/stub with TODO
2. Write tests against stub
3. Implement stub
4. Remove TODOs

MCP Servers

Extend AI capabilities with Model Context Protocol servers:

# List available MCP servers
npx @comfanion/workflow mcp list

# Enable servers interactively
npx @comfanion/workflow mcp enable

Recommended MCP Servers

| Server | Description | |--------|-------------| | context7 ⭐ | Library docs for npm, Go, Python | | sequential-thinking ⭐ | Enhanced reasoning for complex tasks | | playwright | Browser automation, testing | | atlassian | Jira/Confluence integration |

MCP configs stored in .opencode/mcp/:

  • catalog.yaml - Available servers (updated by workflow)
  • enabled.yaml - Your selections (not touched by updates)

Jira Integration

Set credentials:

export JIRA_EMAIL="[email protected]"
export JIRA_API_TOKEN="your-api-token"

Requirements

  • Node.js >= 18
  • ~100MB disk for vectorizer dependencies

Links

  • npm: https://www.npmjs.com/package/@comfanion/workflow
  • GitLab: https://gitlab.com/comfanion/workflow

Inspired By

  • BMAD Method - Breakthrough Method of Agile AI-Driven Development
  • OpenCode - AI-native code editor

License

MIT