Nilovon Hetzner Cloud SDK

Introduction

TypeScript SDK for the Hetzner Cloud API

hcloud-js

A fully typed, modern TypeScript SDK for managing your Hetzner Cloud infrastructure. Built with type safety, validation, and developer experience in mind.

Features

  • Fully Typed: Complete TypeScript types for all API endpoints
  • Validated: Built-in validation using Zod schemas
  • Easy to Use: Simple, intuitive API
  • Complete Coverage: All Hetzner Cloud API endpoints supported
  • Well Documented: Comprehensive documentation with examples

Quick Example

import { HCloudClient } from '@nilovonjs/hcloud-js';

const client = new HCloudClient({
  token: 'your-api-token'
});

// List all servers
const servers = await client.servers.list();
console.log(`Found ${servers.servers.length} server(s)`);

// Get a specific server
const server = await client.servers.get(12345);
console.log(server.server.name);

Installation

Installation

Learn how to install and configure hcloud-js

Getting Started

Getting Started

Start using the SDK in your project

Utilities

Utilities

Helper functions for pagination, action polling, type guards, and more

API Reference

API Reference

Complete API documentation

On this page