Shape Flow

Layer 2: Data Shapes in Motion Demo

← Back to Home

Demo Mode: ❌ Broken

Using /api/posts-broken endpoint (returns Date objects - will fail serialization)

Blog Posts

Demonstrating validated, transformed data shapes

Create New Post

BOUNDARY 3: This form demonstrates validation at the user input boundary. Try submitting with invalid data to see Zod validation in action.

Three Boundaries Visualized

1

API → Server

Validate external data with Zod, transform to internal shape

2

Server → Client

Ensure all props are JSON-serializable (no Date objects)

3

Form → Server Action

Validate user input before executing business logic