How hari-haran-a/genai-image-editor works
This is a browser-based AI image editor. A user selects or drops an image, enters an edit prompt, chooses a provider and credentials, and requests a generated edit; the app displays the result and manages a local session history with favorites, labels, undo/redo, and download. The React app owns these workflows and calls a service that handles Gemini generation or OpenAI image edits. The README identifies the app as an AI Studio project, but sampled evidence does not establish persistence or additional capabilities beyond the shown code.
Main entry points: App.tsx Editor and controls · geminiService.ts Edit generation service · types.ts Image and edit types · index.tsx React app entry
Components 10
Editor experience
- Editor and controls
App.tsx - Image and prompt workflow
App.tsx - Result history
App.tsx - Button component
components/Button.tsx - React app entry
index.tsx
Image generation
- Edit generation service
services/geminiService.ts - Google Gemini API
- OpenAI Images API
Shared contracts
- Image and edit types
types.ts
Other components
- Image editor user
Connections 10
- Image editor user → Editor and controls: uses
- React app entry → Editor and controls: mounts
index.tsx - Editor and controls → Image and prompt workflow: handles
App.tsx - Editor and controls → Result history: manages
App.tsx - Editor and controls → Button component: renders
App.tsx - Editor and controls → Edit generation service: requests edit
App.tsx - Edit generation service → Google Gemini API: generates with
services/geminiService.ts - Edit generation service → OpenAI Images API: edits with
services/geminiService.ts - Editor and controls → Image and edit types: uses types
App.tsx - Edit generation service → Image and edit types: uses provider type
services/geminiService.ts