🎨 SketchAPI Documentation

Table of Contents


πŸ“š API Reference


⚑ 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.

  1. Visit our Pricing page
  2. Choose the plan that suits your needs
  3. Sign up and complete the purchase
  4. 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

Components & UI


πŸ“š What’s Next?

1. Explore Configuration Options

2. Add Components

3. Learn About Tools


πŸ’‘ Need Help?