Skip to content

willbyers1/PromptRank

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

6 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ† PromptRank

Project Status Framework Styling Logic License

"Master the Art of Prompt Engineering."

PromptRank is an intelligent, logic-based web application designed to score your AI prompts against industry best practices. It helps you bridge the gap between basic queries and high-quality engineering by providing instant, actionable feedback.


๐Ÿ“ธ Project Preview

image image image image

๐Ÿ“– Overview

PromptRank is a serverless educational tool that analyzes and grades the quality of text prompts for LLMs. Built with a stunning Cyberpunk/Dark Mode aesthetic, it utilizes advanced Regular Expressions (Regex) to evaluate inputs based on five critical dimensions: Length, Persona, Output Clarity, Chain of Thought, and Few-Shot examples.

The application features a "Bring Your Own Key" (BYOK) architecture simulation to mimic real-world SaaS security environments while keeping all logic strictly client-side.

โœจ Key Features

  • ๐Ÿง  Smart Scoring Algorithm: A JavaScript-based engine that calculates a quality score (0-100) based on proven prompt engineering techniques.
  • ๐Ÿ” BYOK Security Gate: Implements a strict overlay that prevents access until an API Key (simulated or real) is provided, storing it safely in Session Storage.
  • ๐Ÿ“Š Visual Feedback Loop: Features an animated circular gauge and color-coded progress bars (Red/Orange/Green) to represent prompt health visually.
  • โšก Real-Time Analysis: Instantly checks for "Act as", "Step by step", output formats (JSON/Markdown), and more.
  • ๐ŸŽจ Cyberpunk UI: Deep blacks (#0f172a), neon purples, and vibrant greens create an immersive coding environment.
  • ๐Ÿ“ฑ Fully Responsive: Optimized for both desktop and mobile devices using a modern stacked layout.

๐Ÿ› ๏ธ Tech Stack

  • Core Framework: Vue.js 3 (via CDN)
  • Styling: Tailwind CSS (via CDN)
  • Logic: Pure JavaScript (ES6+) & Regex
  • Architecture: Single File Component (HTML5)

๐Ÿš€ Getting Started

To run this project locally, follow these simple steps:

  1. Clone the repository:
    git clone [https://github.com/WillByers/PromptRank.git](https://github.com/WillByers/PromptRank.git)
  2. Navigate to the project folder:
    cd PromptRank
  3. Launch the App:
    • Simply double-click index.html to launch the application in your browser.
    • Optional: Serve with a live server for a better experience:
    npx serve .

๐ŸŽฎ Usage

  1. Authenticate: Enter any API Key (e.g., sk-proj...) to unlock the interface.
  2. Draft: Type your prompt into the main text area.
  3. Analyze: Click the "Analyze Prompt" button.
  4. Review: Check your score on the gauge and review the checklist to see missing elements (e.g., "Add a Persona").
  5. Refine: Edit your prompt based on the feedback to hit a perfect 100/100.

๐Ÿ›ก๏ธ Privacy Note

PromptRank operates entirely on the client-side. Your API keys and prompt texts are processed within your browser's memory and are never transmitted to any external server.

๐Ÿค Contributing

Contributions are welcome!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/NewMetric)
  3. Commit your Changes (git commit -m 'Add new scoring metric')
  4. Push to the Branch (git push origin feature/NewMetric)
  5. Open a Pull Request

๐Ÿ“„ License

Distributed under the MIT License. See LICENSE for more information.


If the link doesn't work, here is the URL: https://willbyers1.github.io/PromptRank/

Created by Mert Batu Bรผlbรผl ๐Ÿ’ป Computer Engineering Freshman (1st Year Student) ๐Ÿ’ป

About

๐Ÿ† PromptRank Master the art of Prompt Engineering. A real-time AI prompt quality scorer and analyzer. ๐Ÿ†๐Ÿง 

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors