Layr

acme / shop

protected main
TestsBehavior

Behavior

Probes record what the program does on an exact state. A behavior diff compares two states.

ProbeKindCommandLast runLast 10 states
storefront-screensscreenshotsplaywright screenshot --routes probes/routes.txt2 h ago4 screens, 2 changed in v3
api-catalogHTTP answerscurl -s localhost:8080/api/products?page=22 h ago10 same, 1 changed
bench-checkoutmetriccargo bench -p checkout -- --json2 h ago▃▃▄▃▃▄▃▃▃▆ p95 ms
bundle-sizefilenpm --prefix web run build2 h ago▂▂▂▃▃▃▃▃▄▄ KiB
sql-planfilepsql -f probes/plan.sql6 h agono change
Compare any two states
$ probe difflayr probe diff 9a0c 7d3e

Behavior diff: 9a0c13d7 → 7d3e9a1c

storefront-screensscreenshots● changed

● 2 of 4 screens changed. Each screen is a PNG and an HTML snapshot, made by playwright in the try copy of each exact state.

/checkoutdesktop 1280
base 9a0c13d7
AcmeCart (2)CheckoutCoffee beans, 1 kg€24.00Grinder€89.00CardCard numberTotal€113.00Pay €113.00
v3 7d3e9a1c
AcmeCart (2)CheckoutCoffee beans, 1 kg€24.00Grinder€89.00Saved cardsVisa ending 4242Mastercard ending 5100Or a new cardCard numberTotal€113.00Pay €113.00

layr probe run 7d3e --probe storefront-screens · Ran on executor-eu1, exact states

api-catalogHTTP answers● changed

GET /api/products?page=2: 200 → 200, ● body changed (2 fields)

11 {
22 "page": 2,
3− "items": 24,
3+ "items": 25,
4− "next": null
4+ "next": "/api/products?page=3"
55 }

layr probe run 7d3e --probe api-catalog · Ran on executor-eu1, exact states

bench-checkoutmetric● changed
Toggle to see the change
p95 latency41 ms
throughput1,920 req/s
bundle size214 KiB

layr probe run 7d3e --probe bench-checkout · Ran on executor-eu1, exact states

bundle-sizefilewithin limit

web/dist/app.js 214 KiB → 221 KiB (+3%)

layr probe run 7d3e --probe bundle-size · Ran on executor-eu1, exact states

sql-planfile✓ same

✓ No change

layr probe run 7d3e --probe sql-plan · Ran on executor-eu1, exact states

Clone shop

Get the project with all lines and states. Data is decrypted on your machine.

layr clone layr+https://cloud.acme.dev/shop