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

htzbuild

v1.1.4

Published

Hetzner-based EAS remote builder that can be run from any project root with a shared .env directory.

Readme

htzbuild 🚀

Thunderously Fast EAS Remote Builds on Hetzner Cloud

npm version License: MIT

htzbuild is a high-performance CLI tool that supercharges your Expo development workflow. It spins up a powerful, ephemeral dedicated server on Hetzner Cloud, syncs your project, runs eas build --local, and brings the artifact right back to your machine—often significantly faster and cheaper than standard cloud build options.


✨ Features

  • 🚀 High Performance: Defaults to cpx52 (AMD EPYC) compilation power.
  • ☁️ Ephemeral: Automatically spins up and tears down VMs for each build.
  • 🔒 Secure: Syncs environment variables and credentials securely via SSH.
  • 🛠️ Configurable: Supports custom build profiles, environments, and sync rules.
  • 📦 Local-Compatible: Uses eas build --local remotely vs. hosted CI services.

🛠 Prerequisites

  • Node.js (v20 or newer)
  • Hetzner Cloud Account: API Token (HCLOUD_TOKEN).
  • Tools: ssh, scp, rsync, git (in your system PATH).
  • Expo: An Expo project with EAS configured.

📦 Installation

To use htzbuild anywhere:

npm install -g htzbuild

Or run it directly with npx (no installation required):

npx htzbuild --help

🚀 Quick Start

  1. Set up your environment: Create a .env directory in your project root and add your secrets.

    mkdir .env
    echo "HCLOUD_TOKEN=your_token_here" > .env/hcloud.env
    echo "EXPO_TOKEN=your_expo_token" > .env/expo.env

    Note: You can also use htzbuild config to save Hetzner credentials globally so you don't need them in every project.

  2. Run a build:

    htzbuild --profile preview

    Sit back while htzbuild provisions a server, builds your app, and downloads the APK/AAB to ./build-output.


⚙️ Configuration

Environment Variables (.env/)

htzbuild automatically loads all files in the .env/ directory at your project root.

Minimum required variables:

  • HCLOUD_TOKEN: Your Hetzner Cloud API token.
  • EXPO_TOKEN: (Optional but recommended) For authenticating EAS on the remote builder.

Optional customizations:

  • HETZNER_LOCATION: Data center location (default: fsn1).
  • HETZNER_SERVER_TYPE: Server flavor (default: cpx52).
  • HETZNER_SSH_KEY: Name of the SSH key to inject (if pre-configured in Hetzner).

Config File (htzbuild.config.json)

For advanced control, place a htzbuild.config.json in your project root.

{
  "remoteProjectDir": "project",
  "artifactForProfile": {
    "preview": "build-output/app-release.apk",
    "production": "build-output/app-release.aab"
  },
  "syncExcludes": [
    ".git",
    "node_modules",
    "dist"
  ]
}

Global Config

Configure defaults globally to avoid repeating flags:

htzbuild config --token <HCLOUD_TOKEN> --ssh-key <KEY_NAME>

Credentials are saved in ~/.config/htzbuild/credentials.json.


❓ Troubleshooting

SSH Authentication Failures

  • Ensure your local SSH agent is running (ssh-add -l).
  • htzbuild attempts to reuse existing Hetzner SSH keys if specified; otherwise, it relies on your local default keys.

Build Failures

  • Check the build.log streamed during execution.
  • If the server terminates too early, try running with --keep-alive-on-error to debug the running VM.

📄 License

MIT © Matiss Jurevics