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

memeloop-swarm

v0.1.0

Published

Docker Swarm backend for the memeloop ExternalOrchestrationDriver contract. Optional standalone driver — no Docker SDK dependency.

Readme

memeloop-swarm

Optional Docker Swarm implementation of MemeLoop's external-orchestrator driver. It talks to the Docker Engine REST API directly and does not add a Docker SDK to memeloop or the default CLI.

Build the worker image on every Swarm node or push it to a registry, install memeloop-swarm beside memeloop-cli, then create <dataDir>/drivers.d/swarm.json:

{
  "apiVersion": "drivers.memeloop.io/v1alpha1",
  "kind": "DriverManifest",
  "metadata": { "name": "swarm" },
  "spec": {
    "driverType": "external-orchestrator",
    "module": "memeloop-swarm",
    "export": "SwarmOrchestrationDriver",
    "construct": true,
    "config": {
      "socketPath": "/var/run/docker.sock",
      "defaultWorkloadImage": "ghcr.io/linonetwo/memeloop-worker-runtime@sha256:<digest>",
      "defaultToolImage": "ghcr.io/linonetwo/memeloop-worker-runtime@sha256:<digest>",
      "registryAuthFile": "/run/secrets/memeloop-registry-auth.json"
    }
  }
}

Protect the manifest and Docker socket: access to the engine is host-root equivalent. The bundled worker image runs as node; created containers also use a read-only root filesystem, an init process, and drop all Linux capabilities. Purpose-built executor images must declare their own non-root USER. Configure a Docker logging driver that supports docker service logs; the MemeLoop driver uses that endpoint to recover terminal worker results.

For a private registry, registryAuthFile must be a regular 0400/0600 file containing one Docker Engine AuthConfig object (for example username, password, and serveraddress). It is re-read at service creation for rotation and sent only through Docker's X-Registry-Auth request header; credentials are never copied into the Swarm Service spec.

Set spec.placement.orchestrator to the manifest name (swarm) on an AgentWorkload or ToolOperation. The worker image runs admitted script and profile workloads through the authenticated worker gateway, plus the safe memeloop.runtime.health / echo built-ins. defaultWorkloadImage creates the host-owned default runtime contract; workloads may select another operator-configured workloadRuntimes runtimeClass, but cannot replace the image, command, or container environment through annotations. defaultToolImage exposes only the two bundled read-only runtime tools. Additional tools require explicit toolContracts entries binding their kind/name, effect, input schema, and allowed image references. Contracts also bind the output schema and hard CPU/memory ceiling. Workload runtime contracts similarly provide default/max CPU and memory; unsupported GPU, disk, or bandwidth requests fail closed. Every successful worker must emit one final MEMELOOP_RESULT <json> line; native Service success without that validated record is treated as failure rather than silently losing the agent/tool result. Only the last 20 log lines are read, with a 128 KiB response limit. Privileged tools still require a purpose-built executor image.