Signet 26.b.0.1.8.6 · coordination language · free and open source

Technical computing,
built for test engineering
and model-based design.

Signet (Signals Network) is a lightweight coordination language for building systems of programs written in any language.  Together, Signet and Starfire enable a test evolution or prototype to be organized, visualized, and evaluated as a System of Signals.

pipx install signet-lang
Aerothermal model of a Titan entry heat shield at peak heating, t = 190 s: shield and shock layer on the left, gauges for altitude 268 km, speed 18,898 km/h, density, Mach 18.8, dynamic pressure 4.66 kPa and stagnation heating 55.4 W/cm² on the right
Peak heating on a Titan entry heat shield, t = 190 s. Wired by reentry.sg: atmosphere, geometry and trajectory modules in C++, aerothermal in Julia. 
Hello, Signal

Every language starts by saying hello. Signet says it with a Signal! This example shows a Signet module with an output port, a C++ module to receive it, and three lines of wiring between them. Modules declare their ports in a comment.

SignetPythonJuliaALGOL 68CC++RustAdaFortranHaskell

hello.sg

# signet: out text::message
let hello = 'Hello, world!'
output(text::message, hello)

world.cpp

// signet: in text::input
#include <signet.hpp>
#include <iostream>
int main() {
    auto m = signet::in<std::string>("input");
    std::cout << m << '\n';
    return 0;
}

messenger.sg

run(hello)
connect(hello.message!, world.input)
run(world)

run it

$ signet messenger.sg
→ Hello, world!

Signet compiles a source module the first time it runs, and again only when its source or Signet changes. signet --export-helpers include writes the helper for each language.

Signals you can trust

A Signal is written as JSON and identified in code with <!>  When a module's run ends cleanly, each Signal is stamped with the hash of its inputs, where they came from, and the module file.

messenger.sg, line 4
lineage(hello.message!)
line 4: lineage of hello.message!
  hello.message! = "Hello, world!"  text  made by messenger:hello.message at 2026-11-29T17:10:34Z, stamp ok
    module hello.sg (unchanged)
    no inputs

lineage checks the hashes rather than printing them. stamp ok means the Signal still matches its hash, and (unchanged) means hello.sg still matches the hash recorded when it ran. Edit hello.sg afterwards and that line reads (changed since); edit the Signal file itself and lineage stops with no valid stamp.

Three ways to run Signet
As a command

In the REPL

Run signet with no file. An expression prints its value. Names, functions and connections carry from one entry to the next.

As a script

In a .sg file

Run signet file.sg. On Linux, #!/usr/bin/env signet as the first line makes the script executable.

In Starfire

Inside a test point

Code goes in each point's Signals box, where a point's Signal is written as 10:module.port!