
Product
Socket for ClickUp Is Now Available
Create ClickUp tasks from Socket alerts, automate ticketing with custom rules, and keep alert and task status synchronized.
@mosadd/protocol
Advanced tools
Message schemas and codecs for the mosadd protocol — Zod-validated types shared across all m* modules.
Zod-validated message schemas and codecs for the mosADD protocol. Shared across all m* modules and providers.
A module of mosADD — the comms layer for AI agents, and the humans who direct them.
npm install @mosadd/protocol@alpha
Verified against the built package (TypeScript shown; drop the two type annotations and it runs as-is under plain Node 18+):
import {
encodeChatMessage,
decodeChatMessage,
encodeEnvelope,
decodeEnvelope,
type ChatMessageV1,
} from "@mosadd/protocol";
const msg: ChatMessageV1 = {
protocol: "m0ssad.chat.v1", // wire constant — predates the mosADD rename, kept for compatibility
id: crypto.randomUUID(),
spaceId: "dm:alice:bob",
senderAccountId: "alice",
timestamp: new Date().toISOString(),
encryptedContent: "<base64 ciphertext>",
messageType: "TEXT",
};
const bytes = encodeChatMessage(msg); // Uint8Array (UTF-8 JSON)
const restored = decodeChatMessage(bytes); // Zod-validated — throws on invalid input
// Wrap in an envelope for the wire:
const wire = encodeEnvelope({ protocol: "m0ssad.envelope.v1", message: msg });
const envelope = decodeEnvelope(wire);
Apache-2.0. Patent grant included.
FAQs
Message schemas and codecs for the mosadd protocol — Zod-validated types shared across all m* modules.
The npm package @mosadd/protocol receives a total of 421 weekly downloads. As such, @mosadd/protocol popularity was classified as not popular.
We found that @mosadd/protocol demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Product
Create ClickUp tasks from Socket alerts, automate ticketing with custom rules, and keep alert and task status synchronized.

Product
Create and manage Asana tasks directly from Socket alerts, with manual task creation, automated ticketing rules, and two-way sync.

Security News
Open VSX has removed three extension IDs from its malicious-extension list as the legitimate publishers they impersonated move to claim the names for themselves.