Menu

Building EditPrompt: A Visual Prompt Library with React and SQLite
📰

Building EditPrompt: A Visual Prompt Library with React and SQLite

DEV Community: react·Rohan Arora·18 days ago
#dmBL367m
#devtoreact#devto#dev#prompt#subject
Reading 0:00
15s threshold

“Make this photo cinematic” leaves a lot of decisions to an image model. Should the background change? The lighting? The person's expression? Their clothes?

A useful editing prompt makes those decisions visible. It describes what to change, what to preserve, and what to leave out.

I built EditPrompt around that workflow: browse a visual prompt library, choose a starting point, adapt the instructions, and use them with a reference photo in an external image editor. The site also includes a generator that assembles prompt text directly in the browser.

The interesting engineering problem is keeping that experience predictable. The application uses React and Vite for the interface, a Node.js API backed by SQLite for the catalog, and a shared JavaScript module for prompt generation.

Here are the decisions behind that design, including a small generator you can run yourself.

1.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.