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/box-sdk

v0.0.28

Published

OpenAPI client for @asciidev/box-sdk

Readme

@asciidev/box-sdk

Use Box from your application code.

Install

npm install @asciidev/box-sdk

Links

  • SDK docs: https://docs.ascii.dev/box/sdks
  • API reference: https://docs.ascii.dev/box/api/reference
  • Dashboard: https://box.ascii.dev/dashboard
  • API keys: https://box.ascii.dev/box/dashboard?tab=api-keys

Flow

  1. Create an API key in the Box dashboard.
  2. Create or resume a Box.
  3. Prompt the Box.
  4. Read events until the work is done.
  5. Open desktop access when you need browser or GUI visibility.
  6. Stop, resume, fork, or delete the Box according to your retention policy.

Notes

  • Put cleanup in finally: stop/archive or delete Boxes you create for tests.
  • Treat API key secrets, Box secrets, SSH keys, and desktop stream URLs as sensitive.
  • updateSecrets / update_secrets replaces the entire secret setup. Read the current setup first and send every env var and secret file that should remain.
  • rotateApiKey / rotate_api_key rotates the raw secret in place. Store the returned secret immediately; it is shown once.
  • Repository selection is idempotent. Selecting an already-selected repository updates its base branch.

Example

TypeScript

import { BoxApi, Configuration } from "@asciidev/box-sdk";

const box = new BoxApi(new Configuration({
  basePath: process.env.BOX_BASE_URL ?? "https://ascii.dev/api/box/v1",
  accessToken: process.env.BOX_API_KEY ?? (() => {
    throw new Error("Set BOX_API_KEY from the Box dashboard API keys tab.");
  })(),
}));

async function main() {
  let boxId: string | undefined;

  try {
    const created = await box.create({
      createBoxRequest: {
        ttlSeconds: 1800,
      },
    });

    boxId = created.box.id;

    await box.update({
      boxId,
      updateBoxRequest: { name: "sdk-demo" },
    });

    while (!["ready", "idle"].includes((await box.get({ boxId })).box.state)) {
      await new Promise((resolve) => setTimeout(resolve, 2000));
    }

    await box.prompt({
      boxId,
      promptRequest: {
        prompt: "Inspect the repository and summarize the test command.",
        provider: "codex",
      },
    });

    const events = await box.events({ boxId });
    console.log(events.events);
  } finally {
    if (boxId) {
      await box.stop({ boxId });
    }
  }
}

main().catch((error) => {
  console.error(error);
  process.exitCode = 1;
});

JavaScript

const { BoxApi, Configuration } = require("@asciidev/box-sdk");

const box = new BoxApi(new Configuration({
  basePath: process.env.BOX_BASE_URL || "https://ascii.dev/api/box/v1",
  accessToken: process.env.BOX_API_KEY || (() => {
    throw new Error("Set BOX_API_KEY from the Box dashboard API keys tab.");
  })(),
}));

async function main() {
  let boxId;

  try {
    const created = await box.create({
      createBoxRequest: {
        ttlSeconds: 1800,
      },
    });

    boxId = created.box.id;

    await box.update({
      boxId,
      updateBoxRequest: { name: "sdk-demo" },
    });

    while (!["ready", "idle"].includes((await box.get({ boxId })).box.state)) {
      await new Promise((resolve) => setTimeout(resolve, 2000));
    }

    await box.prompt({
      boxId,
      promptRequest: {
        prompt: "Inspect the repository and summarize the test command.",
        provider: "codex",
      },
    });

    const events = await box.events({ boxId });
    console.log(events.events);
  } finally {
    if (boxId) {
      await box.stop({ boxId });
    }
  }
}

main().catch((error) => {
  console.error(error);
  process.exitCode = 1;
});

License

This SDK is MIT licensed. Box, the Box API, the Box CLI, and the Box product are proprietary.