🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@mosadd/protocol

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mosadd/protocol

Message schemas and codecs for the mosadd protocol — Zod-validated types shared across all m* modules.

Source
npmnpm
Version
3.0.0-alpha.0
Version published
Weekly downloads
6
-85%
Maintainers
1
Weekly downloads
 
Created
Source

@mosadd/protocol

Zod-validated message schemas and codecs for the mosadd protocol. Shared across all m* modules and providers.

A module of mosadd — a human OS for communications.

Install

npm install @mosadd/protocol

Usage

import { Message, encodeMessage, decodeMessage } from "@mosadd/protocol";

const msg: Message = {
  id: "...",
  kind: "text",
  sender: "...",
  recipient: "...",
  payload: "hello",
  timestamp: Date.now(),
};

const bytes = encodeMessage(msg);
const restored = decodeMessage(bytes); // throws on invalid input

License

Apache-2.0. Patent grant included.

Keywords

mosadd

FAQs

Package last updated on 31 May 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts