@tailnet/headscale
v0.1.2
Published
Headscale control plane client
Maintainers
Readme
@tailnet/headscale
Headscale control plane client.
bun add @tailnet/headscaleimport { Headscale } from "@tailnet/headscale"
const control = new Headscale({ url: "http://127.0.0.1:8080", apiKey })
await control.nodes.fetch()
await control.nodes.setTags(id, ["tag:server"])
await control.users.create({ name: "ci" })
await control.apiKeys.fetch()Headscale extends Tailnet, the contract it shares with
@tailnet/tailscale, so code typed against Tailnet runs on either. Every
method that changes something carries a risk line in its TSDoc, write or
breaking, shown on hover. No line means it only reads.
