Harbor v2.0.0

A scripting language
for the backend

Harbor compiles to clean, zero-dependency Node.js. Write server logic in a simple syntax — no package.json, no node_modules, no build step.

app.hb
set port = 8080

server port {
  get "/ping" {
    respond { "status": "ok" }
  }
}
0 Runtime dependencies
<2ms Cold start time
Node.js Compile target

Built for backend development

Harbor gives you a focused set of primitives for writing servers, APIs, and background tasks.

Native networking

Built-in fetch and server blocks with async support generated at compile time. No imports needed.

Zero dependencies

Compiles to pure Node.js standard library code. No external packages in your output — ever.

General-purpose scripting

Run code before your server starts. Warm caches, load secrets, validate config — all in the same file.

Simple control flow

First-class if/else, variables with set, and deep array indexing.

Fast compilation

Compiles to readable Node.js in milliseconds. No intermediate build steps or bundler configuration.

Edge and serverless

Small output, no dependencies, fast cold starts. Runs anywhere Node.js does.

Write less, ship more

Harbor's syntax is designed to be read at a glance. Define routes, make HTTP requests, and manage state without boilerplate.

  • server starts an HTTP server
  • fetch makes outbound requests
  • set declares variables
  • respond sends JSON responses
app.hb
set port = 8080
set api = "https://api.github.com"

// Initialize before server starts
fetch api + "/status" {
  set system_status = res.body.status
}

server port {
  get "/ping" {
    respond { "status": system_status }
  }
}

Get started

Install Harbor globally, then create and run your first server.

1

Install

$ curl -sSL https://harbor.fluxlinux.xyz/install.sh | bash
2

Write

server 3000 { get "/" { respond { "hello": "world" } } }
3

Run

$ harbor app.hb