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

@avelor/floo

v0.2.1

Published

Deploy from anywhere. Name your destination, step through.

Readme


From "A Practical Guide to Muggle Deployment Sorcery," Chapter XII.


The Floo Network

In the wizarding world, the Floo Network is a method of magical transportation connecting thousands of fireplaces across Britain. A witch or a wizard steps into the flames, speaks the name of their destination clearly, and arrives there moments later — no matter the distance.

Muggle servers present a remarkably similar predicament. You have a machine somewhere in the world. You wish to deliver fresh code to it. The traditional method — opening a terminal, typing an incantation of SSH commands, pulling, installing, building, restarting — is tedious, error-prone, and impossible to automate without exposing a secret password to a CI pipeline.

@avelor/floo solves this the wizarding way: an agent runs on your server, much like a lit fireplace awaiting a traveler. You run a single command from your machine — or from any CI pipeline — speak the project name, and the deployment happens. The logs stream back to you in real time, as if you were standing in the server room yourself.

No Docker. No Kubernetes. No monthly subscription to a platform that does too much and charges too much for it. Just a fireplace on each end, and a name spoken clearly.


Installation

Install the package globally on both machines — the server and your local machine:

npm install -g @avelor/floo

Preparing the Fireplace (server setup)

On your server, begin by creating the projects configuration:

floo init

This creates ~/.config/floo/projects.yml. Edit it to define your projects and the steps each deployment should execute:

projects:
  myapp:
    cwd: /var/www/html/myapp
    env:
      NODE_ENV: production
    steps:
      - git pull origin main
      - npm install
      - npm run build
      - pm2 restart myapp --update-env

  staging:
    cwd: /var/www/html/staging_myapp
    steps:
      - git pull origin main
      - npm install
      - npm run build
      - pm2 restart myapp-staging --update-env

Start the agent:

# foreground
floo agent --port 4001

# or as a background daemon
floo agent --port 4001 --daemon
floo status
floo stop

Now issue a token for each project. Each token is scoped — it only grants access to its designated project:

floo token issue --project myapp
floo token issue --project staging

Keep the raw token values somewhere safe. They will not be shown again.

floo token list      # view all active tokens
floo token revoke <id>  # revoke one

Stepping Through (local setup)

On your machine, configure each project with its server URL and token:

floo use myapp   http://your-server:4001  fl_the_token_you_issued
floo use staging http://your-server:4001  fl_the_staging_token

Deploy:

floo myapp

The logs stream back in real time. Exit code 0 on success, 1 if any step fails.


CI/CD — Enchanting Your Pipeline

floo reads from environment variables when no local configuration is found. Set these in your secrets:

| Variable | Description | |---|---| | FLOO_TOKEN | The token issued for this project | | FLOO_URL | The URL of the floo agent |

# .github/workflows/deploy.yml
name: Deploy

on:
  push:
    branches: [main]

jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
      - name: Deploy via floo
        run: npx @avelor/floo myapp
        env:
          FLOO_TOKEN: ${{ secrets.FLOO_MYAPP_TOKEN }}
          FLOO_URL:   ${{ secrets.FLOO_SERVER_URL }}

Reference

AGENT  (run on the server)
  floo agent [--port 4001] [--host 0.0.0.0] [--daemon]
  floo stop
  floo status
  floo init
  floo token issue --project <name>
  floo token list
  floo token revoke <id>

CLIENT  (run locally or in CI)
  floo use <project> <url> <token>
  floo <project>

Security notes

  • Tokens are stored hashed (SHA-256) on the server. The raw value is shown once at issuance.
  • Each token is scoped to a single project. A compromised token cannot deploy other projects.
  • A token is scoped to one project: using it against any other project name returns 403, so an attacker cannot enumerate project names without a valid token for each one.
  • The agent runs over plain HTTP. For production, place it behind a reverse proxy (nginx, Caddy) with TLS.