Skip to content
PluginStats

@claude-flow/shared weekly downloads statistics

By claude-flow (9 listings) · npm · MCP servers

Shared types, event bus, config schemas and validators, MCP transport helpers and resilience utilities used by the Ruflo (claude-flow) V3 packages.

View on npm Fresh · Dec 6, 2026

@claude-flow/shared has 61,006 recorded weekly downloads on npm, a decrease of 22.5% over the past 30 days, ranking #729 of 3,247 tracked listings.

Weekly downloads
61,006
Official API · Dec 5, 2026
7-day growth
-23.0%
-18.2K weekly downloads
30-day growth
-22.5%
-17.8K weekly downloads
90-day growth
+24.6%
+12K weekly downloads
Rank
#729
▼ 67 in 7 days

About @claude-flow/shared

@claude-flow/shared

<!-- adr-356:quickstart:start -->

Animated diagram: raw config is validated by Zod schemas into typed config that flows through the EventBus to other packages

@claude-flow/shared — Shared types, Zod config schemas and validators, the event bus and resilience helpers that the other @claude-flow packages build on.

Supported environments: Node.js 20+ · ESM · Linux, macOS, Windows (pure JavaScript)

Quickstart

npm install @claude-flow/shared
import { validateAgentConfig } from '@claude-flow/shared';

const ok = validateAgentConfig({ id: 'coder-1', name: 'Coder', type: 'coder' });
console.log(ok.success, ok.data.maxConcurrentTasks, ok.data.priority);

const bad = validateAgentConfig({ id: 'coder-1', name: 'Coder', type: 'coder', priority: 500 });
console.log(bad.success, bad.errors.map((e) => `${e.path}: ${e.code}`).join(', '));

Expected output:

true 5 50
false priority: too_big

Next: @claude-flow/hooks builds its lifecycle hooks on these types.

<!-- adr-356:quickstart:end -->

npm version npm downloads License: MIT TypeScript Core

Shared utilities, types, and core infrastructure for Claude Flow V3 - the foundation module used by all other @claude-flow packages.

Features

  • Core Types - Agent, Task, Memory, MCP, and Swarm type definitions
  • Core Interfaces - Agent, Task, Memory, Event, and Coordinator interfaces
  • Configuration - Schema validation, loading, and default values
  • Event System - Event bus, coordinator, and handler utilities
  • Hooks System - Pre/post execution hooks for extensibility
  • MCP Infrastructure - Server, transport, connection pool, and tool registry
  • Health Monitoring - Health checks and monitoring utilities

Installation

npm install @claude-flow/shared

Quick Start

import {
  AgentState,
  TaskDefinition,
  MemoryEntry,
  EventBus,
  ConfigLoader
} from '@claude-flow/shared';

// Use shared types
const agent: AgentState = {
  id: { id: 'agent-1', swarmId: 'swarm-1', type: 'coder' },
  name: 'Code Agent',
  type: 'coder',
  status: 'idle'
};

// Use configuration
const config = await ConfigLoader.load('./config.json');

// Use event system
const eventBus = new EventBus();
eventBus.on('task.completed', (event) => {
  console.log(`Task ${event.taskId} completed`);
});

Package Exports

// Main entry (recommended - includes all modules)
import { ... } from '@claude-flow/shared';

// Submodule exports (for tree-shaking or specific imports)
import { ... } from '@claude-flow/shared/types';      // Type definitions
import { ... } from '@claude-flow/shared/core';       // Config, interfaces, orchestrator
import { ... } from '@claude-flow/shared/events';     // Event sourcing (ADR-007)
import { ... } from '@claude-flow/shared/hooks';      // Hooks system
import { ... } from '@claude-flow/shared/mcp';        // MCP server infrastructure
import { ... } from '@claude-flow/shared/security';   // Security utilities
import { ... } from '@claude-flow/shared/resilience'; // Retry, circuit breaker, rate limiter

API Reference

Types
import type {
  // Agent types
  AgentId,
  AgentState,
  AgentType,
  AgentStatus,
  AgentCapabilities,
  AgentMetrics,

  // Task types
  TaskId,
  TaskDefinition,
  TaskType,
  TaskStatus,
  TaskPriority,

  // Memory types
  MemoryEntry,
  MemoryType,
  SearchResult,

  // Swarm types
  SwarmId,
  SwarmStatus,
  SwarmEvent,
  CoordinatorConfig,

  // MCP types
  MCPTool,
  MCPRequest,
  MCPResponse
} from '@claude-flow/shared/types';
Core Interfaces
import type {
  IAgent,
  ITask,
  IMemory,
  ICoordinator,
  IEventHandler
} from '@claude-flow/shared/core';

