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

@artinet/cruiser

v0.1.8

Published

A library for building A2A enabled runtime Agents.

Downloads

361

Readme

Overview

Cruiser provides "dock" adapters that bridge popular AI agent frameworks to enable multi-agent communication through the @artinet/sdk.

Supported Frameworks

| Framework | Import Path | Status | | -------------------- | ---------------------------- | ------- | | OpenAI Agents | @artinet/cruiser/openai | Text ✅ | | Mastra | @artinet/cruiser/mastra | Text ✅ | | Claude Agent SDK | @artinet/cruiser/claude | Text ✅ | | LangChain | @artinet/cruiser/langchain | Text ✅ | | Strands (AWS) | @artinet/cruiser/strands | Text ✅ | | OpenClaw | @artinet/cruiser/openclaw | Text ✅ |

Installation

npm install @artinet/cruiser @artinet/sdk @modelcontextprotocol/sdk @a2a-js/sdk

Install your preferred agent framework:

# OpenAI Agents
npm install @openai/agents

# Mastra
npm install @mastra/core

# Claude Agent SDK
npm install @anthropic-ai/sdk @anthropic-ai/claude-agent-sdk

# LangChain
npm install langchain @langchain/core

# Strands (AWS)
npm install @strands-agents/sdk

# OpenClaw
# openclaw runs as a gateway service/CLI
# see: https://github.com/openclaw/openclaw
# Cruiser's OpenClaw dock uses the standard Gateway WebSocket protocol.

Quick Start

Single Agent

Create an agent from any of the supported frameworks and dock it onto artinet:

import { Agent } from '@openai/agents';
import { dock } from '@artinet/cruiser/openai';
import { serve } from '@artinet/sdk';

// 1. Create your agent
const agent = new Agent({
    name: 'assistant',
    instructions: 'You are a helpful assistant',
});

// 2. Dock it onto artinet
const artinetAgent = await dock(agent, { name: 'My Assistant' });

// 3. Spin it up as an A2A compatible Server
serve({ agent: artinetAgent, port: 3000 });

Multi-Agent Systems

Experimental

Create interoperable multi-agent systems:

import { serve, cr8 } from '@artinet/sdk';
import { dock as dockMastra } from '@artinet/cruiser/mastra';
import { dock as dockOpenAI } from '@artinet/cruiser/openai';
import { Agent as MastraAgent } from '@mastra/core/agent';
import { Agent as OpenAIAgent } from '@openai/agents';
import { MastraModel } from './mastra-model';

// Use agents from different frameworks
const researcher = await dockOpenAI(new OpenAIAgent({ name: 'researcher', instructions: 'Research topics' }), {
    name: 'Researcher',
});

const writer = await dockMastra(new MastraAgent({ name: 'writer', instructions: 'Write content', model }), {
    name: 'Writer',
});

// Chain them together
const agent = cr8('Orchestrator Agent')
    // The researcher will receive the incoming user message
    .sendMessage({ agent: researcher })
    // The results are passed to the writer with additional instructions
    .sendMessage({
        agent: writer,
        message: 'use the research results to create a publishable article',
    }).agent;

console.log(await agent.sendMessage('I want to learn about the Roman Empire.'));
  • For more information on how to chain agent requests see the artinet-sdk

API Reference

dock(agent, card?, options?)

Each adapter exports a dock function with the same signature:

| Parameter | Type | Description | | --------- | ------------------ | -------------------------- | | agent | Framework-specific | The agent instance to dock | | card | AgentCardParams | Optional identity details | | options | Framework-specific | Optional execution options |

Returns: Promise<Agent> - An artinet-compatible agent

Describe your agent

import { dock } from '@artinet/cruiser/openai';

const artinetAgent = await dock(
    myAgent,
    {
        name: 'Production Assistant',
        description: 'Enterprise-grade AI assistant',
        skills: [
            { id: 'search', name: 'Web Search', description: 'Search the internet' },
            { id: 'code', name: 'Code Generation', description: 'Write code' },
        ],
    },
    {
        // Most adapters allow for framework specific options to be passed
        maxTurns: 10,
        signal: abortController.signal,
    },
);

Architecture

┌─────────────────────────────────────────────────────────────┐
│                     Your Application                        │
└─────────────────────────────────────────────────────────────┘
                              │
                              ▼
┌─────────────────────────────────────────────────────────────┐
│                    @artinet/cruiser                         │
│  ┌─────────┐ ┌─────────┐ ┌─────────┐ ┌─────────┐ ┌────────┐ │
│  │ OpenAI  │ │ Mastra  │ │ Claude  │ │LangChain│ │ Strands│ │
│  │  dock   │ │  dock   │ │  dock   │ │  dock   │ │  dock  │ │
│  └────┬────┘ └────┬────┘ └────┬────┘ └────┬────┘ └───┬────┘ │
│       │           │           │           │          │      │
│       └───────────┴───────────┴───────────┴──────────┘      │
│                              │                              │
│                              ▼                              │
│                       Unified Interface                     │
└─────────────────────────────────────────────────────────────┘
                              │
                              ▼
┌─────────────────────────────────────────────────────────────┐
│                      @artinet/sdk                           │
└─────────────────────────────────────────────────────────────┘
                              │
                              ▼
┌─────────────────────────────────────────────────────────────┐
│                         artinet                             │
│              (Multi-Agent Communication)                    │
└─────────────────────────────────────────────────────────────┘

Requirements

  • Node.js ≥ 18.9.1 (Recommended: 20 or ≥ 22)

Running Tests

npm test

Contributing

Additional dock functions are welcome! Please open an issue or submit a Pull Request on GitHub.

Ensure code adheres to the project style and passes linting (npm run lint) and tests (npm test).

License

This project is licensed under Apache License 2.0.

See the LICENSE for details.

Join the Community