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/fleet

v0.1.5

Published

A an agentic orchestration server for on premise deployment.

Readme

Deploy AI agents on any infrastructure.

Fleet is a lightweight server framework for hosting agents with built-in orchestration, tool integration (MCP), and Agent2Agent communication.

Installation

npm install @artinet/fleet openai @modelcontextprotocol/sdk @a2a-js/sdk

Requirements: Node.js ≥ 18.9.1

Quick Start

1. Launch a Fleet

Set an OPENAI_API_KEY in you environment variables, then start your Server.

Express:

npm install express
import { fleet } from "@artinet/fleet/express";

fleet().launch(3000);

Hono:

npm install hono
import { fleet } from "@artinet/fleet/hono";

fleet().launch(3000);

🚧 More servers coming soon — Bun adapters and edge support are on the roadmap.

That's it. You now have:

  • POST /deploy — Deploy agents
  • POST /test — Test agent deployments
  • GET /agentId/:id/.well-known/agent-card.json — Agent metadata
  • POST /agentId/:id — JSON-RPC agent interaction

2. Deploy an Agent

Prelaunch:

import { fleet } from "@artinet/fleet/express";

const myFleet = await fleet().ship([
  {
    config: {
      uri: "my-agent",
      ...
    },
  },
]);

myFleet.launch(3000);

Post Launch, Ship:

import { ship } from "@artinet/fleet";

await ship("http://localhost:3000", {
    config: {
      uri: "my-agent",
      ...
    },
});

Curl:

curl -X POST http://localhost:3000/deploy \
  -H "Content-Type: application/json" \
  -d '{
    "config": {
      "name": "My Agent",
      "uri": "my-agent",
      "description": "A helpful assistant",
      "modelId": "gpt-4",
      "instructions": "You are a helpful assistant.",
      "version": "1.0.0",
      "skills": [],
      "capabilities" : {},
      "defaultInputModes": ["text"],
      "defaultOutputModes": ["text"],
      "services": [{
        "type": "mcp",
        "uri": "everything-server-1",
        "info": {
          "implementation": {
            "version": "0.0.1",
            "name": "everything"
          }
        },
        "arguments": {
          "command": "npx",
          "args": [
            "-y",
            "@modelcontextprotocol/[email protected]"
          ]
        }
      }]
    }
  }'

🚧 Coming Soon: Support for Remote MCP Servers.

3. Talk to Your Agent

via curl:

curl -X POST http://localhost:3000/agentId/my-agent \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "message/send",
    "params": {
      "message": {
        "messageId": "hello-id",
        "kind": "message",
        "role": "user",
        "parts": [{ "kind": "text", "text": "Hello!" }]
      }
    }
  }'

or via the sdk:

import { createMessenger } from "@artinet/sdk";

const messenger = createMessenger({
  baseUrl: "http://localhost:3000/agentId/my-agent",
});

// Send a message
const response = await messenger.sendMessage("Hello!");

console.log(response);

// Or stream the response
for await (const update of messenger.sendMessageStream("Tell me a story")) {
  console.log(update);
}

SQLite Storage

Set up a SQLite Database with drizzle:

npm install drizzle-orm better-sqlite3
import { SQLiteStore, AgentsTable } from "@artinet/fleet/sqlite";
import { fleet } from "@artinet/fleet/hono";
/*Use any drizzle compatible Database*/
import Database from "better-sqlite3";
import { drizzle } from "drizzle-orm/better-sqlite3";

const sqlite = new Database("fleet.db");
const db = drizzle<AgentsTable>(sqlite);

fleet({
  storage: new SQLiteStore(db),
}).launch(3000);

Logging

Setup a custom logger via the @artinet/sdk:

npm install @artinet/sdk pino pino-pretty
import { configure } from "@artinet/sdk";
import { configurePino } from "@artinet/sdk/pino";
import pino from "pino";

configure({
  logger: configurePino(
    pino({
      level: "info",
      transport: {
        target: "pino-pretty",
        options: { colorize: true },
      },
    })
  ),
});

Middleware

Intercept and transform agent requests and responses by adding Middleware:

import { fleet } from "@artinet/fleet/express";
import { Middleware } from "@artinet/fleet";

fleet({
  middleware: new Middleware()
    .request(async ({ request, context }) => {
      // Inspect or transform incoming requests
      console.log("Incoming request:", request);
      return request;
    })
    .response(
      async ({ response, context }) => {
        // Inspect or transform outgoing responses
        console.log("Outgoing response:", response);
        return response;
      },
      // Use a trigger function to determine if the middleware should fire (defaults to `true` for every request/response)
      ({ response, context }) => {
        return true;
      }
    ),
}).launch(3000);

The middleware chain is composable & sequential; add multiple request or response handlers as needed. Each handler receives the current request/response and context, and must return the (optionally modified) value.

Docker Configuration

Build the docker image:

docker build -t artinet-fleet .

Copy the example and fill in your values:

cp .env.example .env
# Edit .env with your API keys

Run:

docker run --env-file .env -v fleet-data:/data -p 3000:3000 -e PORT=3000 artinet-fleet

Settings

| Option | Type | Default | Description | | ---------------------- | ------------ | ------------------------------ | ------------------------------------------------------------------------------------------------------------------------------- | | storage | IDataStore | InMemoryStore, SQLiteStore | Agent storage backend (storage adapters coming soon) | | basePath | string | "/" | Base path for all routes | | agentPath | string | "/agentId" | Agent interaction path | | deploymentPath | string | "/deploy" | Deployment endpoint | | testPath | string | "/test" | Test endpoint | | inferenceProviderUrl | string | undefined | An OpenAI API compatible endpoint | | load | function | loadAgent | Returns an A2A Protocol compliant agent wrapped in the @artinet/sdk | | middleware | Middleware | undefined | Request/response interceptors for the agent route |

API Reference

Endpoints

| Method | Path | Description | | ------ | ------------------------------------------ | -------------------- | | POST | /deploy | Deploy a new agent | | POST | /test | Test a new agent | | GET | /agentId/:id/.well-known/agent-card.json | Get agent card | | POST | /agentId/:id | JSON-RPC interaction |

JSON-RPC Methods

| Method | Description | | ---------------- | ----------------------------- | | message/send | Send a message, get response | | message/stream | Send a message, stream events | | task/get | Get task status | | task/cancel | Cancel a running task | | resubscribe | stream events |

Architecture


@artinet/fleet
├── /express # Express adapter
├── /hono # Hono adapter
└── /bun # Coming soon

Depends on:
├── @artinet/armada # Core business logic
├── @artinet/sdk # A2A protocol client/server
├── orc8 # Agent/Tool orchestration
├── agent-def # Standardized Agent Definitions
├── openai # OpenAI API Client
└── @mcp # @modelcontextprotocol/sdk

Testing

npm test

License

Apache-2.0

Contributing

Contributions welcome! Please open an issue or PR on GitHub.