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-competitive-analysis

v1.0.0

Published

AI-powered competitive feature analysis plugin for OpenCode. Orchestrates team of specialist agents to analyze competitor websites and generate detailed feature specifications.

Downloads

4

Readme

OpenCode Competitive Analysis Plugin

AI-powered competitive feature analysis for OpenCode. Orchestrates a team of specialist agents to analyze competitor websites and generate detailed feature specifications.

Features

  • Multi-Agent Collaboration: Coordinates specialist agents for comprehensive analysis

    • Business Analyst: Competitive research and market analysis
    • Product Owner: Requirements and feature specifications
    • Designer: UX/UI design proposals
    • Web Researcher: Website analysis and screenshot capture
  • Competitive Intelligence: Systematic analysis of multiple competitor websites

  • Visual Evidence: Screenshot capture and documentation of user flows

  • Requirements Engineering: Clear, actionable requirements with acceptance criteria

  • Design Proposals: UX/UI specifications based on competitive landscape

  • Feature Specifications: Complete documentation with implementation plans

Installation

Add to your OpenCode configuration:

{
  "plugin": ["opencode-competitive-analysis"]
}

Or install via npm:

npm install -g opencode-competitive-analysis

Usage

Basic Competitive Analysis

Analyze how competitors handle user authentication

With Specific Competitors

Analyze the shopping cart feature on competitor websites:
- Shopify: https://www.shopify.com
- WooCommerce: https://woocommerce.com
- BigCommerce: https://www.bigcommerce.com

Focus on checkout flow and payment processing.

Advanced Usage

analyze_competitors(
  featureName="file upload functionality",
  competitors=[
    { name: "Google Drive", url: "https://drive.google.com" },
    { name: "Dropbox", url: "https://www.dropbox.com" },
    { name: "OneDrive", url: "https://onedrive.live.com" }
  ],
  requirements=["drag and drop", "progress tracking", "batch uploads", "error handling"],
  targetAudience="enterprise users"
)

Workflow

The plugin orchestrates the following workflow:

  1. Research Phase

    • Web Researchers navigate each competitor website in parallel
    • Screenshots captured at key interaction points
    • User flows documented
    • Technical notes gathered
  2. Analysis Phase

    • Business Analyst synthesizes all research findings
    • Patterns and best practices identified
    • Competitive positioning analyzed
  3. Requirements Phase

    • Product Owner defines feature requirements
    • User stories created with acceptance criteria
    • Implementation priorities established
    • Phased delivery plan created
  4. Design Phase

    • Designer creates UX/UI proposals
    • User flows designed
    • Visual system defined
    • Accessibility considerations documented
  5. Specification Generation

    • Comprehensive feature specification generated
    • Implementation plan with phases
    • Risk assessment included
    • Deliverables documented

Output

The plugin generates:

  • Feature Specification Document (Markdown)

    • Executive summary
    • Competitive landscape analysis
    • Detailed requirements
    • Design proposals
    • Implementation plan
    • Risk assessment
  • Screenshot Directory

    • Organized by competitor
    • Labeled by user flow step
    • High-resolution captures
  • Analysis Report (JSON)

    • Structured data for programmatic use
    • All agent outputs
    • Metadata and timestamps

Agents

Business Analyst

Specializes in competitive research, feature discovery, and market analysis.

Use when:

  • Need to understand competitive landscape
  • Analyzing feature implementations across multiple competitors
  • Researching best practices and industry standards
  • Gathering competitive intelligence

Product Owner

Specializes in requirements gathering, feature specification, and user story definition.

Use when:

  • Need to define feature requirements
  • Creating acceptance criteria
  • Breaking down features into epics/stories
  • Prioritizing features and requirements

Designer

Specializes in UX/UI design, user experience, and interaction patterns.

Use when:

  • Need to design user interfaces
  • Improving user experience
  • Creating interaction patterns
  • Designing responsive layouts

Web Researcher

Specializes in website analysis, screenshot capture, and competitor exploration using Playwright.

Use when:

  • Analyzing competitor websites
  • Capturing screenshots
  • Exploring user flows on websites
  • Gathering visual evidence of implementations

Configuration

Plugin behavior can be customized in ~/.config/opencode/competitive-analysis.json:

{
  "model": "gpt-4o-mini",
  "outputDirectory": "./output",
  "screenshotQuality": "high",
  "maxCompetitors": 5
}

Examples

Example 1: Analyzing Authentication

I need to implement user authentication. Analyze how Google, Microsoft, and Apple handle authentication.

Use the analyze_competitors tool to launch the analysis team.

Example 2: E-commerce Checkout

Research competitor checkout flows:
- Amazon
- Shopify
- WooCommerce

Focus on payment methods and guest checkout.

Example 3: Real-time Collaboration

Analyze collaborative editing features:
- Google Docs
- Notion
- Coda

Target audience: teams and enterprises.
Requirements: real-time sync, cursors, comments, version history.

License

MIT