Overview

Server side*

Rye was primarily made to handle backend, shell, server-side tasks.

CLI dialect

Build robust command-line interfaces in pure Rye using the CLI parsing dialect (parse-args, generate-help).

Published September 16, 2026

HTTP Servers

A growing list of server-side examples.

Published August 13, 2024

SQLite Database

How to work with SQLite databases in Rye.

Published August 13, 2024

PostgreSQL database

How to work with Postgres databases.

Published August 13, 2025

MQTT broker

This page shows practical MQTT patterns in Rye:

  • Quick publish to a public broker
  • Local broker publish+subscribe demo
  • Guarding examples so they don’t fail when MQTT isn’t available

Prerequisites

  • An MQTT broker. For local tests, use mqtt://localhost:1883 (e.g., Mosquitto).
  • For the public broker examples we use test.mosquitto.org. Do not send sensitive data.

Quick publish to public broker

Publishes a single message to a test topic. Useful to sanity-check network access and DNS.