TypeScript Crude Export Workflow Streaming Dashboard with Vercel AI SDK
Port authority managers and trading executives require real-time streaming updates of crude export permit applications, vessel status, and operational alerts. Build a full-stack TypeScript streaming web application using Vercel AI SDK. The application leverages AI SDK's `streamText` and `useChat` hooks with structured JSON schema streaming (`streamObject`) to provide dynamic real-time status updates, bilingual contract summaries, and immediate compliance verification for oil shipments.
What you are building
The core problem, expected build, and operating context for this challenge.
Build a real-time streaming TypeScript operations dashboard for crude exports using Vercel AI SDK.
How work is evaluated
Evaluates valid Zod object streaming and frontend payload serialization.
Challenge datasets
Public datasets, plus the private datasets you have access to.
How submissions are scored
These dimensions define what the evaluator checks and which criteria separate a passable run from a strong one.
schema_validation_passed
Ensure output conforms to Zod permit schema.
This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.
time_to_first_token_ms
Latency to start streaming object tokens. • target: 250 • range: 0-1000
This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.
What you should walk away with
Implement structured object streaming with Vercel AI SDK `streamObject`.
Build dynamic UI client components reacting to live streaming AI outputs.
Handle bilingual Arabic/English document summary streaming.
Reference links and supporting material
Export permit application data structures for TypeScript streaming validation.
Challenge setup
Evaluates valid Zod object streaming and frontend payload serialization.
Challenge input
JSON with application_id and vessel_name
AI SDK
Vercel's standard library for TypeScript AI streaming.
Evaluated output
JSON matching Zod permit validation schema
- Ensure output conforms to Zod permit schema.
- Latency to start streaming object tokens. • target: 250 • range: 0-1000
- Benchmark: Vercel-Streaming-Bench
- Time To First Token Ms target: 250
- 1 public reference case
- JavaScript execution harness
- javascript sandbox (unavailable on Versalist)
Summary shows the first task, up to three tools, and up to three evidence items. Open the technical recipe to view all configured items.
View technical recipe
Configured tools
- Vercel AI SDK · Required
- Hamming · Optional
- Aim · Optional
- Vercel AI SDK · Required
Evaluation contract
- schema_validation_passed · Weight 1
- time_to_first_token_ms · Weight 1
Metrics
- time_to_first_token_ms · Target 250
Benchmarks
- Vercel-Streaming-Bench
- general
Reference cases
- 1 public reference case
Workflow tasks
- Task 1
Input: JSON with application_id and vessel_name
Output: JSON matching Zod permit validation schema
Execution harness: JavaScript
Evaluation tools
- AI SDK · Streaming Engine
Recipe freeze marker
No recipe freeze time is recorded.