Skip to content

SDK

Install from npm:

Terminal window
npm i @getdesign/sdk
import { getDesign, streamDesign } from "@getdesign/sdk";
const md = await getDesign("https://stripe.com");
for await (const chunk of streamDesign("https://stripe.com")) {
process.stdout.write(chunk);
}
await getDesign("https://stripe.com", {
viewport: "1440x900",
});

Full auto-generated reference lives at SDK reference.