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

hetzner-client

v3.1.2

Published

A TypeScript SDK for the Hetzner Cloud API, generated from the official OpenAPI specification and designed to make it easy to interact with Hetzner resources in a typed, modern way.

Readme

Hetzner Client

A TypeScript SDK for the Hetzner Cloud API, generated from the official OpenAPI specification and designed to make it easy to interact with Hetzner resources in a typed, modern way.

Current version

Current package version: 3.1.2

What this SDK is

This project provides a client library for Hetzner Cloud services such as:

  • Servers
  • Load balancers
  • Networks
  • Firewalls
  • Volumes
  • Images
  • Datacenters and locations
  • Certificates
  • DNS zones and records
  • Primary IPs, Floating IPs, and more

The SDK is built around the official Hetzner API contract, which means the generated methods, request shapes, and response types closely match the platform's documented endpoints.

API sync

This SDK is kept in sync with the Hetzner API by generating it from the official OpenAPI schema in this repository. The project includes a generation flow that refreshes the client from the API spec, so when Hetzner updates the API definition, the SDK can be regenerated to stay aligned with the latest endpoints and payloads.

In short: the SDK is designed to track the upstream Hetzner Cloud API as the spec evolves.

Open source and community contributions

This project is open source and contributions are welcome from anyone.

You can contribute by:

  • reporting issues
  • improving documentation
  • adding examples
  • fixing bugs
  • proposing schema or client improvements
  • helping keep the SDK aligned with the upstream API

If you’d like to contribute, open an issue or submit a pull request with a clear explanation of the change.

SDK overview

This SDK is a generated, typed client library for JavaScript and TypeScript applications.

Key characteristics:

  • Strong TypeScript typings for request and response payloads
  • API-first generation from OpenAPI schema
  • Request helpers and config utilities
  • Modern fetch-based client transport
  • Easy integration into Node.js and Bun-based projects

The generated code is organized into a few main pieces:

  • core utilities for request building and serialization
  • generated client primitives
  • generated SDK methods for the Hetzner endpoints
  • shared types for request and response models

Installation

Using Bun:

bun add hetzner-client

Using npm or pnpm:

npm install hetzner-client
# or
pnpm add hetzner-client

Quick start

import * as hetzner from 'hetzner-client';

const result = await hetzner.getServers({
  headers: {
    Authorization: `Bearer ${process.env.HETZNER_API_TOKEN}`,
  },
});

console.log(result.data);

A more realistic setup usually creates a client or passes the token through a configured client instance.

Example using a configured client

import * as hetzner from 'hetzner-client';

const client = hetzner.createClient({
  headers: {
    Authorization: `Bearer ${process.env.HETZNER_API_TOKEN}`,
  },
});

const response = await hetzner.getServers({
  client,
});

console.log(response);

Development and generation

This repository includes scripts to fetch and generate the SDK from the Hetzner OpenAPI definition.

bun run fetch-openapi
bun run generate-sdk

This makes it straightforward to refresh the client whenever the upstream API schema changes.

Project status

This SDK is intended to be a practical, maintainable client for the Hetzner Cloud API and a good foundation for both small projects and larger integrations.

It is built for developers who want a typed, API-aligned client without manually hand-writing every endpoint.

Notes

This project uses Bun for development and code generation, but the generated SDK is designed for TypeScript-based application usage.

For the latest project status and generated API coverage, consult the repository files and the OpenAPI definition included in the project.