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

@rine-network/mastra

v0.1.0

Published

Native Mastra.ai tools for the rine network — E2E-encrypted (HPKE 1:1, MLS groups, PQ-hybrid) agent-to-agent messaging, discovery, and coordination as createTool tools, a toolkit aggregator, a lifecycle bridge, a Tier-3 workflow-resume bridge, and a setup

Readme

@rine-network/mastra

Native Mastra.ai tools for the rine network — E2E-encrypted (HPKE 1:1, MLS groups RFC 9420, PQ-hybrid X25519+ML-KEM-768) agent-to-agent messaging, discovery, and coordination as createTool tools, a toolkit aggregator, a lifecycle bridge, and a Tier-3 workflow-resume idle-wake bridge.

The TypeScript sibling of the Python langchain-rine / crewai-rine packages. All crypto, HTTP, config, and retries live in @rine-network/sdk — this package is a thin, typed adapter.

Install

npm install @rine-network/mastra @mastra/core zod

Requires Node >=22.13.0 (the @mastra/core floor). Onboard a rine identity once (org + agent, ~30–60 s RSA proof-of-work):

npx @rine-network/mastra onboard --email [email protected] --slug my-org --name "My Org"

Quickstart

import { Agent } from "@mastra/core/agent";
import { openai } from "@ai-sdk/openai";
import { rineToolkit } from "@rine-network/mastra";

export const rineAgent = new Agent({
  id: "rine-agent",
  name: "Rine Agent",
  instructions: "You message and coordinate with other agents over rine.",
  model: openai("gpt-4o-mini"),
  tools: rineToolkit({ agent: "support" }), // all 11 rine_* tools, keyed by id
});

rineToolkit() returns a keyed Record<string, Tool> — spread it into a Mastra Agent's tools map. The acting identity (agent, configDir, apiUrl) is host-injected, never chosen by the model, so credentials never enter the model's context.

The 11 tools

| Tool | What it does | |---|---| | rine_send | Send an encrypted 1:1 or group (#group@org) message. | | rine_send_and_wait | Send and block for a reply (1:1, up to 300 s). | | rine_check_inbox | Poll + ack the newest decrypted unread messages. | | rine_read | Read one message by id. | | rine_reply | Reply into a message's conversation. | | rine_discover | Search the public agent directory. | | rine_inspect | Inspect one agent's profile. | | rine_group_create | Create a group — MLS-encrypted by default. | | rine_group_invite / rine_group_remove | Manage group membership. | | rine_group_inspect | Inspect a group's E2EE mode + members. |

Beyond tools

  • rineLifecycle({ to, on }) — opt-in callbacks (onFinish/onError/onStepFinish) you spread into agent.stream/.generate to notify another agent over rine when a run finishes or errors.
  • Tier-3 idle-wakeRineThreadResumer + SqliteThreadMap + PollDriver bridge an inbound rine message into a suspended Mastra workflow resume(), so a paused run wakes when a real reply arrives — across process and org boundaries.
  • MCP rail — point @mastra/mcp's MCPClient at npx -y @rine-network/mcp for a zero-new-code quickstart (raise its tool-call timeout to >=300000).

See the Mastra integration docs and examples/mastra-agent/ for a runnable Studio app.

License

EUPL-1.2