项目介绍

MrXie23/PromptLibrary 是一个托管在 GitHub 上的开源项目,主要使用 TypeScript 编写,目前获得 30 个 Star、9 次 Fork。

仓库全名
MrXie23/PromptLibrary
Star 数
30
Fork 数
9
未关闭 Issue
1

README 摘要

English | 中文 Prompt Library Explore, use, and share carefully curated AI prompts to unlock the full potential of artificial intelligence. 📖 About 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…

完整内容见 GitHub 原始 README 或本页 。

常见问题

PromptLibrary 用什么语言开发?

主要使用 TypeScript 编写,目前有 30 个 Star。

如何获取 PromptLibrary 的源码?

可以直接克隆仓库:git clone https://github.com/MrXie23/PromptLibrary.git;安装与运行步骤见仓库 README。

PromptLibrary 最近还在维护吗?

仓库最近一次更新为 2025年3月22日,当前有 1 个未关闭 Issue;Star 数为 30,可作为社区活跃度的参考。

关于

Prompt Library is an open-source, high-quality AI prompt repository that supports multiple languages and categorized search, helping you efficiently explore the unlimited potential of AI.

描述取自 GitHub 官方 API,中文内容由 GitRead 中文社区 编辑团队整理。

简要分析

热度分
78
价值分
23
活跃状态
活跃

README

English | 中文

Prompt Library

Explore, use, and share carefully curated AI prompts to unlock the full potential of artificial intelligence.

📖 About

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.

🚀 Live Demo

Visit the website: Prompt Library

✨ Key Features

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

🛠️ Tech Stack

  • 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

📁 Project Structure

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

🔧 Local Development

Prerequisites

  • Node.js 16.0.0 or higher
  • npm or yarn package manager

Installation Steps

  1. Clone the repository

    git clone https://github.com/mrxie23/PromptLibrary.git
    cd prompt-library
    
  2. Install dependencies

    npm install
    # or
    yarn install
    
  3. Start the development server

    npm run dev
    # or
    yarn dev
    
  4. Open your browser and visit http://localhost:3000

🏗️ Building and Deployment

# Generate production build
npm run build

# Preview production build locally
npm run start

📝 Adding New Prompts

Method 1: Manually Adding Files

  1. Create a new Markdown file in the prompts/ directory
  2. Add frontmatter metadata:
    ---
    title: Prompt Title
    description: Brief description
    category: Category Name
    ---
    
  3. Write the prompt content
  4. 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
    }
    

Method 2: Using Prompt Manager

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.

Starting Prompt Manager
  1. Navigate to the prompt-manager directory:

    cd prompt-manager
    
  2. Install dependencies (first time only):

    npm install
    
  3. Start the Prompt Manager:

    npm run dev
    # or use the start.bat file on Windows
    
  4. Open your browser and visit http://localhost:3000

Key Features of Prompt Manager
  • 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
Creating a New Prompt
  1. Click on the “Create New Prompt” button in the dashboard or navigation menu
  2. Fill in the required fields:
    • Title
    • Description
    • Category
    • Content (supports Markdown format)
  3. Optionally customize:
    • File name (or let the system generate one)
    • Rating (1-10)
    • Featured status
    • New status
  4. Click “Create Prompt” to save
Editing an Existing Prompt
  1. Navigate to the prompt list page
  2. Find the prompt you want to edit and click on it
  3. Click the “Edit” button
  4. Make your changes to the content or properties
  5. Click “Save Changes” to update the prompt

🤝 Contributing

We welcome contributions of all kinds!

  1. Fork and clone the project
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add an amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Submit a Pull Request

📜 License

This project is licensed under the MIT License.

🙏 Acknowledgements

Thanks to all the developers and community members who have contributed to this project!

评论

暂无评论