Skip to content

Alg0rix/prompts-dir

Prompt Collection

A simple, static web application to browse, search, and discover a curated collection of useful prompts for various tasks.

Overview

This application provides a platform for users to find useful prompts for various tasks. All prompts are stored in a single CSV file in the public directory, making it easy to access and contribute to the collection.

Features

  • Prompt Listing: Displays all available prompts in a responsive grid layout
  • Metadata Display: Shows title, author, and tags for each prompt
  • Author Links: Clickable author links to promote attribution and discovery
  • Search Functionality: Client-side search to filter prompts by title, content, or author
  • Tag Filtering: Filter prompts by category/tag
  • CSV-Based Storage: All prompt data is stored in a single CSV file for easy access
  • Public Directory: CSV file is placed in the public directory for direct access via Cloudflare Pages
  • GitHub Contribution: Users can contribute new prompts by submitting Pull Requests

Getting Started

Prerequisites

  • Node.js (v20 or newer)
  • pnpm package manager

Installation

# Clone the repository
git clone https://github.com/your-username/prompts-dir.git
cd prompts-dir

# Install dependencies
pnpm install

# Start the development server
pnpm dev

The application will be available at http://localhost:3000.

Contributing

Adding a New Prompt

  1. Fork this repository
  2. Edit the public/prompts.csv file to add your new prompt
  3. Follow this format for your prompt entry:
"Your Prompt Title","Your Name","https://your-website-or-social-profile","tag1,tag2,category","Category Name","Your Prompt Title","Your prompt content goes here. You can use text formatting."

Make sure to properly escape any quotes in your prompt content by doubling them (e.g., ""quoted text"" instead of "quoted text").

  1. Submit a Pull Request with your new prompt

Development

If you want to contribute to the application itself:

# Install dependencies
pnpm install

# Start development server
pnpm dev

# Build for production
pnpm build

# Preview production build
pnpm preview

Deployment

This application is designed to be deployed on Cloudflare Pages:

# Deploy to Cloudflare Pages
pnpm deploy

Technology Stack

About

No description, website, or topics provided.

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published