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
import path from "node:path";
import { describe, expect, it } from "vitest";
import { localDataBase } from "../src/service.js";
// Must match the service's dirs::data_local_dir(), or the MCP server misses service.json.
describe("data folder", () => {
it("follows each system's local data folder", () => {
expect(localDataBase("win32", { LOCALAPPDATA: "C:\Users\me\AppData\Local" }, "C:\Users\me")).toBe("C:\Users\me\AppData\Local");
expect(localDataBase("darwin", {}, "/Users/me")).toBe(path.join("/Users/me", "Library", "Application Support"));
expect(localDataBase("linux", {}, "/home/me")).toBe(path.join("/home/me", ".local", "share"));
expect(localDataBase("linux", { XDG_DATA_HOME: "/data/xdg" }, "/home/me")).toBe("/data/xdg");
expect(localDataBase("linux", { XDG_DATA_HOME: "relative" }, "/home/me")).toBe(path.join("/home/me", ".local", "share"));
});
});