"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.
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.
- ๐ง 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.
- Core Framework: Vue.js 3 (via CDN)
- Styling: Tailwind CSS (via CDN)
- Logic: Pure JavaScript (ES6+) & Regex
- Architecture: Single File Component (HTML5)
To run this project locally, follow these simple steps:
- Clone the repository:
git clone [https://github.com/WillByers/PromptRank.git](https://github.com/WillByers/PromptRank.git)
- Navigate to the project folder:
cd PromptRank - Launch the App:
- Simply double-click
index.htmlto launch the application in your browser. - Optional: Serve with a live server for a better experience:
npx serve . - Simply double-click
- Authenticate: Enter any API Key (e.g.,
sk-proj...) to unlock the interface. - Draft: Type your prompt into the main text area.
- Analyze: Click the "Analyze Prompt" button.
- Review: Check your score on the gauge and review the checklist to see missing elements (e.g., "Add a Persona").
- Refine: Edit your prompt based on the feedback to hit a perfect 100/100.
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.
Contributions are welcome!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/NewMetric) - Commit your Changes (
git commit -m 'Add new scoring metric') - Push to the Branch (
git push origin feature/NewMetric) - Open a Pull Request
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) ๐ป