# Bond

Bond is a small web framework for [Agentica](https://agentica-lang.github.io/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]`.

```agentica
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](https://agentica-lang.github.io/bond/getting-started/index.md) installs Bond and runs a first app.
- The [guide](https://agentica-lang.github.io/bond/guide/index.md) has a page for each part.
- The source and the changelog are [on GitHub](https://github.com/agentica-lang/bond), under the Apache License 2.0.
