mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-11-09 05:26:24 +09:00
Before we checked looked for all asset ids in props, loaded assets and replaced ids with resolved assets. This is all on server. We faced a few problems with it. - requires to maintain two versions of types: stored in db and resolved for client - easy to break project by writing to db wrong version Here I provide to sdk both props and assets and resolve on client with almost same amount of code. Also replaced store setter with context, see https://github.com/webstudio-is/webstudio-designer/issues/213
Webstudio SDK
Webstudio SDK is a TypeScript API that lets you use your Webstudio site or some components in your custom codebase or just render a complete Remix Document. It is currently under development, but feel free to play with the the current landing site