Skip to content

armgit / kokon

Public Imported from GitHub
0

Edit photos by describing the change, on your own GPU. A free, open-source alternative to Nano Banana and ChatGPT image editing: photos stay on your computer, no daily limit. One installer for Windows, Mac and Linux sets up the best open model (Qwen-Image 2.1). MCP server for AI agents.

Site: download buttons fetch the installer directly, Mac Gatekeeper FAQ; README badge cache, example caption

Gabriele Lozupone44b1ed271aea
diff --git a/README.md b/README.md
index ac52b57..13c7898 100644
--- a/README.md
+++ b/README.md
@@ -14,7 +14,7 @@
<p align="center">
<a href="https://github.com/GabrieleLozupone/kokon/releases/latest"><img src="https://img.shields.io/github/v/release/GabrieleLozupone/kokon?style=flat-square&color=6b6b6b&labelColor=333&label=release" alt="Latest release"></a>
- <a href="https://github.com/GabrieleLozupone/kokon/releases"><img src="https://img.shields.io/github/downloads/GabrieleLozupone/kokon/total?style=flat-square&color=6b6b6b&labelColor=333" alt="Downloads"></a>
+ <a href="https://github.com/GabrieleLozupone/kokon/releases"><img src="https://img.shields.io/github/downloads/GabrieleLozupone/kokon/total?style=flat-square&cacheSeconds=3600&color=6b6b6b&labelColor=333" alt="Downloads"></a>
<img src="https://img.shields.io/badge/Windows-10%20%7C%2011-6b6b6b?labelColor=333&style=flat-square&logo=windows&logoColor=white" alt="Windows 10 and 11">
<img src="https://img.shields.io/badge/macOS-26%2B-6b6b6b?labelColor=333&style=flat-square&logo=apple&logoColor=white" alt="macOS 26 or newer">
<br>
@@ -24,8 +24,8 @@
<img src="https://img.shields.io/badge/Apple%20Silicon-32%20GB%20recommended%20(beta)-6b6b6b?labelColor=333&style=flat-square&logo=apple&logoColor=white" alt="Apple Silicon, 32 GB of unified memory recommended, beta">
<br>
<a href="#use-it-from-your-ai-agent"><img src="https://img.shields.io/badge/MCP-server%20included-6b6b6b?labelColor=333&style=flat-square" alt="MCP server included"></a>
- <a href="LICENSE"><img src="https://img.shields.io/github/license/GabrieleLozupone/kokon?style=flat-square&color=6b6b6b&labelColor=333" alt="License"></a>
- <a href="https://github.com/GabrieleLozupone/kokon/stargazers"><img src="https://img.shields.io/github/stars/GabrieleLozupone/kokon?style=flat-square&color=6b6b6b&labelColor=333" alt="Stars"></a>
+ <a href="LICENSE"><img src="https://img.shields.io/github/license/GabrieleLozupone/kokon?style=flat-square&cacheSeconds=3600&color=6b6b6b&labelColor=333" alt="License"></a>
+ <a href="https://github.com/GabrieleLozupone/kokon/stargazers"><img src="https://img.shields.io/github/stars/GabrieleLozupone/kokon?style=flat-square&cacheSeconds=3600&color=6b6b6b&labelColor=333" alt="Stars"></a>
</p>
<p align="center">
@@ -107,7 +107,7 @@ https://github.com/user-attachments/assets/8851c580-99b9-432a-82be-b6d42fa9a749
<p align="center">
<img src="docs/media/examples/fatto-in-casa.jpg" alt="A grandmother sprinkles parmesan over a miniature Colosseum made of pasta, standing on a tomato sauce river on her kitchen table, with Rome's rooftops at sunset through the window" width="860">
<br>
- <sub>One project from the demo video, made in six steps: generate the Colosseum, rebuild it out of pasta,
+ <sub>One project, six steps in Kokon: generate the Colosseum, rebuild it out of pasta,
add a tomato sauce river, generate the kitchen, combine the two, expand to 21:9.</sub>
</p>
diff --git a/docs/media/README.md b/docs/media/README.md
index 5c99d24..1c48a88 100644
--- a/docs/media/README.md
+++ b/docs/media/README.md
@@ -3,7 +3,7 @@
| File | What | Made with |
| --- | --- | --- |
| `examples/*.jpg` | Before/after pairs in the README (1200x600, two 600x600 halves) | Generated and edited with Kokon; prompts and seeds in `marketing/showcase/PROMPTS.md` |
-| `examples/fatto-in-casa.jpg` | The six-step project from the demo video | Kokon |
+| `examples/fatto-in-casa.jpg` | A six-step project (generate, edit, combine, expand) | Kokon |
| `screenshot-app.png` | The main window | A screenshot of the app |
The same example images are bundled in the app's welcome screen (`src/assets/showcase`). The launch
diff --git a/site/download.js b/site/download.js
new file mode 100644
index 0000000..2593011
--- /dev/null
+++ b/site/download.js
@@ -0,0 +1,16 @@
+// Point the download buttons straight at the installer of the latest GitHub release.
+// If the API can't be reached (offline, rate limit), they keep linking to the release page.
+(() => {
+ const links = document.querySelectorAll("a[data-dl]");
+ if (!links.length) return;
+ const PICK = { windows: /_x64-setup\.exe$/, mac: /_aarch64\.dmg$/ };
+ fetch("https://api.github.com/repos/GabrieleLozupone/kokon/releases/latest")
+ .then((r) => (r.ok ? r.json() : Promise.reject(r.status)))
+ .then((release) =>
+ links.forEach((a) => {
+ const asset = release.assets.find((x) => PICK[a.dataset.dl]?.test(x.name));
+ if (asset) a.href = asset.browser_download_url;
+ }),
+ )
+ .catch(() => {});
+})();
diff --git a/site/index.html b/site/index.html
index c58c108..64d2165 100644
--- a/site/index.html
+++ b/site/index.html
@@ -165,6 +165,14 @@
"text": "The beta installer is not code-signed yet, so SmartScreen warns about it. Click \"More info\" and then \"Run anyway\". The code is public and every download the app makes is checked against a pinned hash."
}
},
+ {
+ "@type": "Question",
+ "name": "macOS says Kokon cannot be opened. What do I do?",
+ "acceptedAnswer": {
+ "@type": "Answer",
+ "text": "The beta is not notarized by Apple yet, so macOS blocks it the first time. Try to open it once, then go to System Settings, Privacy & Security, scroll down and click \"Open Anyway\". You only do this once; in-app updates don't trigger it again."
+ }
+ },
{
"@type": "Question",
"name": "Does it work offline?",
@@ -215,8 +223,8 @@
<h1 class="rv d1">Edit photos by describing the change.</h1>
<p class="lede rv d2">Kokon runs Qwen-Image 2.1, the best open image-editing model, on your own GPU. One installer for Windows and Mac. No Python, no ComfyUI, no cloud, no account.</p>
<div class="ctas rv d3" id="download">
- <a class="btn primary" href="https://github.com/GabrieleLozupone/kokon/releases/latest" rel="noopener"><svg fill="currentColor"><use href="#win"/></svg>Download for Windows</a>
- <a class="btn ghost" href="https://github.com/GabrieleLozupone/kokon/releases/latest" rel="noopener"><svg fill="currentColor"><use href="#apple"/></svg>Download for macOS <span class="tag">BETA</span></a>
+ <a class="btn primary" href="https://github.com/GabrieleLozupone/kokon/releases/latest" rel="noopener" data-dl="windows"><svg fill="currentColor"><use href="#win"/></svg>Download for Windows</a>
+ <a class="btn ghost" href="https://github.com/GabrieleLozupone/kokon/releases/latest" rel="noopener" data-dl="mac"><svg fill="currentColor"><use href="#apple"/></svg>Download for macOS <span class="tag">BETA</span></a>
</div>
<p class="fine rv d3">Free and open source · Windows 10/11 with a 12 GB GPU · Apple Silicon Macs</p>
</div>
@@ -439,6 +447,7 @@
<details><summary>Is it an alternative to Photoshop Generative Fill?</summary><p>For many edits, yes: paint an area and describe what should be there, or remove, replace and add objects. It runs offline and costs nothing, but it is an AI editor, not a full layer-based image editor.</p></details>
<details><summary>Can I use the images commercially?</summary><p>Not with the default model. The app is open source (AGPL-3.0), but Qwen-Image 2.1 is released under the Qwen Research License: research and evaluation only, no commercial use without a license from the Qwen team. The optional upscaler is also non-commercial (CC BY-NC-SA 4.0).</p></details>
<details><summary>Windows says the app is unrecognized. Is it safe?</summary><p>The beta installer is not code-signed yet, so SmartScreen warns about it. Click &quot;More info&quot; and then &quot;Run anyway&quot;. The code is public and every download the app makes is checked against a pinned hash.</p></details>
+ <details><summary>macOS says Kokon cannot be opened. What do I do?</summary><p>The beta is not notarized by Apple yet, so macOS blocks it the first time. Try to open it once, then go to System Settings → Privacy &amp; Security, scroll down and click &quot;Open Anyway&quot;. You only do this once; in-app updates don&#39;t trigger it again.</p></details>
<details><summary>Does it work offline?</summary><p>Yes. After setup has downloaded the models, everything runs offline.</p></details>
</div>
</div>
@@ -450,8 +459,8 @@
<h2 class="rv d1" style="margin:0 auto">Describe it. Kokon makes it.</h2>
<p class="sec-lede rv d2" style="margin-left:auto;margin-right:auto">Free, open source, and yours to run.</p>
<div class="ctas rv d3">
- <a class="btn primary" href="https://github.com/GabrieleLozupone/kokon/releases/latest" rel="noopener"><svg fill="currentColor"><use href="#win"/></svg>Download for Windows</a>
- <a class="btn ghost" href="https://github.com/GabrieleLozupone/kokon/releases/latest" rel="noopener"><svg fill="currentColor"><use href="#apple"/></svg>Download for macOS <span class="tag">BETA</span></a>
+ <a class="btn primary" href="https://github.com/GabrieleLozupone/kokon/releases/latest" rel="noopener" data-dl="windows"><svg fill="currentColor"><use href="#win"/></svg>Download for Windows</a>
+ <a class="btn ghost" href="https://github.com/GabrieleLozupone/kokon/releases/latest" rel="noopener" data-dl="mac"><svg fill="currentColor"><use href="#apple"/></svg>Download for macOS <span class="tag">BETA</span></a>
<a class="btn ghost" href="https://github.com/GabrieleLozupone/kokon" rel="noopener"><svg fill="currentColor"><use href="#github"/></svg>Star on GitHub</a>
</div>
<a class="maker rv d3" href="https://gabrielelozupone.github.io/" rel="author">
@@ -569,5 +578,6 @@
});
})();
</script>
+<script src="/download.js" defer></script>
</body>
</html>