Hasty Briefsbeta

Bilingual

Cro – elegant reactive services in Raku

5 hours ago
  • Cro is a set of libraries for building reactive distributed systems in Raku, offering high-level APIs and an asynchronous pipeline for complex tasks.
  • Installation is done via `zef install --/test cro` and documentation is available.
  • Basic HTTP server setup uses `Cro::HTTP::Router` and `Cro::HTTP::Server` with route definitions and a `start` method.
  • The HTTP router supports flexible request matching, including path segments, query strings, and static content serving.
  • Body parsing and serialization are pluggable, with built-in support for www-form-urlencoded, multipart, and JSON formats.
  • An HTTP client is integrated with the router, and web socket support is provided via `web-socket` blocks.
  • The `cro stub` command scaffolds new HTTP and ZeroMQ services with sensible defaults (e.g., host/port from environment, META6.json).
  • `cro run` is a lightweight development service runner, and `cro trace` enables tracing to debug request flow through the pipeline.