A structured prompt generation tool designed specifically for AI painting (GPT, Midjourney, Nano Banana, etc.). Help users quickly build, manage, and iterate complex prompts through a visual "fill-in-the-blank" interaction.
Prompt Fill is now at version v0.6.1. The original intention of this project is to solve the problem of hard-to-remember, hard-to-manage, and tedious modification of prompts in the AI painting process. By structuring prompts, creation becomes as simple as "filling in the blanks".
- ✅ Full Dark Mode Support: One-click theme switching for desktop and mobile.
- ✅ Linkage Groups: Sync modifications globally within groups (e.g.,
{{color}}_1). - ✅ Structured Prompt Engine: Automatic interactive form conversion via
{{variable}}. - ✅ Dynamic Bank System: Preset art tags with category management and batch import.
- ✅ HD Social Sharing: Export beautiful JPG long images with auto-extracted colors.
- ✅ Cloud Awareness: Real-time sync for official templates and features.
- ✅ Local Storage: Private data stored in browser LocalStorage.
- Category Management: Color-coded categories (e.g., characters, actions) for visual clarity.
- Bidirectional Sync: Directly add custom options in preview to sync back to the bank.
- Category Editor: Manage categories and 12 preset colors.
- Responsive Layout: Efficient masonry multi-column layout.
- Independent Templates: Create separate prompt templates for different use cases.
- Isolated State: Variable selections are independent per template.
- Clone/Copy: One-click duplication for A/B testing.
- WYSIWYG Editing: Highlighting variables by category color during editing.
- Linkage Groups: Sync same variables in designated groups.
- Drag & Drop: Insert variables by dragging bank cards.
- Preview Mode: Templates render variables as clickable dropdowns.
- Multi-Instance: Multiple occurrences of the same variable work independently.
- Changes are automatically saved to LocalStorage.
- No data loss on refresh or browser close.
- Preview Images: Templates support associated preview images.
- Custom Upload: Replace default previews with your own images.
- Image Actions: Hover for large view, upload, or reset.
- Ambient Background: Blurry background effect at the top.
- One-click Copy: Copy clean generated prompt text.
- Save Long Image: Export HD JPGs for archiving and sharing.
- Build Tool: Vite
- Frontend: React
- Styling: Tailwind CSS
- Icons: Lucide React
- Export: html2canvas
Node.js v18+ is recommended.
- Clone
git clone https://github.com/TanShilongMario/PromptFill.git cd PromptFill - Install
npm install
- Dev
npm run dev
- Build
npm run build
- macOS:
start.command - Windows:
start.bat
Manage categories and colors at the top of the left panel. Each category has a unique color for quick identification.
Create "Variable Groups" and add options (single or batch). Cards can be dragged into the editor.
Use "Edit Template" to enter visual mode. Supports drag-and-drop insertion, manual {{variable}} input, and Undo/Redo.
Switch to "Preview Interaction". Select options from dropdowns. Use "+ Add Custom Option" to save new values directly.
Hover over preview images to view large versions, upload custom images, or reset to default.
Copy the final prompt or save as a long image. JSON Import/Export is available for backup.
- Batch Creation: Input multiple lines to add multiple options at once.
- Clone Templates: Duplicate templates for A/B testing.
- Color Coding: Use distinct colors for complex template structures.
- Multi-Instance: Multiple same variables are assigned unique indices (e.g.,
color-0). - Custom Previews: Uploading representative images helps identification.
- Image Specs: Square or vertical images around 300px are recommended.
- Data Safety: Regularly export JSON as data is local to the browser.
- Tags & Search: Use tags to filter and locate templates quickly.
- Masonry View: Efficiently browse covers in the template list.
- Import/Export (Beta): Backup or share via one-click JSON export.
- Multi-source Upload: Supports local files and URLs for images.
- Local Focus: Sync across devices manually using JSON files.
- 🚀 Application: Native iOS app & Desktop version (Electron/Tauri).
- 🤝 Ecosystem: One-click sharing and online community.
- 🤖 AI Empowerment: AI bank expansion & AI prompt reorganization.
- ✨ Deep UX: More built-in templates & infinite hierarchy.
- 🔗 Linkage Group Bug Fix: Fixed loose matching bug in linkage groups.
- 🆙 Version Alignment: Synchronized version identifiers site-wide.
- 🎨 UI Refinement: Optimized contrast and feedback in dark mode.
- 🎨 UI Upgrade & Dark Mode: Full dark theme support for desktop/mobile and Xmas theme.
- 🔗 Linkage Groups: Synchronized variable modifications within groups.
- 📱 Mobile Depth Optimization: Better dark mode adaptation and icon contrast.
- 🐞 Bug Fixes: Improved export stability and storage reliability.
- 📱 Mobile Interaction: Immersive details, drawer menus, and 3D gyroscope effects.
- ⚡ Performance: High-performance Mesh Gradient background and 60FPS scrolling.
- 🛠️ Data Merging: Smooth upgrade mechanism for user data migration.
- 🏗️ Architecture: Decoupled components and significant performance improvements.
- 🎨 New UX: New Discovery View with masonry layout and floating toolbar.
- 📸 Enhanced Export: Wider long images (860px) and improved variable styles.
- 🔔 Sync Awareness: App/Template version checking and cloud sync notifications.
- Export Optimization: JPG format (smaller size), blurry background, and cleaner layout.
- Mobile Experience: Toast notifications instead of alerts and detailed backup info.
Issues and Pull Requests are welcome!
MIT License / MIT 许可证.
一个专为 AI 绘画(GPT、Nano Banana 等)设计的结构化提示词生成工具。通过可视化的"填空"交互方式,帮助用户快速构建、管理和迭代复杂的 Prompt。
Prompt Fill 现已迭代至 v0.6.1 版本。本项目初衷是解决 AI 绘画过程中提示词难记忆、难管理、修改繁琐的问题。通过将 Prompt 结构化,让创作变得像"填空"一样简单。
- ✅ 全面暗色模式支持:支持桌面端与移动端的一键主题切换。
- ✅ 词组联动系统:支持变量成组联动,修改一处,全局同步。
- ✅ 结构化 Prompt 引擎:支持
{{variable}}语法,自动转化为交互式表单。 - ✅ 动态词库系统:预置数百个常用标签,支持分类管理与批量导入。
- ✅ 高清社交分享:内置模版封面渲染,支持一键导出精美 JPG 长图。
- ✅ 模版/版本感知:官方模版云端同步感知,无需手动刷新。
- ✅ 纯本地存储:基于浏览器 LocalStorage,数据完全掌握在自己手中。
- 分类管理:支持自定义分类并通过颜色区分,视觉更清晰。
- 双向同步:预览填空时可直接添加"自定义选项",自动同步到词库。
- 分类编辑器:内置分类管理器,支持颜色配置。
- 响应式布局:词库列表支持瀑布流式多列布局。
- 独立模版:支持创建多个独立的 Prompt 模版。
- 独立状态:每个模版的变量选择互不干扰。
- 副本克隆:支持一键创建模版副本,方便进行 A/B 测试。
- 所见即所得编辑:编辑模式下变量根据分类颜色高亮显示。
- 成组联动 (Linkage Groups):设置联动组,具有相同组号的变量自动保持同步。
- 拖拽插入:直接将词库卡片拖入编辑区域即可快速插入。
- 预览模式:模版中的变量自动渲染为可点击的下拉菜单。
- 独立实例:同一变量在模版中出现多次时可分别选择不同值。
- 利用 LocalStorage 自动保存所有修改。
- 刷新页面或关闭浏览器后数据不会丢失。
- 预览图展示:每个模版支持关联预览图。
- 自定义上传:支持上传自定义图片替换默认预览图。
- 图片操作:悬停显示操作按钮:查看大图、上传、重置。
- 装饰背景:预览图作为模糊背景显示在模版顶部。
- 一键复制:复制最终生成的纯净 Prompt 文本。
- 保存长图:将填好的模版导出为高清图片,方便分享。
- 构建工具: Vite
- 前端框架: React
- 样式库: Tailwind CSS
- 图标库: Lucide React
- 导出工具: html2canvas
推荐使用 Node.js v18+。
- 克隆项目
git clone https://github.com/TanShilongMario/PromptFill.git cd PromptFill - 安装依赖
npm install
- 启动开发服务器
npm run dev
- 构建生产版本
npm run build
- macOS:
start.command - Windows:
start.bat
点击左侧面板顶部的"管理分类",添加或修改分类及其颜色。
点击"创建新变量组"添加词库,支持单条或批量添加选项。
点击"编辑模版"进入可视化编辑模式,支持拖拽插入或手动输入变量。
切换回"预览交互"模式,点击变量选择选项,支持直接添加新选项到词库。
悬停在预览图上可查看大图、上传自定义图或重置默认图。
复制生成的结果或保存为长图。支持 JSON 导入/导出。
- 批量创建:添加选项时可一次输入多行。
- 模版副本:使用副本功能进行对比测试。
- 颜色编码:为不同变量设色使结构清晰。
- 多实例:同名变量会自动分配独立索引。
- 自定义预览:上传参考图有助于快速识别。
- 图片建议:推荐 300px 左右的正方形或竖图。
- 数据安全:所有数据存储在本地,建议定期导出备份。
- 标签化检索:通过标签快速定位模版。
- 瀑布流浏览:多张封面浏览更高效。
- 导入/导出:一键备份或共享 JSON。
- 多源上传:支持本地文件与图片 URL。
- 本地化存储:跨设备同步请配合导入/导出。
- 🚀 产品应用化: iOS 原生应用与桌面端软件。
- 🤝 模版生态: 模版一键分享与在线社区。
- 🤖 AI 智能: AI 词库扩充与 AI 提示词重组优化。
- ✨ 深度优化: 更多高质量模版与无限层级组织。
- 🔗 联动组逻辑修复:修复了联动组匹配过于宽松的 Bug。
- 🆙 全站版本号对齐:同步升级了各处的版本号标识。
- 🎨 UI 细节微调:优化了暗色模式下的 UI 交互。
- 🎨 UI 全面升级与暗色模式:支持全站暗色模式及圣诞限定彩蛋。
- 🔗 词组联动功能上线:支持在同一组内的变量同步更新。
- 📱 移动端深度优化:设置页适配及图标美化。
- 🐞 Bug 修复与体验提升:导出稳定性与存储写入优化。
- 📱 移动端交互大革新:沉浸式详情页、侧滑抽屉及陀螺仪 3D 效果。
- ⚡ 性能与稳定性优化:Mesh Gradient 背景与平滑滚动逻辑。
- 🛠️ 智能数据合并:优化了数据迁移逻辑,支持平滑升级。
欢迎提交 Issue 或 Pull Request 来改进这个项目!
MIT License / MIT 许可证.
Made with ❤️ by 角落工作室