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

@asciidev/eve-box

v0.1.6

Published

Eve sandbox backend for Ascii Box.

Downloads

1,062

Readme

@asciidev/eve-box

Eve sandbox backend for Ascii Box. Run your Eve sandboxes on Box — the backend maps Eve's filesystem and process operations onto the Box API.

New to Eve or Box? The zero-to-one guide walks through the whole setup from scratch.

Install

npm install @asciidev/eve-box eve

Usage

import { defineSandbox } from "eve/sandbox";
import { asciiBox } from "@asciidev/eve-box";

export default defineSandbox({
  backend: asciiBox({ apiKey: process.env.BOX_API_KEY! }),
});

Options

asciiBox(options) accepts:

  • apiKey — Box API key. Defaults to process.env.BOX_API_KEY.
  • baseUrl — Box API base URL. Defaults to the public Box API.
  • name — name (or (input) => string) for boxes Eve creates.
  • ttlSeconds — auto-archive TTL for boxes. Defaults to 3600.
  • noEnv — withhold your Box account's secrets and credentials from every box (see below). Defaults to false.
  • env — per-box environment variables for every box Eve creates (see below).
  • pollMs — poll cadence for spawn() streams and wait().
  • commandTimeoutMs — timeout for blocking run() commands.
  • networkPolicy — see below.

Running agents for other people

By default a box inherits your Box account (your secrets, secret files, GitHub-credentialed repos, and SSH identity) — fine for your own agents, unsafe for ones other people drive. For any multi-tenant or public agent, set noEnv: true so boxes get none of that and are confined to themselves.

A no-env box starts empty, so you give it exactly what it needs — secrets through env, files and setup through Eve's onSession hook:

import { defineSandbox } from "eve/sandbox";
import { asciiBox } from "@asciidev/eve-box";

export default defineSandbox({
  backend: asciiBox({
    apiKey: process.env.BOX_API_KEY!,
    noEnv: true,
    // Scoped secrets — the only env this box gets:
    env: { MY_APP_TOKEN: process.env.MY_APP_TOKEN! },
  }),
  async onSession({ use }) {
    const sandbox = await use();
    // Seed files and run setup with the session API. These wrap Box's
    // file and command APIs, so you don't need `box scp` or `box ssh`.
    await sandbox.writeTextFile({ path: "config/app.json", content: JSON.stringify({ mode: "prod" }) });
    await sandbox.run({ command: "git clone https://github.com/acme/public-repo . && npm ci" });
  },
});

env keys merge over account variables (per-box wins; ≤100 vars, 64KB total; reserved Box-internal names rejected). writeFile/readFile move bytes in and out and run/spawn execute commands — the Eve-native equivalents of box scp and box ssh <id> <cmd>. A no-env box can't reach your private repos, so clone public ones or have the user authenticate inside the box.

Network policies

Box does not yet support Eve's fine-grained network policies. The backend accepts "allow-all" and throws EveBoxUnsupportedError for stricter policies, so you don't get a false sense of isolation. Use Eve's Vercel or microsandbox backends if you need firewall-backed policies.

Documentation

Development

npm install
cp .env.example .env   # add your BOX_API_KEY
npm test

License

MIT