English | 中文
Explore, use, and share carefully curated AI prompts to unlock the full potential of artificial intelligence.
Prompt Library is an open-source platform focused on collecting, categorizing, and sharing high-quality AI prompts. Our goal is to create a comprehensive collection of prompts categorized by use case, helping everyone from beginners to experts get the most out of AI models.
Visit the website: Prompt Library
- 📋 Browse prompts by categories including content creation, programming, design, and more
- 🔍 Powerful search functionality to quickly find relevant prompts
- ⭐ Rating system to highlight the most effective prompts
- 📱 Responsive design, perfect for all devices
- 🌐 Multi-language interface with Chinese language support
- 🔧 Integrated Prompt Manager for easy content management
- Next.js - React framework providing server-side rendering and static site generation
- React - User interface library
- TypeScript - Type-safe JavaScript superset
- MDX - Markdown extension for content management
- CSS Modules - Component-level style management
- Tailwind CSS - Utility-first CSS framework used for Prompt Manager
prompt-library/
├── src/ # Source code
│ ├── app/ # Next.js app pages
│ ├── components/ # React components
│ ├── lib/ # Utility functions and helper libraries
│ └── types/ # TypeScript type definitions
├── prompts/ # Prompt content (Markdown + JSON)
├── public/ # Static assets
├── scripts/ # Build scripts
└── next.config.js # Next.js configuration
prompt-manager/ # Management tool for prompt content
├── src/ # Source code
│ ├── components/ # UI components
│ ├── lib/ # Utility functions
│ ├── pages/ # App pages & API routes
│ ├── styles/ # CSS styles
│ └── types/ # TypeScript type definitions
└── public/ # Static assets
- Node.js 16.0.0 or higher
- npm or yarn package manager
-
Clone the repository
git clone https://github.com/mrxie23/PromptLibrary.git cd prompt-library
-
Install dependencies
npm install # or yarn install
-
Start the development server
npm run dev # or yarn dev
-
Open your browser and visit
http://localhost:3000
# Generate production build
npm run build
# Preview production build locally
npm run start
- Create a new Markdown file in the
prompts/
directory - Add frontmatter metadata:
--- title: Prompt Title description: Brief description category: Category Name ---
- Write the prompt content
- Create a JSON file with the same name, containing additional information:
{ "slug": "prompt-slug", "rating": 9.5, "createdAt": "YYYY-MM-DD", "featured": false, "isNew": true }
The Prompt Manager is a web-based tool designed to help you manage your prompt library with an intuitive interface. It provides a user-friendly way to create, edit, and organize your prompts.
-
Navigate to the prompt-manager directory:
cd prompt-manager
-
Install dependencies (first time only):
npm install
-
Start the Prompt Manager:
npm run dev # or use the start.bat file on Windows
-
Open your browser and visit
http://localhost:3000
- Dashboard: View statistics and key information about your prompt library
- Browse: List all prompts with search, filter, and sort functionality
- Create: Add new prompts with a visual editor and template options
- Edit: Modify existing prompt content and properties
- Categories: Manage prompt categories
- Preview: See how your prompts will look before saving
- Click on the "Create New Prompt" button in the dashboard or navigation menu
- Fill in the required fields:
- Title
- Description
- Category
- Content (supports Markdown format)
- Optionally customize:
- File name (or let the system generate one)
- Rating (1-10)
- Featured status
- New status
- Click "Create Prompt" to save
- Navigate to the prompt list page
- Find the prompt you want to edit and click on it
- Click the "Edit" button
- Make your changes to the content or properties
- Click "Save Changes" to update the prompt
We welcome contributions of all kinds!
- Fork and clone the project
- Create a feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add an amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Submit a Pull Request
This project is licensed under the MIT License.
Thanks to all the developers and community members who have contributed to this project!