// Agent interface
interface IAgent {
  getId(): AgentId;
  getState(): AgentState;
  execute(task: TaskDefinition): Promise<TaskResult>;
  handleMessage(message: Message): Promise<void>;
}

// Memory interface
interface IMemory {
  store(entry: MemoryEntry): Promise<string>;
  retrieve(id: string): Promise<MemoryEntry | null>;
  search(query: SearchQuery): Promise<SearchResult[]>;
  delete(id: string): Promise<boolean>;
}

// Coordinator interface
interface ICoordinator {
  initialize(): Promise<void>;
  shutdown(): Promise<void>;
  registerAgent(agent: IAgent): Promise<string>;
  submitTask(task: TaskDefinition): Promise<string>;
}
Configuration
import {
  ConfigLoader,
  ConfigValidator,
  defaultConfig,
  ConfigSchema
} from '@claude-flow/shared/core';

// Load configuration
const config = await ConfigLoader.load('./config.json');
const config2 = await ConfigLoader.loadFromEnv();

// Validate configuration
const errors = ConfigValidator.validate(config);
if (errors.length > 0) {
  console.error('Invalid config:', errors);
}

// Default configuration
const defaults = defaultConfig();
Event System
import { EventBus, EventCoordinator } from '@claude-flow/shared/events';

const eventBus = new EventBus();

// Subscribe to events
eventBus.on('agent.joined', (event) => {
  console.log(`Agent ${event.agentId} joined`);
});

eventBus.on('task.*', (event) => {
  console.log(`Task event: ${event.type}`);
});…

Description from the npm listing.

  • ruflo
  • claude-flow
  • shared
  • types
  • event-bus
  • config-validation
  • zod
  • mcp
  • resilience
  • typescript

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

@claude-flow/shared weekly downloads on npm, last 90 days: 61,006 weekly downloads as of Dec 5, 2026, +24.6% over 90 days.@claude-flow/sharedWeekly downloads on npm · Last 90 days61,006downloads / week+24.6% over 90 days020K40K60K80K100K120KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
@claude-flow/shared weekly downloads on npm, last 90 days: 61,006 weekly downloads as of Dec 5, 2026, +24.6% over 90 days.

7/30/90-day growth

@claude-flow/shared weekly downloads growth on npm: -23.0% over 7 days, -22.5% over 30 days, +24.6% over 90 days.@claude-flow/sharedWeekly downloads growth on npm61,006downloads / week now7-day growth-18,188 weekly downloads-23.0%30-day growth-17,750 weekly downloads-22.5%90-day growth+12,042 weekly downloads+24.6%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
@claude-flow/shared weekly downloads growth on npm: -23.0% over 7 days, -22.5% over 30 days, +24.6% over 90 days.

Ranking history

@claude-flow/shared npm ranking history: currently #729 (by weekly downloads).@claude-flow/sharednpm ranking · by weekly downloads · Last 90 days#729current rank#620#640#660#680#700#720#740Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankNov 10, 2026 – Dec 6, 2026 · 27 observations · Updated Dec 5, 2026pluginstats.com
@claude-flow/shared npm ranking history: currently #729 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,084 shown · page 37, #9 (overall #729)
All npm: every listing in weekly downloads order

Listing placement

MCP servers468 listings · 24 pages · page 5, #12 (overall #92)
MCP servers: every listing in weekly downloads order

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

Recent observations

Full history (142)
Recent weekly downloads observations for @claude-flow/shared
Date (UTC)Weekly downloadsChange vs. previous
61,006-11.4K
72,383-4.4K
76,755-6.1K
82,826+300
82,526+952
81,574+371
81,203+2K
79,194+3.7K
75,452+4.1K
71,352-2.9K
74,247-1.5K
75,767-1.3K
77,113+1.6K
75,515—

Similar npm MCP servers plugins

All 20 @claude-flow/shared alternatives

Data source

Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.

Listing: https://www.npmjs.com/package/@claude-flow/shared. First seen Nov 10, 2026; last successful collection Dec 6, 2026. See the methodology.