In this dev stream, Seve dives deep into setting up a fake API for the TS Circuit snippet server. He grapples with Winterspec configuration, debugs TypeScript errors, and implements stateful middleware for the Vite development server. Highlights include fixing common params in Winterspec, adapting the Vite config to use plugins instead of proxies, and redesigning the snippet schema to better handle owner and name properties. Seve also touches on future plans for TS Circuit, including daily circuit designs and potential lab streams. Despite some "in the weeds" moments, Seve makes significant progress in getting the fake API functional, setting the stage for implementing save functionality and additional pages in future streams
Share this post
Battling Winter(spec) Blues: Fake API Adventures
blog.tscircuit.com
Battling Winter(spec) Blues: Fake API Adventures
Seve wrestles with Winterspec, Zustand, and TypeScript to build a fake API for the TS Circuit snippet server
Sep 26, 2024
Battling Winter(spec) Blues: Fake API Adventures