Skip to content

[Feature] Build AI Prompt Library Front-End β€” Save & Rate Prompts by ModelΒ #6

@luisfponce

Description

@luisfponce

🎯 Goal

Build a front-end for our AI Prompt Library β€” a place where users can discover, save, and rate the best prompts for the top AI models (ChatGPT, Claude, Gemini, etc.).

Design inspiration: tiiny.host/chatgpt-prompts/


πŸ“ Pages & Sections to Build

1. /prompts β€” Main Discovery Page

Section Description
Header Logo + nav links (Prompts, My Saved, Login/Signup)
Model tabs Horizontal tab bar: All | ChatGPT | Claude | Gemini | Llama | Mistral
Category pills Colored badge filters (e.g. πŸ“’ Coding, 🎨 Creative, πŸ’° Finance, πŸ₯ Health)
Prompt card grid Responsive 3-col grid with icon, title, 1-line description, model badge, ⭐ rating, β–² upvote count
Search bar Filter prompts in real-time by keyword

2. Prompt Card Modal (overlay on click)

  • Full prompt text (monospace box, copy-to-clipboard button)
  • Model tag + category tag
  • ⭐ Interactive star rating widget (POST to API)
  • ❀️ Save/unsave toggle (POST to API)
  • πŸ”Ί Upvote button + total upvotes

3. /prompts/my-saved β€” Saved Prompts Page (auth required)

  • Grid of user's bookmarked prompts
  • Remove from saved

πŸ”Œ API Integration

The FastAPI backend (root: webapi/) already has:

  • webapi/api/ β€” router modules
  • webapi/models/ β€” SQLAlchemy models
  • webapi/schemas/ β€” Pydantic schemas
  • webapi/auth/ β€” JWT authentication

New endpoints to coordinate with the backend team:

Method Endpoint Description
GET /prompts List all prompts (filter by model, category)
GET /prompts/{id} Get single prompt
POST /prompts/{id}/rate Submit star rating
POST /prompts/{id}/upvote Upvote a prompt
POST /prompts/{id}/save Save to user favourites
DELETE /prompts/{id}/save Remove from favourites
GET /prompts/saved Get current user's saved prompts

🎨 Design Specs

To be defined at team meeting.


βœ… Acceptance Criteria

To be discussed at team meeting.


πŸ“Ž Resources

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions