Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@superinstance/bottle-protocol

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@superinstance/bottle-protocol

Agent messaging protocol: Bottle messages, TidePool BBS, and Mailbox inbox/outbox

Source
npmnpm
Version
0.1.0
Version published
Weekly downloads
14
133.33%
Maintainers
1
Weekly downloads
 
Created
Source

@superinstance/bottle-protocol

Agent messaging protocol: Bottle messages, TidePool BBS, and Mailbox inbox/outbox.

Zero dependencies. Works in browser and Node.js.

Install

npm install @superinstance/bottle-protocol

Quick Start

const { Bottle, BottleType, Priority, TidePool, Mailbox } = require('@superinstance/bottle-protocol');

// Create a message
const msg = new Bottle({
  sender: 'agent-1',
  recipient: 'agent-2',
  content: 'Hello from the fleet!',
  bottleType: BottleType.DIRECT,
  priority: Priority.HIGH,
  tags: ['greeting']
});

// TidePool — BBS-style message board
const pool = new TidePool({ name: 'fleet-board' });
pool.drop(msg);
const messages = pool.collect('agent-2');

// Mailbox — personal inbox with read tracking
const box = new Mailbox({ agentId: 'agent-2' });
box.deliver(msg);
console.log(box.unreadCount); // 1
box.readAll();

API

Bottle

Agent message container with ID, TTL, priority, and tags.

TidePool

BBS-style message board where agents drop and collect bottles.

Mailbox

Personal inbox with read/star tracking.

Enums

  • BottleType: DIRECT, BROADCAST, CHANNEL, REQUEST, RESPONSE, ALERT, HEARTBEAT
  • Priority: LOW, NORMAL, HIGH, URGENT

License

MIT © Cocapn

Keywords

bottle

FAQs

Package last updated on 28 Apr 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