Skip to content

Repository files navigation

SD Prompt Viewer

A Stable Diffusion Prompt Reader designed for macOS and Windows with a dark-themed UI.

screenshot

Features

  • Drag & Drop: Easily load images by dragging them into the app.
  • Broad Format Support: Reads metadata from PNG, JPEG, and WebP files.
  • Workflow Support: Native compatibility for Automatic1111 and ComfyUI generation data.
  • Smart View Modes:
    • Rendered: View the final prompt with wildcards resolved.
    • Source: View the original dynamic template.
  • One-Click Copy: Quickly copy positive prompts, negative prompts, or generation attributes.
  • Clean UI: Modern dark mode interface.

Installation

Ensure you have Node.js installed.

# Clone the repository
git clone https://github.com/azyu/sd-prompt-viewer.git

# Go into the app directory
cd sd-prompt-viewer

# Install dependencies
npm install

Usage

Development Mode

npm start

Build Application

npm run make

Automated Builds (GitHub Actions)

This repository uses GitHub Actions to automatically build for:

  • Windows (.exe, .zip)
  • macOS (.zip)
  • Linux (.deb, .rpm, .zip)

Artifacts are generated on every push to main and can be downloaded from the "Actions" tab in GitHub.

Technology Stack

  • Electron: Cross-platform desktop framework.
  • Vanilla JS: Lightweight core logic.
  • CSS3: Modern flexbox/grid layouts and variables for styling.

License

ISC

Troubleshooting

macOS: "App is damaged" or cannot be opened

On macOS, locally built unsigned apps may be blocked by Gatekeeper. To fix this, remove the quarantine attribute:

xattr -cr out/sd-prompt-viewer-darwin-arm64/SD\ Prompt\ Viewer.app
# OR
xattr -cr /path/to/your/SD\ Prompt\ Viewer.app

Disclaimer

This application was created by me and Antigravity (Gemini 3 Pro). Please do not expect the highest code quality in this repo (yet).

This project isn't endorsed by Google and doesn't reflect the views or opinions of Google or anyone officially involved in producing or managing Google/Antigravity properties.

About

View metadata and prompts embedded in images generated by Stable Diffusion WebUI and ComfyUI

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages