Core Concept
Zero-Latency Normalization
Boundary removes the need for "glue code" by enforcing a strict schema on API inputs/outputs.
The Problem
API A returns { user_id }, API B returns { id }. This fragmentation breaks apps.
The Solution
Boundary standardizes these into a single, predictable interface with consistent type safety.
Code Comparison
normalization_demo.ts
// Without Boundary
const userA = await apiA.fetchUser(); // { user_id: "123" }
const userB = await apiB.fetchUser(); // { id: "456" }
// With Boundary
const userA = await boundary.users.get("123"); // { id: "123" }
const userB = await boundary.users.get("456"); // { id: "456" }