ulo
ulo
Documentation

Start here

Coming from NestJSNestJS topics, mapped

The model

Protocols

Integrations

Operating

Reference

Documentation

A Rust framework for server applications with more than one kind of client, on a runtime and a server you choose.

Ulo is a Rust framework for server applications with more than one kind of client. HTTP routes, WebSocket gateways, RPC handlers, gRPC services and GraphQL resolvers are declared on plain structs. They share one dependency-injection container, one configuration, one set of health probes and one shutdown.

The core owns no async runtime and no socket. A runtime crate (ulo-runtime-tokio, ulo-runtime-smol) and a transport crate (ulo-http-hyper, ulo-rpc-nats, and others) are added beside it, so the same application module runs on either runtime and behind any server.

Get it running

The current release is 0.1.0-alpha.3, an alpha, on crates.io:

[dependencies]
ulo = "=0.1.0-alpha.3"

Installation

The dependency lines for each runtime and server, Rust versions, and the CLI.

Quick Start

One module, one controller and one route, served on port 3000.

Coming from NestJS

A mapping from NestJS constructs to Ulo's, and the differences that change how code is written.

What it serves

TransportCrates
HTTPulo-http with a server: ulo-http-hyper (the reference), ulo-http-axum, ulo-http-actix, ulo-http-poem, ulo-http-rocket or ulo-http-salvo
WebSocketulo-ws with ulo-ws-hyper; ulo-ws-redis carries a broadcast across processes
RPCulo-rpc over TCP, UDP, NATS, Redis, MQTT, RabbitMQ or Kafka
gRPCulo-grpc, with ulo-build generating the service shapes from a .proto
GraphQLulo-graphql over HTTP and WebSocket, with ulo-graphql-async-graphql or ulo-graphql-juniper

Beside the transports are ulo-config (layered configuration), ulo-health (probes), ulo-db with a store crate per database, ulo-otel (trace context across transports) and ulo-cli.

Requirements

  • Rust 1.88 is the floor for the workspace. Five crates need more; the table is on Installation.
  • Runtimes are tokio and smol. Which one an application runs on is a few lines in main.
  • Every macro expands to calls on a public value API, so an application can be written without macros.

Where to go next

Core Concepts

Modules, providers, scopes and executions.

Request Lifecycle

What runs between a request arriving and the handler.

Deployment

Release builds, graceful shutdown, containers and socket activation.

API Reference

The public surface, crate by crate.

The repository's examples/ directory holds 41 runnable applications, one concept each. Run one with cargo run -p ex-01-hello; each directory's README.md says what it shows and what it needs.

Introduction

What Ulo is made of, how an application starts, and which pages to read in which order.

On this page

Get it runningWhat it servesRequirementsWhere to go next