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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@gluo-nv/backstage-plugin-hetzner-backend

v0.1.8

Published

Backstage backend plugin for Hetzner Cloud integration.

Readme

Backstage Hetzner Backend Plugin

This plugin provides integration between Backstage and Hetzner Cloud. It allows you to view Hetzner Cloud resources directly within Backstage.

Table of Contents

Features

This plugin provides the following key functionalities:

  • Data Synchronization: Fetches and synchronizes Hetzner Cloud resources, such as servers, volumes, and primary IPs, into the Backstage catalog.
  • API Integration: Acts as a bridge between the Hetzner Cloud API and Backstage, enabling seamless data flow.
  • Support for Catalog Module: Includes a backend catalog module for importing Hetzner VMs into the Backstage catalog.

API Specification

  • Hetzner Cloud API Spec:
    This plugin imports the official Hetzner Cloud OpenAPI specification to generate its API client.
    You can find the Hetzner Cloud OpenAPI spec here: https://docs.hetzner.cloud/spec.json

  • Backend Plugin API Spec:
    The backend plugin itself is also documented with an OpenAPI specification, available at ./openapi.yaml.

Installation

Backend Plugin

# From the Backstage root directory
yarn --cwd packages/backend add @gluo-nv/backstage-plugin-hetzner-backend

Frontend Plugin

This backend plugin requires the corresponding frontend plugin to be installed. Please follow the instructions in the frontend plugin directory.

Catalog Backend Module Plugin

This frontend plugin requires the corresponding catalog backend module plugin to be installed. Please follow the instructions in the catalog backend module plugin directory.

Configuration

Add the following to the app-config.yaml to configure the backend plugin:

backend:
  hetzner:
    token: ${HCLOUD_TOKEN}

You can also add multiple tokes for multiple projects if you like:

backend:
  hetzner:
    tokens:
      - ${HCLOUD_PROJECT_X}
      - ${HCLOUD_PROJECT_Y}
      - ${HCLOUD_PROJECT_Z}

NOTE: The plugin doesn't enforce a limit on the amount of projects you add. The more projects you add, the slower the output will become visible in Backstage. This is because an API-call has to be done for every project. Another important thing to consider is that you won't be able to tell which resources belong to which project. This is because the project's name is not sent back in the Hetzner Cloud API.

Add the plugin to the backend in packages/backend/src/index.ts:

backend.add(import('@gluo-nv/backstage-plugin-hetzner-backend'));

Development

Getting Started

  1. Clone the repository
  2. Install dependencies:
yarn install
  1. Run the plugin in isolation
yarn start

OpenAPI Spec Import and Client Generation

This plugin uses the Hetzner Cloud API, and the client is generated from the Hetzner OpenAPI specification. Follow these steps to import the OpenAPI spec and generate the client:

  1. Optional: Install the OpenAPI TypeScript Codegen Tool
    The tool used for generating the client is openapi-typescript-codegen. Install it globally or use npx to run it directly.

  2. Download the Hetzner OpenAPI Spec
    Run the following command to download the Hetzner OpenAPI specification:

    curl -o hetzner-spec.json https://docs.hetzner.cloud/spec.json
  3. Generate the Hetzner API Client
    Use the openapi-typescript-codegen tool to generate the client:

    npx openapi-typescript-codegen --input hetzner-spec.json --output src/hetznerClient

    This will generate a TypeScript client in the src/hetznerClient directory.

  4. Use the Generated Client
    The generated client can now be imported and used in the backend plugin. For example:

    import { ServersService } from './hetznerClient/services/ServersService';
    
    const servers = await ServersService.getServers();
    console.log(servers);

Contributing

We welcome contributions to improve this plugin! If you’d like to contribute, please follow these steps:

  1. Fork the repository.
  2. Create a new branch for your feature or bug fix.
  3. Submit a pull request with a clear description of your changes.

For major changes, please open an issue first to discuss your ideas.

License

This plugin is licensed under the GNU Affero General Public License v3.0 (AGPL-3.0).

Attribution

This plugin was created by Gluo NV.
Any use or distribution must include proper attribution to the original author.