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

swarm-pilot

v0.1.23

Published

A docker swarm manager

Downloads

50

Readme

Swarm Manager Logo

Swarm Pilot

Swarm Pilot is a Docker Swarm cluster management tool designed to simplify and automate the scaling of services based on resource usage. It monitors CPU and memory usage across your services and dynamically adjusts the number of replicas to ensure optimal performance and resource utilization.

Features

  • Autoscaling: Automatically scales services up or down based on CPU and memory usage.
  • Service-Level Configuration: Customize scaling behavior using service-specific labels.
  • Lightweight and Efficient: Runs as a Docker container within your Swarm cluster.

Getting Started

Prerequisites

  • A running Docker Swarm cluster.
  • Docker version 20.10 or later.
  • Prometheus with cadvisor needed for service metrics.

Example Deployment

Below is an example deployment configuration for Swarm Pilot using a docker-compose.yml file:

services:
    swarm-pilot:
        image: gradlon/swarm-pilot:latest
        volumes:
            - /var/run/docker.sock:/var/run/docker.sock:ro
        environment:
            - DEBUG=false
            - PROM_HOST=prometheus.int.integral-systems.ch
            - PROM_USER=${PROM_USER}
            - PROM_PASS=${PROM_PASS}
            - PROM_PORT=443
            - PROM_SCHEMA=https
            - TELEGRAM_BOT_TOKEN=${TELEGRAM_BOT_TOKEN}
            - TELEGRAM_CHAT_ID=${TELEGRAM_CHAT_ID}
            - BATCH_SIZE=5
            - AUTOSCALER_INTERVAL=${AUTOSCALER_INTERVAL:-5}
            - ENABLE_AUTOSCALER_LABEL=swarm.autoscaler
            - AUTOSCALER_MINIMUM_CPU_LABEL=swarm.autoscaler.minimum_cpu
            - AUTOSCALER_CPU_MINIMUM_DEFAULT=${AUTOSCALER_CPU_MINIMUM:-25}
            - AUTOSCALER_MAXIMUM_CPU_LABEL=swarm.autoscaler.maximum_cpu
            - AUTOSCALER_MAXIMUM_CPU_DEFAULT=${AUTOSCALER_CPU_MAXIMUM:-85}
            - AUTOSCALER_MINIMUM_MEM_LABEL=swarm.autoscaler.minimum_mem
            - AUTOSCALER_MEM_MINIMUM_DEFAULT=${AUTOSCALER_MEM_MINIMUM:-25}
            - AUTOSCALER_MAXIMUM_MEM_LABEL=swarm.autoscaler.maximum_mem
            - AUTOSCALER_MAXIMUM_MEM_DEFAULT=${AUTOSCALER_MEM_MAXIMUM:-85}
            - AUTOSCALER_MIN_REPLICAS_LABEL=swarm.autoscaler.min_replicas
            - AUTOSCALER_MIN_REPLICAS_DEFAULT=1
            - AUTOSCALER_MAX_REPLICAS_LABEL=swarm.autoscaler.max_replicas
            - AUTOSCALER_MAX_REPLICAS_DEFAULT=10
        networks:
            - default
        deploy:
            mode: replicated
            replicas: 1
            placement:
                constraints:
                    - node.role == manager
            resources:
                limits:
                    cpus: '0.10'
                    memory: 128M
                reservations:
                    cpus: '0.10'
                    memory: 64M

To deploy this configuration, save it to a file named docker-compose.yml and run:

docker stack deploy -c docker-compose.yml swarm-manager

Planned Features

- **Node Rebalancing**: Automatically redistribute services across nodes to ensure even resource utilization and reduce bottlenecks.
- **Node Scaling/Provisioning/Decommissioning (Hetzner)**: Dynamically add or remove nodes in the cluster based on workload demands, leveraging Hetzner's infrastructure.
- 

If you find Lucy-CLI useful, consider supporting the project: "Buy Me A Coffee"