Skip to content

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。

License

Notifications You must be signed in to change notification settings

TanShilongMario/PromptFill

Repository files navigation

Prompt Fill (提示词填空器)

English | 中文


Prompt Fill

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.

License Version Data React Vite Tailwind CSS

image@1x-2 1231333

📝 Foreword

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".

🌟 Progress & Core Features

  • ✅ 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.

✨ Core Features

🧩 Intelligent Bank Management

  • 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.

📝 Multi-Template System

  • 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.

🖱️ Visual Interaction

  • 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.

💾 Auto Persistence

  • Changes are automatically saved to LocalStorage.
  • No data loss on refresh or browser close.

🖼️ Image Management

  • 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.

📋 Export & Share

  • One-click Copy: Copy clean generated prompt text.
  • Save Long Image: Export HD JPGs for archiving and sharing.

🛠️ Tech Stack


🚀 Quick Start

Prerequisites

Node.js v18+ is recommended.

Installation & Run

  1. Clone
    git clone https://github.com/TanShilongMario/PromptFill.git
    cd PromptFill
  2. Install
    npm install
  3. Dev
    npm run dev
  4. Build
    npm run build

Shortcut Scripts

  • macOS: start.command
  • Windows: start.bat

📖 Usage Guide

1. Manage Categories

Manage categories and colors at the top of the left panel. Each category has a unique color for quick identification.

2. Create Banks

Create "Variable Groups" and add options (single or batch). Cards can be dragged into the editor.

3. Edit Templates

Use "Edit Template" to enter visual mode. Supports drag-and-drop insertion, manual {{variable}} input, and Undo/Redo.

4. Preview & Generate

Switch to "Preview Interaction". Select options from dropdowns. Use "+ Add Custom Option" to save new values directly.

5. Manage Images

Hover over preview images to view large versions, upload custom images, or reset to default.

6. Export & Share

Copy the final prompt or save as a long image. JSON Import/Export is available for backup.


💡 Tips

  1. Batch Creation: Input multiple lines to add multiple options at once.
  2. Clone Templates: Duplicate templates for A/B testing.
  3. Color Coding: Use distinct colors for complex template structures.
  4. Multi-Instance: Multiple same variables are assigned unique indices (e.g., color-0).
  5. Custom Previews: Uploading representative images helps identification.
  6. Image Specs: Square or vertical images around 300px are recommended.
  7. Data Safety: Regularly export JSON as data is local to the browser.
  8. Tags & Search: Use tags to filter and locate templates quickly.
  9. Masonry View: Efficiently browse covers in the template list.
  10. Import/Export (Beta): Backup or share via one-click JSON export.
  11. Multi-source Upload: Supports local files and URLs for images.
  12. Local Focus: Sync across devices manually using JSON files.

🗺️ Roadmap

  • 🚀 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.

📝 Change Log

Version 0.6.1 (2025-12-26)

  • 🔗 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.

Version 0.6.0 (2025-12-25)

  • 🎨 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.

Version 0.5.1 (2025-12-22)

  • 📱 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.

Version 0.5.0 (2025-12-20)

  • 🏗️ 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.

Version 0.4.1 (2025-12-12)

  • Export Optimization: JPG format (smaller size), blurry background, and cleaner layout.
  • Mobile Experience: Toast notifications instead of alerts and detailed backup info.

🤝 Contribution

Issues and Pull Requests are welcome!

📄 License

MIT License / MIT 许可证.


Prompt Fill (提示词填空器)

一个专为 AI 绘画(GPT、Nano Banana 等)设计的结构化提示词生成工具。通过可视化的"填空"交互方式,帮助用户快速构建、管理和迭代复杂的 Prompt。

License Version Data React Vite Tailwind CSS

image@1x-2 1231333

📝 写在前面

Prompt Fill 现已迭代至 v0.6.1 版本。本项目初衷是解决 AI 绘画过程中提示词难记忆、难管理、修改繁琐的问题。通过将 Prompt 结构化,让创作变得像"填空"一样简单。

🌟 目前进度与核心功能

  • ✅ 全面暗色模式支持:支持桌面端与移动端的一键主题切换。
  • ✅ 词组联动系统:支持变量成组联动,修改一处,全局同步。
  • ✅ 结构化 Prompt 引擎:支持 {{variable}} 语法,自动转化为交互式表单。
  • ✅ 动态词库系统:预置数百个常用标签,支持分类管理与批量导入。
  • ✅ 高清社交分享:内置模版封面渲染,支持一键导出精美 JPG 长图。
  • ✅ 模版/版本感知:官方模版云端同步感知,无需手动刷新。
  • ✅ 纯本地存储:基于浏览器 LocalStorage,数据完全掌握在自己手中。

✨ 核心特性

