photopea-embedded-editor
Skill by sickn33
Embed Photopea in web apps and control it from JavaScript using photopea.js. Built for developers who want image editing inside their own product, covering file I/O, layers, text, filters and exports.
Install photopea-embedded-editor
Built from the published package, never by AI.
git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.claude/skills && cp -r /tmp/agentic-awesome-skills/skills/photopea-embedded-editor ~/.claude/skills/photopea-embedded-editorRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install photopea-embedded-editor in Claude Code
git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/agentic-awesome-skills/skills/photopea-embedded-editor ~/.gemini/antigravity-cli/skills/photopea-embedded-editorAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install photopea-embedded-editor in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
Photopea Embedded Editor is a skill for embedding Photopea in a web page or web app and controlling it from JavaScript with photopea.js. It covers embedding, file input and output, scripting, exporting, layers, text, and filters, along with selected Photoshop-like scripting patterns. The source includes example scripts that rename text layers, find and replace text, export each layer as a PNG, duplicate layers into a grid, add a watermark from a URL, and dump layer data as JSON.
The skill is aimed at developers who want to add image editing to their product using Photopea as the editing engine. It asks for a reviewed messaging wrapper or carefully scoped Live Messaging, with origin and source checks, exact target origins, serialized operations, and bounded timeouts. It also warns that embedding loads a third-party application, so its terms and network behavior should be reviewed before loading confidential files, and that destructive scripts should run on an approved duplicate.
Written from the project's SKILL.md and checked against it.
What it can do
- EmbeddingEmbeds Photopea in a web page or web app using photopea.js.
- File I/OOpens files from a host page and handles file input and output.
- ScriptingRuns Photopea scripts from the host page through runScript.
- ExportingExports documents and individual layers, such as one PNG per layer.
- Layers and textRenames, finds and replaces text, and reads layer data as JSON.
- FiltersCovers filters, colors, selections and paths in its scripting patterns.
What you need
- A Photopea account or session, as the source notes account and session state
Try asking
- Embed Photopea in my web app and open a file from a URL
- Export each layer of my open Photopea document as a PNG
- Find and replace text across all text layers in my document
Good to know
- Remote URL loading depends on browser CORS behavior, network availability and the user's Photopea session.
- Export behavior can vary by document size, browser memory limits and the formats the active Photopea runtime supports.
- The third-party wrapper source is not bundled, so its version must be pinned and inspected before enabling document control.
- A wrapper alone does not establish message authenticity. Origin and source must be verified.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/photopea-embedded-editor/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md7 KB -
references/detailed-guide.md46 KB
Alternatives to photopea-embedded-editor
All alternatives →PaperBanana generates publication-quality academic diagrams from a paper's methodology text and figure caption. It is aimed at researchers preparing figures for venues such as NeurIPS, ICML, and ACL.
Creates a monochrome technical wireframe design system for dark diagnostic interfaces. It covers layout, typography, info labels, widgets and an exploded wireframe centerpiece. It is for designers and developers building teardown, systems dashboard or specification-style screens.
Guides an AI assistant through embedding interactive Spline.design 3D scenes in web projects. It covers vanilla, React, Next.js, Vue and iframe setups, for developers adding 3D to websites.
Code Slice Hero is a HyperFrames headline block. A tiled surface flips cell by cell to reveal a second headline behind the first, at 1920×1080 and 8 seconds.
Generates patent-office-compliant figures and converts drawings through the PatentFig AI API. Built for patent filers who need USPTO or EPO line art, CAD-ready vectors, or filing-ready TIFF, PDF, or PNG files.
Creates a framed dark technical design system for AI assistants, using border-gradient shells, asymmetrical grid panels, and mono labels. Suited to premium, instrument-like interfaces that need visible boundaries. Published by MengTo.
Compare with paperbanana, technical-wireframe-info-layout or spline-3d-integration
photopea-embedded-editor: common questions
What does Photopea Embedded Editor do?
It is a skill for embedding Photopea in a web app and controlling its documents from JavaScript with photopea.js. The source covers embedding, file I/O, scripting, exporting, layers, text and filters.
Is it safe to run scripts in an embedded Photopea?
The source says runScript executes scripts inside the embedded document context, so only scripts that are understood and used with user-approved files should run. It also says to work on an approved duplicate for destructive scripts.
How should dynamic values be passed to runScript?
The source says to serialize dynamic values with JSON.stringify and never concatenate user-provided URLs, layer names or text directly into Photopea script source.
How do I install photopea-embedded-editor?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is photopea-embedded-editor free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is photopea-embedded-editor safe to use?
It scores 92 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to photopea-embedded-editor?
Similar skills: paperbanana, technical-wireframe-info-layout, spline-3d-integration, code-slice-hero.
