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

opencode-landstrip

v0.15.19

Published

Landlock-based sandboxing for opencode with landstrip

Readme

opencode-landstrip

Landlock-based sandboxing for opencode using landstrip.

Install

Add the plugin to opencode.json:

{
  "$schema": "https://opencode.ai/config.json",
  "plugin": ["opencode-landstrip"]
}

Add the TUI entrypoint to tui.json if you install or configure the plugin manually:

{
  "$schema": "https://opencode.ai/config.json",
  "plugin": ["opencode-landstrip/tui"]
}

opencode plugin install opencode-landstrip configures both entrypoints.

This installs opencode-landstrip and its @landstrip/landstrip dependency, which includes platform-specific native binaries for Linux, macOS, and Windows.

Requires OpenCode 1.17.7 or newer.

On unsupported platforms the plugin loads but leaves sandboxing disabled.

Configure

Create .opencode/sandbox.json in a project or ~/.config/opencode/sandbox.json globally. Project config takes precedence and array fields are merged with global/default values.

See sandbox.json for a starter config.

Behavior

The plugin wraps opencode's AI bash tool in landstrip, routes proxy-aware network traffic through an allowlist proxy, and blocks read/write tool access outside configured filesystem allowlists. The default policy is strict: network access is off unless domains are allowed, reads are limited to the project, ~/.gitconfig, and /dev/null, and writes are limited to the project and /dev/null.

Run /sandbox in the TUI to inspect the active sandbox configuration. A compact status badge in the prompt area shows whether the sandbox is active and whether network is proxied or open.

When OpenCode asks for a sandboxed permission, the TUI plugin plays the host's permission sound and desktop notification, then opens a single dialog with choices to allow once, allow for the session, persist for the project, persist globally, or reject. The dialog shows the exact path or domain being approved. Project approvals are written to .opencode/sandbox.json; global approvals are written to ~/.config/opencode/sandbox.json.

OpenCode's current plugin API allows wrapping AI bash tool calls, but does not allow a plugin to replace manually typed shell-mode commands with a landstrip wrapper. Those commands can still receive the proxy environment from OpenCode, but they are not process-sandboxed by this plugin.

Disable

Set enabled to false in sandbox.json, or pass plugin options:

{
  "$schema": "https://opencode.ai/config.json",
  "plugin": [["opencode-landstrip", { "enabled": false }]]
}

License

opencode-landstrip is licensed under MIT. See LICENSE for more information.

The bundled @landstrip/landstrip package is licensed separately as Apache-2.0 AND LGPL-2.1-or-later.