🧩 智能词库管理

  • 分类管理:支持自定义分类并通过颜色区分,视觉更清晰。
  • 双向同步:预览填空时可直接添加"自定义选项",自动同步到词库。
  • 分类编辑器:内置分类管理器,支持颜色配置。
  • 响应式布局:词库列表支持瀑布流式多列布局。

📝 多模版系统

  • 独立模版:支持创建多个独立的 Prompt 模版。
  • 独立状态:每个模版的变量选择互不干扰。
  • 副本克隆:支持一键创建模版副本,方便进行 A/B 测试。

🖱️ 可视化交互

  • 所见即所得编辑:编辑模式下变量根据分类颜色高亮显示。
  • 成组联动 (Linkage Groups):设置联动组,具有相同组号的变量自动保持同步。
  • 拖拽插入:直接将词库卡片拖入编辑区域即可快速插入。
  • 预览模式:模版中的变量自动渲染为可点击的下拉菜单。
  • 独立实例:同一变量在模版中出现多次时可分别选择不同值。

💾 自动持久化

  • 利用 LocalStorage 自动保存所有修改。
  • 刷新页面或关闭浏览器后数据不会丢失。

🖼️ 图像管理

  • 预览图展示:每个模版支持关联预览图。
  • 自定义上传:支持上传自定义图片替换默认预览图。
  • 图片操作:悬停显示操作按钮:查看大图、上传、重置。
  • 装饰背景:预览图作为模糊背景显示在模版顶部。

📋 导出与分享

  • 一键复制:复制最终生成的纯净 Prompt 文本。
  • 保存长图:将填好的模版导出为高清图片,方便分享。

🛠️ 技术栈


🚀 快速开始

前置要求

推荐使用 Node.js v18+。

安装与运行

  1. 克隆项目
    git clone https://github.com/TanShilongMario/PromptFill.git
    cd PromptFill
  2. 安装依赖
    npm install
  3. 启动开发服务器
    npm run dev
  4. 构建生产版本
    npm run build

快捷启动脚本

  • macOS: start.command
  • Windows: start.bat

📖 使用指南

1. 管理分类

点击左侧面板顶部的"管理分类",添加或修改分类及其颜色。

2. 创建词库

点击"创建新变量组"添加词库,支持单条或批量添加选项。

3. 编辑模版

点击"编辑模版"进入可视化编辑模式,支持拖拽插入或手动输入变量。

4. 预览与生成

切换回"预览交互"模式,点击变量选择选项,支持直接添加新选项到词库。

5. 管理模版图片

悬停在预览图上可查看大图、上传自定义图或重置默认图。

6. 导出与分享

复制生成的结果或保存为长图。支持 JSON 导入/导出。


💡 使用技巧

  1. 批量创建:添加选项时可一次输入多行。
  2. 模版副本:使用副本功能进行对比测试。
  3. 颜色编码:为不同变量设色使结构清晰。
  4. 多实例:同名变量会自动分配独立索引。
  5. 自定义预览:上传参考图有助于快速识别。
  6. 图片建议:推荐 300px 左右的正方形或竖图。
  7. 数据安全:所有数据存储在本地,建议定期导出备份。
  8. 标签化检索:通过标签快速定位模版。
  9. 瀑布流浏览:多张封面浏览更高效。
  10. 导入/导出:一键备份或共享 JSON。
  11. 多源上传:支持本地文件与图片 URL。
  12. 本地化存储:跨设备同步请配合导入/导出。

🗺️ 路线图

  • 🚀 产品应用化: iOS 原生应用与桌面端软件。
  • 🤝 模版生态: 模版一键分享与在线社区。
  • 🤖 AI 智能: AI 词库扩充与 AI 提示词重组优化。
  • ✨ 深度优化: 更多高质量模版与无限层级组织。

📝 更新日志

Version 0.6.1 (2025-12-26)

  • 🔗 联动组逻辑修复:修复了联动组匹配过于宽松的 Bug。
  • 🆙 全站版本号对齐:同步升级了各处的版本号标识。
  • 🎨 UI 细节微调:优化了暗色模式下的 UI 交互。

Version 0.6.0 (2025-12-25)

  • 🎨 UI 全面升级与暗色模式:支持全站暗色模式及圣诞限定彩蛋。
  • 🔗 词组联动功能上线:支持在同一组内的变量同步更新。
  • 📱 移动端深度优化:设置页适配及图标美化。
  • 🐞 Bug 修复与体验提升:导出稳定性与存储写入优化。

Version 0.5.1 (2025-12-22)

  • 📱 移动端交互大革新:沉浸式详情页、侧滑抽屉及陀螺仪 3D 效果。
  • ⚡ 性能与稳定性优化:Mesh Gradient 背景与平滑滚动逻辑。
  • 🛠️ 智能数据合并:优化了数据迁移逻辑,支持平滑升级。

🤝 贡献

欢迎提交 Issue 或 Pull Request 来改进这个项目!

📄 许可证

MIT License / MIT 许可证.


Made with ❤️ by 角落工作室

About

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。

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages