Documentation

Build the compiler, run a live service in five minutes, then learn the language in a thirty-minute tour. The reference pages list every command, library function and known limit.

Choose your path

Quickstart: five minutes

You need three things: a C compiler, Python 3.10+, and git. Nothing else. Clone the repository, build the compiler from its canonical C source, compile the health service example and ask it if it is alive. The health service declares routes, and the native R6 backend refuses every routed program. Its build therefore passes --backend=c:

PowerShell
git clone --branch feature/0.1.0-stability https://github.com/joacokhzyx/orbit-lang.git
cd orbit-lang
python scripts/trust.py build --out orbit.exe
.\orbit.exe build examples/health_service.orb --backend=c -o health_service.exe
.\health_service.exe 8080
Check
curl http://127.0.0.1:8080/health
{"status":"UP","version":"0.1.0","uptime_seconds":0}

That is a real Orbit service: one binary, live telemetry at /metrics and per-route costs at /_ledger. The Get started page walks the same path slowly, explaining each step.

The idea behind Orbit

Orbit is a statically typed language for APIs and microservices. Its compiler turns your .orb source into C, and a C compiler builds the binary. The compiler is written in Orbit and compiles itself: the quickstart above builds it from its canonical C source with scripts/trust.py build.

What you get from one compiled service binary, with no extra code:

  • Live telemetry at /metrics.
  • Per-route costs at /_ledger (the ledger).
  • A health route like the /health response shown above.

The docs also mark what is not proven: every tour snippet prints a verified output, and anything untested is labelled UNTESTED.

What 0.1.0 cannot do

Next step: install the compiler, or jump straight into the language tour. Sources live on GitHub.

Type to search commands, errors, modules and concepts.