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

@mew-protocol/types

v0.4.0

Published

TypeScript type definitions for MEW (Multi-Entity Workspace Protocol)

Downloads

7

Readme

@meup/types

Shared TypeScript type definitions for the MEUP (Multi-Entity Unified-context Protocol) v0.2.

Installation

npm install @meup/types

Usage

import { 
  Envelope, 
  Participant, 
  Capability,
  Proposal,
  Tool,
  PROTOCOL_VERSION,
  MessageKinds 
} from '@meup/types';

// Use types in your code
const envelope: Envelope = {
  protocol: PROTOCOL_VERSION,
  id: '123',
  ts: new Date().toISOString(),
  from: 'my-agent',
  kind: MessageKinds.CHAT,
  payload: { text: 'Hello!' }
};

// Type-safe message handling
function handleMessage(envelope: Envelope) {
  switch (envelope.kind) {
    case MessageKinds.MCP_REQUEST:
      const request = envelope.payload as JsonRpcRequest;
      // Handle MCP request
      break;
      
    case MessageKinds.MEUP_PROPOSAL:
      const proposal = envelope.payload as MeupProposalPayload;
      // Handle proposal
      break;
  }
}

Exported Types

Core Protocol Types

  • Envelope - MEUP message envelope
  • PartialEnvelope - Partial envelope for sending
  • ContextField - Sub-context operations
  • Participant - Space participant with capabilities
  • Capability - Capability definition
  • CapabilityGrant - Capability grant between participants
  • Proposal - Proposal for untrusted agents

System Message Payloads

  • SystemWelcomePayload - Welcome message when joining space
  • SystemErrorPayload - Error notification
  • PresencePayload - Join/leave/heartbeat events

MEUP Message Payloads

  • MeupProposalPayload - Proposal submission
  • MeupProposalAcceptPayload - Proposal acceptance
  • MeupProposalRejectPayload - Proposal rejection
  • MeupCapabilityGrantPayload - Capability grant
  • MeupCapabilityRevokePayload - Capability revocation

MCP Types

  • JsonRpcRequest - JSON-RPC 2.0 request
  • JsonRpcResponse - JSON-RPC 2.0 response
  • JsonRpcNotification - JSON-RPC 2.0 notification
  • JsonRpcError - JSON-RPC 2.0 error
  • ServerCapabilities - MCP server capabilities
  • Tool - MCP tool definition
  • Resource - MCP resource definition
  • Prompt - MCP prompt definition
  • ToolExecutionResult - Tool execution result
  • ResourceContent - Resource content
  • ProgressParams - Progress notification

Constants

  • PROTOCOL_VERSION - Current protocol version ('meup/v0.2')
  • MCP_VERSION - MCP version ('2025-06-18')
  • MessageKinds - All message kind constants
  • MCPMethods - All MCP method names

Type Categories

1. Protocol Layer

Types defining the MEUP protocol structure and message envelope format.

2. Capability System

Types for capability-based access control and permission management.

3. Proposal System

Types for the proposal-execute pattern used by untrusted agents.

4. MCP Integration

Types for Model Context Protocol operations within MEUP.

5. Application Layer

Types for application-level messages like chat.

Version

This package implements MEUP v0.2 types. See the specification for protocol details.

License

MIT