Skip to main content
Glama
README.md
# promptpaint

Make images for social media by chatting with an AI.
You tell Claude what you want. promptpaint makes the image on your own computer, in the colors, fonts and logo of your brand.

- **Offers, covers and carousels** in 4 formats: story (9:16), post (4:5), square (1:1) and cover (16:9).
- **Your brand first.** The first chat asks you about your business and makes your brand file. After that, every image uses it.
- **A visual editor.** Move and scale the parts of an image with the mouse. The AI sees your changes.
- **Memory.** Say "always put the logo at the top left" once. promptpaint remembers it in the next chats.
- **Recurring campaigns.** Save the posts that you make every week as a *playbook* and start them with one click.
- **Community gallery.** Find designs made by other people, and share yours with one pull request.
- **Private.** Images are made with the Chrome or Edge of your computer. Nothing goes to a server.

## Install: people who do not use a terminal

You need [Claude Desktop](https://claude.ai/download) and Google Chrome or Microsoft Edge.

1. Open the [latest release](https://github.com/molidestroyer/promptpaint/releases/latest) and download the `promptpaint-….mcpb` file.
2. Double-click the file. Claude Desktop opens and asks you to install promptpaint. Click **Install**.
3. Start a new chat in Claude and write: **"Make me a post with promptpaint"**.

Claude asks you some questions about your brand the first time. Your work is saved in the `promptpaint` folder in your user folder.

If the double-click does nothing, open Claude Desktop, go to **Settings → Extensions**, and drag the `.mcpb` file into that window.
If that also does not work, use the Windows install below.

## Install on Windows with one command (recommended on Windows)

On some Windows computers the `.mcpb` file does not open with Claude Desktop (Windows does not know the file type).
This install always works. You need [Node.js](https://nodejs.org) 20 or newer, [Git](https://git-scm.com), and Google Chrome or Microsoft Edge.

1. **Quit Claude Desktop completely.** Right-click the Claude icon near the clock and click **Quit**.
   If Claude Desktop is open during step 3, it can write its settings file again and remove the change.
2. Open **PowerShell** and run:

   ```powershell
   git clone https://github.com/molidestroyer/promptpaint.git $HOME\promptpaint-app
   cd $HOME\promptpaint-app
   npm install
   node bin\promptpaint.js install-claude
   ```

3. Open Claude Desktop. Start a new chat. In the **+** menu → **Connectors**, you see **promptpaint**.
4. Write: **"Make me a post with promptpaint"**.

`install-claude` adds promptpaint to every Claude Desktop settings file on the computer, and makes a backup of each file first
(`claude_desktop_config.json.<date>.bak`). It keeps all your other settings. To remove it: `node bin\promptpaint.js uninstall-claude`.

Where Claude Desktop keeps its settings on Windows (`install-claude` finds them for you):

| Claude Desktop | Settings file |
|---|---|
| Microsoft Store app (new versions) | `%LOCALAPPDATA%\Claude-Data\claude_<id>\claude_desktop_config.json` |
| Microsoft Store app (old versions) | `%LOCALAPPDATA%\Packages\Claude_<id>\LocalCache\Roaming\Claude\claude_desktop_config.json` |
| Installer from claude.ai | `%APPDATA%\Claude\claude_desktop_config.json` |

The Microsoft Store app does **not** read `%APPDATA%\Claude`. If you edit the file by hand, edit the one in `Claude-Data`.

To update later: quit Claude Desktop, then run `git pull` and `npm install` in the same folder, and open Claude Desktop again.

## Install: people who use a terminal

You need [Node.js](https://nodejs.org) 20 or newer, and Google Chrome or Microsoft Edge.

```bash
git clone https://github.com/molidestroyer/promptpaint.git
cd promptpaint
npm install                      # also builds the TypeScript
npm test
```

Connect it to your AI as an MCP server with the command `node <folder>/bin/promptpaint.js mcp`:

```bash
node bin/promptpaint.js install-claude     # Claude Desktop: adds it to claude_desktop_config.json (with a backup). Then restart Claude Desktop.
claude mcp add promptpaint -- node /full/path/to/promptpaint/bin/promptpaint.js mcp     # Claude Code
```

For other MCP clients (Cursor, VS Code, Gemini CLI, Claude Desktop by hand), add this to the MCP configuration of the client:

```json
{ "mcpServers": { "promptpaint": { "command": "node", "args": ["/full/path/to/promptpaint/bin/promptpaint.js", "mcp"] } } }
```

### Commands

```bash
node bin/promptpaint.js editor                     # open the visual editor
node bin/promptpaint.js list                       # components and their fields
node bin/promptpaint.js samples out                # one sample image of each component in the folder "out"
node bin/promptpaint.js render slide.json out.png  # one image from a slide file
node bin/promptpaint.js validate components/*/     # the gallery checks
```

A `slide.json` file:

```json
{
  "component": "carousel-hook-4x5",
  "props": { "kicker": "NEW", "title": "Big price drop|on *backpacks*", "image": "photos/backpack.jpg" },
  "adjust": { "title": { "y": -40, "scale": 1.1 } }
}
```

`*word*` shows the word in the accent color. `|` starts a new line. `adjust` moves, scales, turns or hides a part.

### Settings

| Variable | Use |
|---|---|
| `PROMPTPAINT_HOME` | Folder for your brand, campaigns and images. Default: `promptpaint` in your user folder. |
| `PROMPTPAINT_CHROME` | Full path of `chrome.exe` or `msedge.exe`, if promptpaint does not find it. |
| `PROMPTPAINT_PORT` | Port of the visual editor. Default: 4747 (or a free port). |

## Make a component

A component is a folder with two files:

- `manifest.json`: name, description, format, category, tags and fields.
- `template.html`: HTML and CSS only. Each field is `{{name}}`. Use `{{name|rich}}` for text with `*accent*` and `|`, and `{{name|list:chip}}` for a list separated by `|`.

Rules (`promptpaint validate` checks them, and the gallery uses the same checks):

- **No JavaScript.** Images are made with JavaScript off.
- Only `https:` and `data:` addresses. The page cannot open files of your computer or local servers.
- Give each part that a person can move a `data-layer-id` and a `data-layer-name`.
- Use the brand variables with a default: `var(--pp-accent, #ff5722)`, `--pp-primary`, `--pp-bg`, `--pp-text`, `--pp-font-heading`, `--pp-font-body`.
- Categories: `offer`, `cover`, `carousel`, `announcement`, `event`, `quote`, `real-estate`, `food`, `education`, `other`.
- No personal data: no names, phones, emails or local paths.

To share a component, ask the AI: *"share this design with the community"*. It needs the [GitHub CLI](https://cli.github.com) (`gh auth login --web`). Your token stays in `gh`. promptpaint never reads it.
The gallery is [promptpaint-gallery](https://github.com/molidestroyer/promptpaint-gallery).

## Support

promptpaint is free. If it helps you, you can buy me a coffee. If you do not, I will look like this:

<a href="https://buymeacoffee.com/molidestroyer"><img src="assets/support-sad.webp" alt="Miguel, sad, holding a box" width="160"></a>

[☕ buymeacoffee.com/molidestroyer](https://buymeacoffee.com/molidestroyer)

## License

[MIT](LICENSE)