Skip to content

Examples Overview

Hoppity ships with example projects in the examples/ directory. Each demonstrates a different messaging pattern. All examples work with the docker-compose.yml at the repo root for RabbitMQ.

All examples require:

  • Node.js 22+
  • pnpm 9+
  • Docker (for RabbitMQ)
# From the repo root
docker compose up -d    # Start RabbitMQ
pnpm install            # Install all workspace dependencies
PatternExampleWhen to Use
Pub/Subbasic-pubsubSimple event broadcasting with raw topology escape hatch
Contract-DrivenbookstoreMultiple services with shared domain contracts, typed messaging