A modern, mobile-first AI Prompt Library built with React, Vite, and Tailwind CSS. Discover, copy, and generate shareable image cards for your favorite AI prompts (Gemini, Midjourney, DALL-E).
This project has been completely rebuilt from the ground up!
- ⚡ Speed: Powered by Vite for instant loading.
- 📱 Mobile-First: Beautiful masonry grid layout that looks perfect on phones.
- 🖼️ Share Engine: Custom built-in image generator to create social media cards for any prompt.
- 🛠️ Admin Tools: Hidden admin interface to auto-generate JSON data.
- 🎨 UI/UX: Smooth animations with Framer Motion and Toast notifications.
PromptCollection/
├── public/ # Static assets (Logo, Favicon)
├── src/
│ ├── components/ # React Components
│ │ ├── Navbar.jsx # Search & Mobile Menu
│ │ ├── PromptCard.jsx # Masonry Grid Item
│ │ ├── ShareGenerator.jsx # Image Generation Logic
│ │ └── AdminHelper.jsx # Internal Admin Tool
│ ├── data.js # Prompt Data Source
│ ├── App.jsx # Main Logic & Routing
│ └── main.jsx # Entry Point
├── index.html # HTML Root
├── tailwind.config.js # Style Configuration
├── vite.config.js # Build Configuration
└── package.json # DependenciesPrompt Discovery:
- 🔍 Real-time search (by title, category, or content)
- 🏷️ Dynamic Category filtering
- 📋 One-click copy with Toast notifications
Creative Tools:
- 🖼️ Share Card Generator: Converts any prompt into a high-quality image card for Twitter/Instagram.
- 🧠 Smart Links: "Try on Gemini" buttons that auto-copy text before opening the AI.
User Experience:
- 🌙 Dark/Light mode toggle (persists in memory)
- 📱 Fully responsive Masonry layout
Unlike V1, this version requires Node.js.
-
Clone the repository
git clone [https://github.com/Sagarbudhwani/prompt-collection.git](https://github.com/Sagarbudhwani/prompt-collection.git) cd prompt-collection -
Install Dependencies
npm install
-
Run Development Server
npm run dev
Open the link shown in the terminal (usually
http://localhost:5173).
You don't need to write code manually!
- Run the app locally (
npm run dev). - Go to
http://localhost:5173/adminin your browser. - Use the Admin JSON Generator to create your prompt.
- Copy the generated code and paste it into
src/data.js.
We welcome contributions! Please see our CONTRIBUTING.md for details.
- Fork the repo.
- Create a feature branch.
- Submit a Pull Request.
- Core: React.js, Vite
- Styling: Tailwind CSS
- Icons: Lucide React
- Animations: Framer Motion
- Utilities: html2canvas (Image Gen), react-hot-toast (Notifications)
MIT © Sagar Budhwani - Free to use, modify, and share!
Sagar Budhwani
- GitHub: @Sagarbudhwani
- More Apps: appsbysagar.netlify.app