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

@locci/box

v1.4.0

Published

CLI for Locci Box - Execute code in isolated sandboxes

Downloads

49

Readme

@locci/box

CLI for Locci Box — execute code in isolated microVM sandboxes, manage API keys, and connect AI agents via MCP.

Installation

# NPM (recommended)
npm install -g @locci/box

# or via pnpm
pnpm add -g @locci/box

# or without installing
npx @locci/box --help

Quick Start

# 1. Configure
loccibox init

# 2. Run code
loccibox run -l python -c "print('Hello from Locci Box!')"

# 3. Run from a file
loccibox run -l node -f script.js

Commands

init

Interactive setup wizard — sets API URL, API key, and profile name.

loccibox init

login

Authenticate with email and password to get a JWT for key management.

loccibox login

run

Execute code in an isolated sandbox.

loccibox run [options]

Options:
  -l, --lang <language>    python | node | bash | ruby  (required)
  -c, --code <code>        Inline code to execute
  -f, --file <path>        Path to a code file
  -t, --timeout <seconds>  Execution timeout in seconds (default: 30)
  --profile <name>         Use a specific profile
loccibox run -l python -c "print('hello')"
loccibox run -l bash -c "echo \$HOSTNAME"
loccibox run -l node -f index.js -t 60

sandboxes

List all currently running sandboxes — recover IDs when a response was lost.

loccibox sandboxes [--profile <name>]

status

Check the status of a specific sandbox by ID.

loccibox status <sandbox-id> [--profile <name>]

stop

Stop and destroy a running sandbox.

loccibox stop <sandbox-id> [-y] [--profile <name>]

Flags:
  -y, --yes    Skip confirmation prompt

keys

Manage API keys (requires loccibox login first).

loccibox keys list
loccibox keys create --name "my-key"
loccibox keys revoke <key-id>
loccibox keys delete <key-id>

metrics

View system and tenant usage statistics (requires admin key).

loccibox metrics [--profile <name>]

mcp start

Start a stdio MCP server — connect Claude Desktop, Cursor, or any MCP client directly to Locci Box.

loccibox mcp start

mcp config

Print ready-to-paste MCP config for your client.

loccibox mcp config

Example output:

{
  "mcpServers": {
    "locci-box": {
      "command": "loccibox",
      "args": ["mcp", "start"],
      "env": {
        "LOCCIBOX_API_URL": "https://api-box.locci.cloud",
        "LOCCIBOX_API_KEY": "lbk_live_..."
      }
    }
  }
}

MCP Tools

When connected via loccibox mcp start or the HTTP transport, the following tools are available to AI agents:

| Tool | Description | |------|-------------| | run_sandbox | Execute code in an isolated microVM | | get_sandbox_status | Check the status of a running sandbox | | stop_sandbox | Stop and destroy a sandbox | | list_sandboxes | List all active sandboxes (use when a prior run_sandbox response was lost) |

Configuration

Config is stored at ~/.loccibox/config.json:

{
  "defaultProfile": "default",
  "profiles": {
    "default": {
      "apiUrl": "https://api-box.locci.cloud",
      "apiKey": "lbk_live_..."
    }
  }
}

Environment variables override the config file:

export LOCCIBOX_API_URL="https://api-box.locci.cloud"
export LOCCIBOX_API_KEY="lbk_live_..."

HTTP MCP Transport

If the API server has MCP_HTTP_ENABLED=true, it also accepts MCP over HTTP at POST /mcp:

{
  "mcpServers": {
    "locci-box": {
      "type": "http",
      "url": "https://box.locci.cloud/mcp",
      "headers": { "Authorization": "Bearer lbk_live_..." }
    }
  }
}

Project Structure

cli/
├── src/
│   ├── commands/   init · login · run · sandboxes · status · stop · metrics · keys · mcp
│   ├── lib/        api.ts · config.ts · output.ts
│   ├── types/      index.ts
│   └── index.ts
├── dist/           compiled output (published to NPM)
├── package.json
└── tsconfig.json

License

MIT — see LICENSE