SDKs & Developer Tools
4. Developer SDKs
4.1 Available SDKs
4.2 Installation
npm install @knowcode/sdkimport { KnowCodeSDK } from "@knowcode/sdk";
const sdk = new KnowCodeSDK({ apiKey: process.env.KNOWCODE_API_KEY });
async function run() {
const code = await sdk.generateFromDesign("https://figma.com/design/123", {
framework: "react",
responsive: true,
});
console.log(code);
}
run();4.3 Core Methods
4.4 CI/CD Integration
4.5 Error Handling & Rate Limits
4.6 Security & Best Practices
Last updated