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

@grackle-ai/adapter-docker

v0.120.0

Published

Grackle Docker environment adapter

Readme

@grackle-ai/adapter-docker

Grackle environment adapter for managing Docker container environments.

Overview

The Docker adapter creates and manages Docker containers running PowerLine. It handles image pulling/building, container lifecycle, git repo cloning, and GPU passthrough. Supports Docker-outside-of-Docker (DooD) via GRACKLE_DOCKER_NETWORK. It can also attach to a pre-existing, externally-managed container instead of creating one (see Attach mode).

Configuration

| Field | Type | Default | Description | |-------|------|---------|-------------| | image | string | "grackle-powerline:latest" | Docker image (ignored in attach mode) | | containerName | string | "grackle-<envId>" | Container name | | localPort | number | auto | Host port mapping | | volumes | string[] | — | Volume mounts (ignored in attach mode) | | env | Record<string, string> | — | Extra env vars | | repo | string | — | Git repo to clone into /workspace (ignored in attach mode) | | gpus | string | — | GPU passthrough (e.g. "all") | | attach | string | — | Name/ID of an existing container to attach to (enables attach mode) |

Attach mode

When attach is set, the adapter does not create a container. It bootstraps PowerLine inside the already-running container via docker exec and drives agent sessions there. This is for cases where another tool (e.g. Coder) owns the container lifecycle.

  • Lifecycle: Grackle never creates, stops, or removes the attached container. stop/destroy only stop the in-container PowerLine process and remove Grackle's own connectivity sidecar — the target container is left untouched.
  • Connectivity is resolved in order: (1) shared Docker network (GRACKLE_DOCKER_NETWORK) — reach the container by name (DooD/Coder); (2) the container's bridge IP, if reachable directly from the host (typically native Linux); (3) otherwise a Grackle-owned socat sidecar that publishes a host loopback port and forwards into the target's network (works on Docker Desktop / Windows / macOS). Override the sidecar image with GRACKLE_DOCKER_SOCAT_IMAGE (default alpine/socat).
  • Credentials are delivered over the PowerLine gRPC connection at task start, so nothing is baked into the container.
# Attach to a container another tool created
grackle env add my-box --docker --attach my-running-container
grackle env provision my-box

Prerequisites

  • Docker installed and running
  • docker CLI available on PATH
  • Optional: gh CLI for private repo cloning
  • Attach mode: the target container must have Node.js >= 22 and git available (PowerLine requirements)