X Bookmarks — 2024 KW26: AI SDK JSON Responses and 3D Mockups

June 27, 2024

|bookmarks

by Florian Narr

X Bookmarks — 2024 KW26: AI SDK JSON Responses and 3D Mockups

@lgrammel — toJsonResponse() in AI SDK 3.2.2

toJsonResponse() helper for generateObject (AI SDK 3.2.2)

Convert result from generateObject into a JSON HTTP response

Neat addition. generateObject from the Vercel AI SDK returns a typed object, but if you're building a route handler that serves it over HTTP you previously had to manually serialize and set the content-type header yourself. toJsonResponse() wraps that into one call. Small surface area, but removes a bit of boilerplate that tends to look different in every codebase. If you're using the AI SDK for structured extraction in an API route, this is the right way to do it now.

@Abmankendrick — Morflax: 3D device mockups in the browser

UI/UX Designers, you can generate 3D beautiful mockups, in seconds.

I found this browser tool, Morflax helps you create elegant downloadable device mockups for your UI designs.

Website → https://things.morflax.com

Honestly saved this as a reference for the next time I need a quick product screenshot that doesn't look like it came from a 2015 template site. Morflax runs in the browser, no install, and outputs clean 3D device frames you can download. Not an engineering tool, but it's the kind of thing you reach for once a quarter and are glad you bookmarked.