@fastlabai/design-editor 1.0.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Fastlab
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,66 @@
1
+ # @fastlabai/design-editor
2
+
3
+ [![npm version](https://img.shields.io/npm/v/@fastlabai/design-editor.svg)](https://www.npmjs.com/package/@fastlabai/design-editor)
4
+ [![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
5
+ [![CI](https://github.com/fastlabai/design-editor/actions/workflows/ci.yml/badge.svg)](https://github.com/fastlabai/design-editor/actions/workflows/ci.yml)
6
+
7
+ An open-source image design editor for React and Next.js. Plug in your own
8
+ media library, fonts, and storage backend via simple provider interfaces.
9
+
10
+ ![Design Editor screenshot](./screenshot.png)
11
+
12
+ ## Features
13
+
14
+ - Canvas-based image design editor — layers, shapes, text, stickers
15
+ - Background removal (via optional `@imgly/background-removal` peer dep)
16
+ - Undo / redo, zoom / pan, autosave
17
+ - Themable via CSS variables — bring your own colors
18
+ - TypeScript-first, strict types
19
+ - Next.js App Router compatible (components ship with `'use client'`)
20
+ - ~150 KB gzipped (excluding React and Fabric.js)
21
+
22
+ ## Install
23
+
24
+ ```bash
25
+ npm install @fastlabai/design-editor
26
+ # optional — enables in-browser background removal
27
+ npm install @imgly/background-removal
28
+ ```
29
+
30
+ ## Use
31
+
32
+ ```tsx
33
+ import { DesignEditor } from '@fastlabai/design-editor'
34
+ import '@fastlabai/design-editor/theme.css'
35
+
36
+ export default function App() {
37
+ return <DesignEditor />
38
+ }
39
+ ```
40
+
41
+ ## Customize
42
+
43
+ ```tsx
44
+ <DesignEditor
45
+ mediaProvider={myMediaProvider}
46
+ fontProvider={myFontProvider}
47
+ persistenceProvider={myPersistenceProvider}
48
+ onExport={async (blob) => uploadToS3(blob)}
49
+ onBack={() => router.push('/dashboard')}
50
+ />
51
+ ```
52
+
53
+ See the [providers docs](https://fastlabai.github.io/design-editor/providers/media)
54
+ for the interfaces.
55
+
56
+ ## Docs & playground
57
+
58
+ - Full documentation — <https://fastlabai.github.io/design-editor>
59
+ - Live playground — <https://fastlabai.github.io/design-editor/playground>
60
+ - Examples — [`examples/`](./examples) (Next.js App Router, Pages Router, Vite, custom providers)
61
+
62
+ ## License
63
+
64
+ MIT © Fastlab.
65
+
66
+ Engine code is forked from [layerhub-io/layerhub-ce](https://github.com/layerhub-io/layerhub-ce) (MIT).