Free open-source image editor for the browser
Keep the README intro and leave the demo route undocumented
Rodrigo5933f758e2e5
diff --git a/API.md b/API.mdindex f9fbac7..a305458 100644--- a/API.md+++ b/API.md@@ -28,7 +28,7 @@ These methods accept browser `File` objects and return `Promise<void>`. Await th| `openFile(file)` | Opens one image or imports one Camera Raw XMP file. || `openFiles(files)` | Opens the first recognized image, then imports recognized XMP files in order. Unsupported files are ignored. || `loadImage(file)` | Loads a file as an image, replacing the current document and its history. |-| `loadUrl(url)` | Fetches an image from a same-origin URL and loads it; `/demo` uses it for the bundled sample. |+| `loadUrl(url)` | Fetches an image from a same-origin URL and loads it. || `importXmp(file)` | Applies supported Camera Raw adjustments as one undoable edit. |Loading calls are queued. XMP import is skipped if no document is ready; an invalid XMP import can reject without blocking later loads. Image decoding failures appear in the workspace's error state and do not reject the loading promise. Check `getState().documentId` to confirm success. Loading completion does not guarantee the preview has rendered.diff --git a/README.md b/README.mdindex 5382585..d1c5c0d 100644--- a/README.md+++ b/README.md@@ -1,6 +1,7 @@# OpenLight-**An open-source photo editor for the browser.** Try it at [openlight.app](https://openlight.app), or start with a sample photo at [openlight.app/demo](https://openlight.app/demo).+**An open-source photo editor for the browser, built with [vgpu.sh](https://vgpu.sh).**+Try it at [openlight.app](https://openlight.app).Image processing runs on your own GPU with WebGPU. Photos never leave your device.diff --git a/public/llms.txt b/public/llms.txtindex c3c51ae..b554dbf 100644--- a/public/llms.txt+++ b/public/llms.txt@@ -3,7 +3,6 @@> OpenLight is a free, open-source photo editor that runs entirely in the browser on WebGPU. Photos stay on the device. Every editing action is also exposed as a JavaScript API on `window.openlight`, so an AI agent with browser access can open, edit, and export images programmatically.Site: https://openlight.app-Demo with a sample photo already loaded: https://openlight.app/demoSource (MIT): https://github.com/roprgm/openlight## Using the API from a browser agent@@ -12,7 +11,7 @@ Open https://openlight.app in a WebGPU-capable browser (recent Chrome, Edge, Saf```jsconst editor = window.openlight;-await editor.loadImage(file); // a File; or loadUrl("/images/demo.jpg") for a same-origin URL+await editor.loadImage(file); // a File; loadUrl(url) accepts a same-origin URLeditor.setAdjustments({ exposure: 0.5, contrast: 10, highlights: -30, shadows: 20, vibrance: 15 });editor.setToneCurve([{ x: 0, y: 0 }, { x: 0.25, y: 0.2 }, { x: 0.75, y: 0.8 }, { x: 1, y: 1 }]);editor.addLayer("mask"); // linear gradient mask; also "details", "exposure", "color-mixer", "vignette"