π¨ SketchAPI Documentation
Table of Contents
- π API Reference
- β‘ Installation
- π Basic Usage
- π Getting an API Key
- π§© Components & UI
- π Whatβs Next?
- π‘ Need Help?
π API Reference
- @sketchapi/sketchpad
- @sketchapi/doc
- @sketchapi/layer
- @sketchapi/fill
- @sketchapi/stroke
- SketchAPI Cloud
β‘ Installation
Install SketchAPI via yarn:
yarn add @sketchapi/sketchpad π Basic Usage
Get started with just a few lines of code
import { Sketchpad } from '@sketchapi/sketchpad'
const sketchpad = new Sketchpad(config)
document.body.appendChild(sketchpad)
await sketchpad.load({
onprogress: (e) => console.log(e.loaded / e.total),
onload: () => console.log('loaded'),
onerror: (e) => console.error(e),
signal: controller.signal
}) π Getting an API Key
An API key is required to unlock premium features like removing ads and watermarks and enabling vector file sharing.
- Visit our Pricing page
- Choose the plan that suits your needs
- Sign up and complete the purchase
- Receive your API key via email
π§© Components & UI
Core UI components include:
- π€ Export pane - Save and share your work
- π― Primary toolbar - Quick access to essential tools
- βοΈ Settings pane - Customize your workspace
πΎ Export Formats
Supported export options:
- πΈ Raster formats (JPEG, PNG) - Perfect for web sharing
- β‘ Vector formats (PDF, SVG) - Ideal for scalable graphics
- π Native SKETCHPAD format - Preserve all editing capabilities