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

@biroai/adapter-daytona-sandbox

v2026.513.0

Published

Provider-lifecycle adapter for [Daytona](https://daytona.io) sandboxes. Defined in `ROADMAP-NEXT.md` P2.1; narrowed to provider-lifecycle only in P2.2a.

Readme

@biroai/adapter-daytona-sandbox

Provider-lifecycle adapter for Daytona sandboxes. Defined in ROADMAP-NEXT.md P2.1; narrowed to provider-lifecycle only in P2.2a.

This package speaks the Daytona REST API to provision, fetch, list, and tear down Daytona sandbox VMs. It does not drive what runs inside the sandbox — that belongs to @biroai/agent-runtime.

Why Daytona

  • Open-source and MIT-compatible with Biro's licensing stance
  • ~90ms cold start (vs. seconds for most VM-based sandboxes)
  • First-class workspace and snapshot support aligns with Biro's agent execution model
  • Self-hostable: companies can point apiUrl at their own Daytona cluster

What is in this package

| Path | Contents | |---|---| | src/shared/types.ts | SandboxHandle, SandboxStatus, SandboxConfig, CreateSandboxOptions, SandboxConfigSchema, mapDaytonaStateToStatus | | src/shared/errors.ts | SandboxConfigError, DaytonaApiError, (legacy) NotImplementedError | | src/server/client.ts | DaytonaSandboxClientcreateHandle / getHandle / listHandles / stopHandle against POST / GET / DELETE /sandbox | | src/server/index.ts | Re-exports for server consumers | | src/cli/index.ts | Stub CLI descriptor | | src/ui/index.ts | Stub UI version constant |

What this package is NOT

This package is provider lifecycle only. It provisions and tears down Daytona sandbox VMs. It does not (and will not) expose:

  • Command execution — use @biroai/agent-runtime (behind AgentRuntimeClient)
  • File operations (upload, download, directory ops) — use @biroai/agent-runtime
  • Agent session control (postMessage, streamEvents, permission lifecycle) — use @biroai/agent-runtime
  • Any "inside the sandbox" operation — those belong to the runtime layer, which is shaped after the Rivet Sandbox Agent SDK and works across Daytona, E2B, Vercel sandbox, and others

State mapping

Daytona's lifecycle has 16 states (creating, starting, started, stopping, stopped, archiving, archived, deleting, deleted, resizing, restoring, pulling_snapshot, building_snapshot, build_pending, error, build_failed, unknown). They are reduced to four abstract SandboxStatus values:

| SandboxStatus | Daytona states | |---|---| | starting | creating, starting, restoring, pulling_snapshot, building_snapshot, build_pending | | ready | started, running, resizing | | stopped | stopping, stopped, archiving, archived, deleting, deleted | | error | error, build_failed, unknown, anything else |

Unknown / future states map to error deliberately — silent coercion to ready would mask real failures.

Usage

import { DaytonaSandboxClient } from "@biroai/adapter-daytona-sandbox/server";

const client = new DaytonaSandboxClient({
  config: {
    apiKey: process.env.DAYTONA_API_KEY!,
    apiUrl: "https://app.daytona.io/api",
    defaultImage: "biro-default-image:1",
    idleTimeoutSeconds: 900, // 15 minutes
  },
  // fetchImpl is optional; defaults to globalThis.fetch
});

const handle = await client.createHandle({
  companyId: "acme",
  agentId: "agent-42",
  issueId: "issue-7",
  envVars: { LANG: "en_US.UTF-8" },
});

// Hand `handle` to @biroai/agent-runtime for in-sandbox ops.

await client.stopHandle(handle.id);

Identifying biro-managed sandboxes

createHandle tags every sandbox with these labels:

| Label | Source | |---|---| | biro.companyId | CreateSandboxOptions.companyId | | biro.agentId | CreateSandboxOptions.agentId | | biro.issueId | CreateSandboxOptions.issueId (omitted when null) |

listHandles({ companyId, agentId }) filters by these labels via Daytona's labels= query param. The status filter is applied client-side because Daytona's filter language has no state predicate.