Skip to main content

hyrule

Spin up microservices fast. Test their flows just as fast.

One resource. Choose your backend.​

Describe your API in YAML, configure the connection, and run hyrule-serve.

MongoDB

Collections are created on first write. Mongo is the default backend.

resources-mongo.yaml
resources:
- name: tags
collection: tags
backend: mongo
resource_methods: [get, post]
item_methods: [get, patch]
schema:
name: {type: string, required: true}
slug: {type: string, required: true, unique: true}
BACKEND=mongo CONFIG_FILE=config-mongo.json \
RESOURCES_FILE=resources-mongo.yaml PORT=8080 \
go run ./cmd/hyrule-serve
Configure Mongo →

Postgres

Use a JSONB table with UUIDs. Apply the table migration before starting.

resources-postgres.yaml
resources:
- name: tags
collection: tags
backend: postgres
resource_methods: [get, post]
item_methods: [get, patch]
schema:
name: {type: string, required: true}
slug: {type: string, required: true, unique: true}
BACKEND=postgres CONFIG_FILE=config-postgres.json \
RESOURCES_FILE=resources-postgres.yaml PORT=8080 \
go run ./cmd/hyrule-serve
Configure Postgres →

Learn

A guided, step-by-step path: build a resource, add relations and hooks, wire up a transactional outbox, and test all of it — using one real example throughout.

Start the guide →

Reference

The complete, example-driven detail: the Store interface, the resources.yaml field reference, the outbox, dry run, testkit, and the architecture that holds it together.

Browse the reference →

Blog

Guilherme Rondon's writing on Go, infrastructure and the ideas behind hyrule and his other projects.

Read the blog →