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

@prismer/wire

v0.1.0

Published

Canonical wire protocol schemas for Prismer Agent Runtime ABI (PARA)

Downloads

144

Readme

@prismer/wire

Canonical wire protocol schemas for the Prismer Agent Runtime ABI (PARA) v0.1.

Single source of truth for all PARA events. Language bindings (Swift, Python) are generated from this package — never redefine them elsewhere.

Contributors: @prismer/sandbox-runtime resolves from the npm registry. npm install in this dir fails until that package is published — use sdk/build/pack.sh --scope all + install.sh --local-artifacts for local dev.

Install

npm install @prismer/wire zod

Key exports

import { ParaEventSchema, ParaEvent } from '@prismer/wire';
import { encodeFrame, decodeFrame, Opcode } from '@prismer/wire';
import { EncryptedEnvelopeSchema } from '@prismer/wire';
import { parseDeeplink, serializeDeeplink } from '@prismer/wire';

// Permissions (canonical path for @prismer/sandbox-runtime)
import { PermissionRuleSchema, PermissionMode } from '@prismer/wire/permissions';

Event families

| Family | Count | Example events | |---|---|---| | Lifecycle | 8 | agent.register, agent.session.started | | Turn / LLM | 6 | agent.llm.pre, agent.turn.end | | Message I/O | 5 | agent.channel.inbound, agent.message | | Tool | 5 | agent.tool.pre, agent.elicitation.request | | Permission | 3 | agent.approval.request, agent.approval.denied | | Task / Teammate / Cmd | 4 | agent.task.created, agent.command | | Memory / Context | 4 | agent.compact.pre, agent.bootstrap.injected | | Environment | 6 | agent.fs.op, agent.cwd.changed | | Notification | 1 | agent.notification | | Skill | 5 | agent.skill.activated, agent.skill.proposed |

Codegen (Swift + Python)

npm run build    # builds dist/
npm run codegen  # generates dist/wire.schema.json, dist/PrismerWireDTO.swift, dist/prismer_wire.py

The Swift DTO is consumed by lumin-swift. The Python file is consumed by prismer-adapter-hermes. Per D15: quicktype emits a flat struct with all fields optional — the type-safe enum wrapper is the consumer's responsibility.

Binary frame

2-byte overhead (opcode + slot). Designed for WS multiplexing per EXP-06 (5M enc/s).

const encoded = encodeFrame({ opcode: Opcode.JSON_CONTROL, slot: 0, payload });
const { opcode, slot, payload } = decodeFrame(encoded);