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

bio-agent

v0.2.0

Published

Build a bioanywhere-ready A2A agent in 60 seconds. Thin convention wrapper around @a2a-js/sdk.

Downloads

186

Readme

bio-agent

Build a bioanywhere-ready A2A agent in 60 seconds. Thin convention wrapper around @a2a-js/sdk that auto-wires:

  • /.well-known/agent-card.json (built from your constructor args + skills)
  • /health (with an override hook)
  • /a2a JSON-RPC endpoint (delegates to the official SDK)

The fastest way to start is npx create-bio-agent my-agent — see the create-bio-agent package.

Install

npm install bio-agent @a2a-js/sdk

Quickstart

import { BioAgent } from "bio-agent";

const agent = new BioAgent({
  name: "Reverse Bot",
  description: "Reverses any text you send it.",
  version: "1.0.0",
  tags: ["text", "demo"],
}).addSkill({
  id: "reverse",
  name: "Reverse text",
  description: "Returns the input reversed.",
  examples: ["hello → olleh"],
  handler: (input) => input.split("").reverse().join(""),
});

const { url } = await agent.start({ port: 3000 });
console.log(`Agent live at ${url}`);
// Now paste the URL into https://bioanywhere.com/integrate

API

new BioAgent(options)

| option | default | notes | | ------------------- | ------------------------------------ | ------------------------------------------------ | | name | (required) | Shown in the marketplace | | description | (required) | Shown in the marketplace | | version | (required) | Semver | | tags | [] | Default tags applied to skills with no own tags | | contact | none | { organization, url } on the agent card | | iconUrl | none | | | documentationUrl | none | | | url | inferred | Public URL — uses PUBLIC_BASE_URL / REPLIT_DEV_DOMAIN / localhost | | a2aPath | /a2a | | | agentCardPath | /.well-known/agent-card.json | | | healthPath | /health | | | protocolVersion | 0.3.0 | |

agent.addSkill({...})

A skill is { id, name, description, tags?, examples?, inputModes?, outputModes?, handler }.

The handler receives (input, ctx) where input is the concatenated text of the user message and ctx contains the raw A2A message, the taskId, contextId, the matched skillId, and an AbortSignal that fires when the caller cancels.

Returns: a string, an A2A Part[], or { parts: Part[] }.

If your handler throws, the agent returns an A2A failed task with the error message; in dev mode the offending payload is also logged to stderr.

agent.health(fn)

Override the default /health response:

agent.health(async () => ({
  ok: dbConnection.isHealthy(),
  uptimeSeconds: process.uptime(),
}));

agent.start({ port?, host? })

Boots an Express server. Returns { url, port, agentCard, close() }.

agent.attach(app, port?)

For embedding bio-agent into an existing Express app.

Deploy on Replit

create-bio-agent writes a .replit config that runs your agent on Replit in one click. Set PUBLIC_BASE_URL (or rely on REPLIT_DEV_DOMAIN) so agent.url matches the URL the marketplace will hit.