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.
TypeScript ai-photo-editorcomfyui-alternativegenerative-fillimage-editingimage-generationinpaintinglinuxlocal-aimacosmcpmcp-servernano-banana-alternativeofflinephoto-editorprivacyqwen-imageqwen-image-2-1stable-diffusion-cppvulkanwindows
video: Product Hunt gallery slides (1270x760), npm run ph
Gabriele Lozupone22b0e1ff43f7
diff --git a/marketing/video/package.json b/marketing/video/package.jsonindex 7b3d0a9..a3bc66e 100644--- a/marketing/video/package.json+++ b/marketing/video/package.json@@ -7,7 +7,8 @@"studio": "remotion studio","render": "remotion render KokonLaunch out/kokon-launch.mp4","still": "remotion still",- "reels": "remotion render ReelRemove out/reels/reel-remove.mp4 && remotion render ReelSeason out/reels/reel-season.mp4 && remotion render ReelText out/reels/reel-text.mp4"+ "reels": "remotion render ReelRemove out/reels/reel-remove.mp4 && remotion render ReelSeason out/reels/reel-season.mp4 && remotion render ReelText out/reels/reel-text.mp4",+ "ph": "remotion still ph-1-hero out/ph/ph-1-hero.png && remotion still ph-2-remove out/ph/ph-2-remove.png && remotion still ph-3-season out/ph/ph-3-season.png && remotion still ph-4-text out/ph/ph-4-text.png && remotion still ph-5-replace out/ph/ph-5-replace.png && remotion still ph-6-compare out/ph/ph-6-compare.png && remotion still ph-7-runs out/ph/ph-7-runs.png"},"dependencies": {"@fontsource-variable/inter": "^5.3.0",diff --git a/marketing/video/public/img/app-screenshot.webp b/marketing/video/public/img/app-screenshot.webpnew file mode 100644index 0000000..67290ceBinary files /dev/null and b/marketing/video/public/img/app-screenshot.webp differdiff --git a/marketing/video/src/Root.tsx b/marketing/video/src/Root.tsxindex cf0dd69..1e3bec8 100644--- a/marketing/video/src/Root.tsx+++ b/marketing/video/src/Root.tsx@@ -12,6 +12,7 @@ import { Banner } from "./scenes/Banner";import { Update010, UPDATE_FRAMES } from "./scenes/Update010";import { LENGTH } from "./app/timeline";import { REELS, ReelScene, reelFrames } from "./scenes/Reels";+import { PH_SLIDES } from "./scenes/ProductHunt";const withPreload = (C: ComponentType) => () => (<>@@ -39,6 +40,9 @@ export function Root() {{Object.entries(REELS).map(([id, r]) => (<Composition key={id} id={id} component={withPreload(() => <ReelScene r={r} />)} durationInFrames={reelFrames(r)} fps={30} width={1080} height={1920} />))}+ {Object.entries(PH_SLIDES).map(([id, C]) => (+ <Composition key={id} id={id} component={withPreload(() => <>{C()}</>)} durationInFrames={1} fps={30} width={1270} height={760} />+ ))}<Composition id="Banner" component={withPreload(Banner)} durationInFrames={1} fps={30} width={2560} height={1440} /></>);diff --git a/marketing/video/src/scenes/ProductHunt.tsx b/marketing/video/src/scenes/ProductHunt.tsxnew file mode 100644index 0000000..221e567--- /dev/null+++ b/marketing/video/src/scenes/ProductHunt.tsx@@ -0,0 +1,142 @@+// Product Hunt gallery (1270×760, the size PH shows): one still per slide, rendered with+// `npm run ph`. The same message as kokon.app: Nano Banana-style edits on your own computer,+// a before/after per edit, the comparison with the cloud and ComfyUI, and what it runs on.+import type { ReactNode } from "react";+import { AbsoluteFill, Img, staticFile } from "remotion";+import { PROMPTS } from "../app/fixtures";+import { Mark } from "../app/Mark";++const font = '"Inter Variable", Inter, sans-serif';+const INK = "#f6f6f3";+const DIM = "rgba(240,240,240,0.66)";++function Frame({ bg, children }: { bg?: string; children: ReactNode }) {+ return (+ <AbsoluteFill style={{ background: "#070707", fontFamily: font, color: INK, overflow: "hidden" }}>+ {bg && <Img src={staticFile(`img/${bg}`)} style={{ position: "absolute", inset: -60, width: 1390, height: 880, objectFit: "cover", filter: "blur(50px) brightness(0.35) saturate(1.2)" }} />}+ {children}+ <div style={{ position: "absolute", right: 34, bottom: 26, display: "flex", alignItems: "center", gap: 10, fontSize: 20, fontWeight: 620, color: DIM }}>+ <Mark size={20} color={DIM} />+ kokon.app+ </div>+ </AbsoluteFill>+ );+}++function Title({ kicker, children, top = 54 }: { kicker?: string; children: ReactNode; top?: number }) {+ return (+ <div style={{ position: "absolute", left: 60, right: 60, top, textAlign: "center" }}>+ {kicker && <div style={{ fontSize: 17, fontWeight: 650, letterSpacing: "0.16em", textTransform: "uppercase", color: DIM }}>{kicker}</div>}+ <div style={{ marginTop: kicker ? 10 : 0, fontSize: 50, fontWeight: 700, letterSpacing: "-0.04em", lineHeight: 1.05 }}>{children}</div>+ </div>+ );+}++/** Before and after side by side, the prompt under them. */+function Pair({ before, after, mode, prompt, kicker, title }: { before: string; after: string; mode: string; prompt: string; kicker: string; title: string }) {+ const W = 560;+ const H = 400;+ const shot = (id: string, label: string) => (+ <div style={{ position: "relative", width: W, height: H, borderRadius: 18, overflow: "hidden", boxShadow: "0 0 0 1px rgba(255,255,255,0.12), 0 24px 70px rgba(0,0,0,0.55)" }}>+ <Img src={staticFile(`img/${id}.jpg`)} style={{ width: "100%", height: "100%", objectFit: "cover" }} />+ <span style={{ position: "absolute", top: 14, left: 14, padding: "5px 12px", borderRadius: 999, background: "rgba(10,10,10,0.6)", fontSize: 16, fontWeight: 600 }}>{label}</span>+ </div>+ );+ return (+ <Frame bg={`${after}.jpg`}>+ <Title kicker={kicker}>{title}</Title>+ <div style={{ position: "absolute", top: 196, left: 0, right: 0, display: "flex", justifyContent: "center", gap: 30 }}>+ {shot(before, "Before")}+ {shot(after, "After")}+ </div>+ <div style={{ position: "absolute", top: 628, left: 75, right: 75, display: "flex", alignItems: "center", gap: 14, padding: "14px 18px", borderRadius: 20, background: "rgba(22,22,22,0.88)", boxShadow: "0 0 0 1px rgba(255,255,255,0.12)" }}>+ <span style={{ padding: "5px 12px", borderRadius: 999, background: "rgba(255,255,255,0.1)", fontSize: 16, fontWeight: 600 }}>{mode}</span>+ <span style={{ fontSize: 19, color: "#e8e8e5" }}>{prompt}</span>+ </div>+ </Frame>+ );+}++function Hero() {+ return (+ <Frame bg="street-removed.jpg">+ <div style={{ position: "absolute", left: 64, top: 0, bottom: 0, width: 470, display: "flex", flexDirection: "column", justifyContent: "center" }}>+ <Mark size={58} color={INK} />+ <div style={{ marginTop: 26, fontSize: 58, fontWeight: 720, letterSpacing: "-0.045em", lineHeight: 1.02 }}>Edit photos by describing the change.</div>+ <div style={{ marginTop: 20, fontSize: 23, lineHeight: 1.4, color: DIM }}>Like Nano Banana, but on your own computer. Free, private, no limits. We pick the model and set it up for your GPU.</div>+ </div>+ <div style={{ position: "absolute", left: 580, top: 120, width: 820, height: 502, borderRadius: 16, overflow: "hidden", boxShadow: "0 0 0 1px rgba(255,255,255,0.14), 0 40px 120px rgba(0,0,0,0.7)" }}>+ <Img src={staticFile("img/app-screenshot.webp")} style={{ width: "100%", height: "100%", objectFit: "cover", objectPosition: "0 0" }} />+ </div>+ </Frame>+ );+}++const ROWS: [string, string, string, string][] = [+ ["Your photos stay on your computer", "Yes", "No, uploaded", "Yes"],+ ["Free, no limits", "Yes, it's your GPU", "Daily limits or a subscription", "Yes"],+ ["Works offline", "Yes", "No", "Yes"],+ ["Setup", "One installer", "An account", "Python, nodes, model files"],+ ["Who picks the model and settings", "Kokon, tested for your GPU", "The service", "You"],+ ["Edit with one sentence", "Yes", "Yes", "After building a workflow"],+];++function Compare() {+ const cols = "300px 250px 270px 290px";+ return (+ <Frame>+ <Title kicker="Compare">Easy like the cloud. Private like your PC.</Title>+ <div style={{ position: "absolute", top: 170, left: 0, right: 0, display: "flex", justifyContent: "center" }}>+ <div style={{ borderRadius: 18, overflow: "hidden", boxShadow: "0 0 0 1px rgba(255,255,255,0.12)", background: "rgba(255,255,255,0.03)" }}>+ <div style={{ display: "grid", gridTemplateColumns: cols, fontSize: 18, fontWeight: 650, color: DIM }}>+ <div style={{ padding: "16px 20px" }} />+ <div style={{ padding: "16px 20px", color: INK, background: "rgba(255,255,255,0.06)" }}>Kokon</div>+ <div style={{ padding: "16px 20px" }}>ChatGPT, Gemini (Nano Banana)</div>+ <div style={{ padding: "16px 20px" }}>ComfyUI</div>+ </div>+ {ROWS.map((r) => (+ <div key={r[0]} style={{ display: "grid", gridTemplateColumns: cols, fontSize: 18, borderTop: "1px solid rgba(255,255,255,0.1)" }}>+ <div style={{ padding: "15px 20px", color: "rgba(240,240,240,0.8)" }}>{r[0]}</div>+ <div style={{ padding: "15px 20px", fontWeight: 650, background: "rgba(255,255,255,0.06)" }}>{r[1]}</div>+ <div style={{ padding: "15px 20px", color: "rgba(240,240,240,0.55)" }}>{r[2]}</div>+ <div style={{ padding: "15px 20px", color: "rgba(240,240,240,0.55)" }}>{r[3]}</div>+ </div>+ ))}+ </div>+ </div>+ </Frame>+ );+}++function Runs() {+ const items: [string, string][] = [+ ["Windows, Mac, Linux", "One installer each. No Python, no ComfyUI."],+ ["NVIDIA, AMD, Intel, Apple Silicon", "12 GB of VRAM (8 GB in beta) or an M-series Mac."],+ ["Private by design", "Photos and prompts never leave your computer. Private mode keeps nothing."],+ ["Works with your AI agent", "Built-in MCP server: Claude Code or Cursor make images on your GPU."],+ ["Free and open source", "AGPL-3.0. Images for non-commercial use (model license)."],+ ];+ return (+ <Frame bg="cabin-winter.jpg">+ <Title kicker="Runs on the computer you have">Free, private, and no limits.</Title>+ <div style={{ position: "absolute", top: 172, left: 170, right: 170, display: "grid", gap: 11 }}>+ {items.map(([h, t]) => (+ <div key={h} style={{ padding: "13px 24px", borderRadius: 16, background: "rgba(18,18,18,0.8)", boxShadow: "0 0 0 1px rgba(255,255,255,0.1)" }}>+ <div style={{ fontSize: 22, fontWeight: 680 }}>{h}</div>+ <div style={{ marginTop: 4, fontSize: 18, color: DIM }}>{t}</div>+ </div>+ ))}+ </div>+ </Frame>+ );+}++export const PH_SLIDES: Record<string, () => ReactNode> = {+ "ph-1-hero": Hero,+ "ph-2-remove": () => <Pair before="street" after="street-removed" mode="Remove" prompt={PROMPTS.remove} kicker="Paint an area" title="Only that area changes." />,+ "ph-3-season": () => <Pair before="cabin" after="cabin-winter" mode="Edit" prompt={PROMPTS.winter} kicker="One sentence" title="Change the season, the light, the weather." />,+ "ph-4-text": () => <Pair before="bakery" after="bakery-text" mode="Edit" prompt={PROMPTS.text} kicker="Text in images" title="It spells the words right." />,+ "ph-5-replace": () => <Pair before="room" after="room-sofa" mode="Edit" prompt={PROMPTS.replace} kicker="Replace, add, restyle, expand" title="Any edit, in plain words." />,+ "ph-6-compare": Compare,+ "ph-7-runs": Runs,+};