Skip to main content

Overview

The layermetry SDK provides two main components for building powerful editing experiences in your React/Next.js applications:

ImageEditor

Create stunning images with filters, effects, text, and shapes

VideoEditor

Edit videos with timeline, effects, text overlays, and export

Common Concepts

License Validation

Both components require a valid license key for operation:
The SDK validates your license before rendering the editor UI. Validation checks:
  • License expiration date
  • Revocation status
  • Active status
  • Domain allowlist
Default API: https://api.kloudleads.com/license/validate Custom API Example:

Dynamic Imports (Critical)

Both editors use browser-only APIs and must be imported dynamically with ssr: false:
Server-Side Rendering (SSR) is not supported. Always use dynamic imports with ssr: false to avoid build errors.

Theme Customization

Both editors support extensive theming via the theme prop:
Available Theme Keys:

Callbacks

Both editors provide callbacks for key events:

Export Callback

Called when user exports their work:
Example:

Close Callback

Called when user closes the editor:
Example:

Template System

Both editors support saving and loading templates:
Example:

Brand Presets

Both editors support brand presets for consistent styling:

Headless Mode

Run editors programmatically without UI:

Type Definitions

EditorItem

Core data structure for all canvas elements:

Next Steps

ImageEditor API

Complete ImageEditor props and methods

VideoEditor API

Complete VideoEditor props and methods