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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@hiraoku/cc-flow-web

v0.1.4

Published

Visual workflow editor for CC-Flow with drag-and-drop interface

Readme

CC-Flow Web Editor

Visual workflow editor for CC-Flow with an intuitive drag-and-drop interface.

Installation

Option 1: Install from npm (Recommended)

npm install -g @hiraoku/cc-flow-web

Option 2: Development Installation

Clone the repository and install dependencies:

git clone <repository-url>
cd cc-flow-web
npm install

Usage

Using the Published Package

Navigate to your .claude directory and run:

cd /path/to/your/project/.claude
cc-flow-web

This will:

  1. Start the web server on port 3000
  2. Automatically open your browser to the editor
  3. Use the current directory as the Claude root path
  4. Look for agents/ and commands/ subdirectories

CLI Options

-p, --port <port>    Port to run the server on (default: 3000)
--no-open            Do not open browser automatically
-h, --help           Display help
-V, --version        Display version

Examples

# Start on custom port
cd /path/to/.claude
cc-flow-web --port 8080

# Start without opening browser
cd /path/to/.claude
cc-flow-web --no-open

Development Mode

For development, create a .env.local file with your Claude root path:

CLAUDE_ROOT_PATH=/path/to/your/project/.claude

Then start the development server:

npm run dev

Open your browser to http://localhost:3000

Development

Prerequisites

  • Node.js >= 18.0.0
  • npm >= 9.0.0

Setup

# Install dependencies
npm install

# Start development server
npm run dev

Available Scripts

npm run dev         # Development server with hot reload
npm run build       # Production build
npm run start       # Production server
npm run lint        # ESLint code checking
npm run type-check  # TypeScript type checking

Features

✅ Implemented

  • Visual Workflow Editor: ReactFlow-based drag-and-drop canvas with 4 node types (Start, Agent, Step Group, End)
  • Agent Palette: Search, filter, and drag agents with category-based organization
  • Properties Panel: Configure settings, view workflow statistics, and preview JSON outputs
  • Real-time Validation: Automatic error detection with visual indicators and detailed error messages
  • Workflow Persistence: Save/restore workflows as JSON files with complete state preservation, automatic Minimap sync, and metadata display
  • Workflow Generation: Generate CLI-ready commands with progress tracking and notifications
  • Keyboard Navigation: Full keyboard accessibility with Tab, Enter, Space, and Escape support
  • Step Group Management: Sequential and parallel execution modes with agent grouping
  • Dynamic Node Sizing: Nodes automatically expand to display all agents (up to 10 per group)
  • Smart UI: Drop zone automatically hides when maximum agents (10) are reached

📋 Planned (Future Versions)

  • Workflow templates and presets library
  • Advanced graph analysis and optimization suggestions
  • Collaboration features and real-time multi-user editing
  • Version control integration and change tracking
  • External CI/CD system integration

Technology Stack

  • Frontend: Next.js 15 with App Router
  • Visual Editor: ReactFlow (XyFlow) v12.8.5
  • UI Framework: shadcn/ui + Radix UI + Tailwind CSS
  • Type System: TypeScript 5.6
  • State Management: React 19 built-in state + Custom hooks

Project Structure

cc-flow-web/
├── src/
│   ├── app/                    # Next.js App Router
│   ├── components/             # React components
│   │   ├── workflow-editor/    # Core editor components
│   │   ├── panels/             # UI panels and sections
│   │   └── ui/                 # shadcn/ui components
│   ├── lib/                    # Business logic and utilities
│   ├── types/                  # TypeScript type definitions
│   └── hooks/                  # Custom React hooks
├── docs/                       # Project documentation
│   └── specifications/         # Technical specifications
└── public/                     # Static assets

Documentation

📚 Complete Documentation Suite

Comprehensive documentation is available in the /docs directory:

🎯 Quick Navigation by Role

Integration with CC-Flow CLI

This web editor is designed to work seamlessly with the existing cc-flow CLI ecosystem:

  • Agent Discovery: Automatically scans .claude/agents/ directory
  • Workflow Compatibility: Generates JSON compatible with cc-flow CLI execution
  • Launch Integration: Can be launched directly from cc-flow CLI
  • Bidirectional Sync: Workflows work seamlessly between web and CLI interfaces

Contributing

Development Workflow

  1. Review Development Guide for setup and workflow
  2. Check Technical Architecture for system design
  3. Follow Code Standards for consistency
  4. Use Testing Guide for quality assurance
  5. Maintain compatibility with cc-flow CLI ecosystem

Code Standards

  • TypeScript: Strict mode enabled, no any types in production
  • ESLint: Configured for React and TypeScript best practices
  • Prettier: Consistent code formatting
  • Accessibility: WCAG 2.1 AA compliance for interactive elements

Security

This package implements comprehensive supply chain security measures:

For Users

  • Provenance Verification: All releases include npm provenance attestations
  • Dependency Auditing: Regular security scans with npm audit
  • Minimal Dependencies: Standalone build reduces attack surface

Verify Package Integrity

# Check provenance (npm 9+)
npm view @hiraoku/cc-flow-web --json | jq .dist.attestations

# Verify signatures
npm audit signatures

Reporting Security Issues

Please see SECURITY.md for details on reporting vulnerabilities.

License

This project is part of the CC-Flow ecosystem. Please refer to the main repository for licensing information.


Project Status: Active Development Latest Version: 0.1.4 Maintained by: CC-Flow Development Team