Plugins

Celerity

Run Celerity applications locally, with their infrastructure created from blueprints.

The Celerity plugin is in development and not yet usable. This page describes what it will do.

Celerity gives you portable building blocks for backends: APIs, WebSockets, queues and more. A Celerity application describes the infrastructure it needs in a blueprint.

The @lo1/plugin-celerity plugin will read those blueprints, so you will not have to write the local infrastructure yourself:

StepWhat the plugin will do
ComposeGenerates Compose services for the queues, topics and datastores a blueprint declares.
ProvisioningCreates tables, buckets and schemas once the infrastructure is healthy.
SeedingApplies seed data.
Container modeConfigures the container that runs the Celerity service.
WatchingRestarts the service when blueprints or source files change.

Services that share a queue or topic will be connected by giving the resources matching spec.name values, so several Celerity services can exchange events locally with no extra wiring.

Configuration

lo1.yaml
version: "1"
name: shop

plugins:
  celerity: "@lo1/plugin-celerity"

services:
  orders:
    type: celerity
    path: ./services/orders
    port: 8080

Celerity services will sit in the same workspace as any other service, so a React frontend, a legacy API and a set of Celerity services will all start with one lo1 up.

Last updated on

On this page