Bond
Bond is a small web framework for Agentica, in the spirit of Sinatra. You add routes to an app, the app is an immutable value, and a handler is a function from a Conn to a Result[Conn].
import Bond from "pkg/bond/bond"
def hello(conn: Bond.Conn) -> Result[Bond.Conn]
return ok(Bond.text(conn, 200, "hello"))
end
def main() -> Void
app = Bond.app() |> Bond.get("/hello", &hello)
Bond.run(app, "127.0.0.1", 4567).unwrap!
end- Getting started installs Bond and runs a first app.
- The guide has a page for each part.
- The source and the changelog are on GitHub, under the Apache License 2.0.