Appearance
Examples
The repository contains three checked-in targets that show UCR installs in their fully rendered form. They are the best place to inspect path mapping, composition, and tracked state without setting up a new project first.
examples/bun-service
This target is a Bun-managed HTTP service that demonstrates server-oriented installs.
Key directories:
examples/bun-service/ucr/runtimeexamples/bun-service/ucr/utilitiesexamples/bun-service/ucr/presetsexamples/bun-service/ucr/posts/...examples/bun-service/server/routes/...examples/bun-service/.ucr/*.json
Checked-in composition:
- runtime:
ts-runtime - shared utilities:
result-utility,async-utility,object-utility,collection-utility,validation-utility - presets:
service-preset,endpoint-preset - blocks:
entity-contract,service-layer,memory-repository,input-validation,health-route,json-collection-route,json-item-route,bun-server
Cross-reference these installs with Official Registry when you want to see the manifest metadata, canonical install recipe, and example-owned file list for each item.
Recommended browsing flow for Bun projects:
- foundations first:
health-route,bun-server, and optionalrequest-context - API flow second: either the
bun-crud-resourcestarter or the granular entity and route chain - UI is not applicable for the Bun adapter
What this example proves:
- shared code lands under
ucr/... - transport outputs land under
server/routes/... - entrypoint outputs land under
server/... .ucr/config.json,.ucr/lock.json, and.ucr/state.jsonare enough to support diff and upgrade
Suggested commands:
bash
bun packages/cli/dist/bin.js list --registry fixtures/registries/ucr-official/registry.json --target examples/bun-servicebash
bun packages/cli/dist/bin.js diff json-collection-route --registry fixtures/registries/ucr-official/registry.json --target examples/bun-service --instance postsbash
cd examples/bun-service
bun run startexamples/next-app
This target is a Bun-managed Next App Router app that demonstrates both API and UI installs.
Key directories:
examples/next-app/src/ucr/runtimeexamples/next-app/src/ucr/utilitiesexamples/next-app/src/ucr/presetsexamples/next-app/src/ucr/posts/...examples/next-app/src/app/api/...examples/next-app/src/app/posts/...examples/next-app/.ucr/*.json
Checked-in composition:
- runtime:
ts-runtime - shared utilities plus Next-only UI utilities
- presets:
service-preset,endpoint-preset,form-preset,admin-page-preset - blocks:
entity-contract,service-layer,memory-repository,input-validation,api-client,next-collection-route,next-item-route,data-table,entity-form,admin-page,entity-detail-page
Cross-reference these installs with Official Registry when you want to see the manifest metadata, canonical install recipe, and example-owned file list for each item.
Recommended browsing flow for Next projects:
- foundations first
- API flow second: either
next-crud-resourceor the granular entity and route chain - admin/detail UI last:
admin-page,entity-detail-page, or the lower-level table and form blocks
What this example proves:
- shared code still lands in deterministic
src/ucr/...roots - transport outputs land under
src/app/api/... - UI outputs land under
src/app/... - Next-only utilities and presets are gated by adapter compatibility
Suggested commands:
bash
bun packages/cli/dist/bin.js show admin-page-preset --registry fixtures/registries/ucr-official/registry.json --target examples/next-appbash
bun packages/cli/dist/bin.js diff admin-page --registry fixtures/registries/ucr-official/registry.json --target examples/next-app --instance postsbash
cd examples/next-app
bun run buildexamples/node-service
This target is an npm-managed Node HTTP service that demonstrates server-oriented installs without Bun-specific runtime assumptions.
Key directories:
examples/node-service/ucr/runtimeexamples/node-service/ucr/utilitiesexamples/node-service/ucr/presetsexamples/node-service/ucr/posts/...examples/node-service/server/routes/...examples/node-service/server/index.tsexamples/node-service/.ucr/*.json
Checked-in composition:
- runtime:
ts-runtime - shared utilities:
result-utility,async-utility,object-utility,collection-utility,validation-utility - presets:
service-preset,endpoint-preset - blocks:
entity-contract,service-layer,memory-repository,input-validation,node-health-route,node-collection-route,node-item-route,node-server
Cross-reference these installs with Official Registry when you want to see the manifest metadata, canonical install recipe, and example-owned file list for each item.
Recommended browsing flow for Node projects:
- foundations first:
node-health-route,node-server, and optionalenv-config - API flow second: either the
node-crud-resourcestarter or the granular entity and route chain - UI is not applicable for the Node adapter
What this example proves:
- shared code lands under
ucr/... - transport outputs land under
server/routes/... - entrypoint outputs land under
server/... - npm-managed projects still keep enough
.ucrstate fordiffandupgrade
Suggested commands:
bash
bun packages/cli/dist/bin.js list --registry fixtures/registries/ucr-official/registry.json --target examples/node-servicebash
bun packages/cli/dist/bin.js diff node-collection-route --registry fixtures/registries/ucr-official/registry.json --target examples/node-service --instance postsbash
cd examples/node-service
bun run buildWhy These Examples Matter
The example targets are more than demos:
- they are the canonical command targets used in the docs
- they provide stable fixtures for understanding adapter path mapping
- they keep real
.ucrstate checked in, which makesdiffandupgradebehavior inspectable - they act as regression coverage during build, typecheck, and test runs