4 hours · 2025
ShipFlow
A time-boxed shipping label flow built to demonstrate engineering judgment, correctness, and UX clarity under constraints.
- Role
- Frontend Engineer
- Focus
- Correctness, UX states, architecture
- Outcome
- Shippable, well-structured prototype
- Next.js
- TypeScript
- API Integration

1. Challenge
Build a USPS shipping label creation flow using the EasyPost API within a strict 4-hour timebox. The goal was not feature completeness, but demonstrating sound engineering judgment, UX clarity, and correct domain handling.
2. Context & Constraints
- Time-boxed take-home (prototype expected, not production-ready).
- US-only addresses enforced.
- Required steps: address validation, rate selection, label purchase, and printable PDF output.
- Ambiguous requirements designed to test decision-making.
Process & Key Decisions
Steps, decisions, and tradeoffs made along the way.
3.1 Treat the Project as a Real MVP
Trade-off. Several production features were intentionally deferred (auth, persistence, retries) to protect clarity and execution quality within the time constraint.
- Prioritized a clear happy path over exhaustive edge cases.
- Focused on correctness, type safety, and predictable UX states.
3.2 Next.js App Router with Colocated API Routes
Trade-off. No separate backend service abstraction. In a larger system, this would likely evolve into a dedicated API layer or BFF.
- Used Next.js App Router with API routes for address verification, rates, and label purchase.
- Shared types between frontend and backend.
3.3 Zod as a Single Source of Truth
Trade-off. Slight upfront cost in schema design, accepted in exchange for strong correctness guarantees and maintainability.
- Used Zod schemas for form validation, API input validation, and type inference.
- Explicitly modeled domain constraints (US-only addresses, parcel attributes).
3.4 Explicit Domain Model for the Flow
Trade-off. Less flexible than per-step models, but chosen intentionally to keep the MVP predictable, testable, and easy to reason about.
- Modeled the entire label creation process as a single domain object (from, to, parcel).
- Mapped internal models to EasyPost payloads via explicit mapper functions.
3.5 Step-Based UX with Explicit State
Trade-off. No persisted state between refreshes. Considered acceptable for a prototype focused on flow clarity.
- Implemented a numbered, step-based flow aligned with real shipping workflows.
- Clear progression: addresses → parcel → rates → preview/print.
3.6 Happy Path First, Minimal Error UI
Trade-off. Limited retry and recovery UX. With more time, explicit retry and reconciliation logic would be added.
- Avoided over-handling ambiguous EasyPost purchase responses.
- Removed misleading error UI when labels could still be generated successfully.
3.7 PDF Preview via iframe
Trade-off. Less control over rendering, but significantly reduced bug surface area and kept focus on business logic.
- Used an iframe for label preview instead of parsing or rendering PDFs.
4. Solution
- A clean, predictable shipping label flow with strong validation and clear UX states.
- Architecture designed to scale beyond the MVP without refactoring core decisions.
5. Outcome
Delivered a fully working prototype that met all assignment requirements, demonstrating engineering judgment, product thinking, and the ability to make deliberate tradeoffs under pressure.
6. Key Takeaways
- Time-boxing is about choosing what not to build as much as what to build.
- Domain correctness and type safety pay off immediately, even in prototypes.
- Clear architecture and explicit decisions make future iteration easier.
7. Technologies & Skills
- Next.js (App Router), React, TypeScript
- Zod (schema-first validation)
- Tailwind CSS, shadcn/ui
- EasyPost API
- Testing focused on domain logic and validation