Analyze. Refine. Prompt better.
Prismpt is a modern, open-source developer tool that dissects, evaluates, and optimizes artificial intelligence prompts like a prism splitting white light into its core spectrum.
Rather than relying on vague trial-and-error, Prismpt analyzes your prompt across six fundamental dimensions, detects structural deficiencies, extracts key architectural segments (Role, Task, Context, Constraints, Format), and generates structured, production-ready blueprintsβ100% client-side with zero telemetry and zero external API dependencies.
- π¬ Local Heuristic Engine: Fast, deterministic, and explainable evaluation across 6 dimensions. Zero external AI API required.
- π― Multi-Dimensional Scoring (0β100): Evaluates Clarity, Context, Specificity, Structure, Constraints, and Intent.
- π Tiered Grading (S, A, B, C, D, F): Instant visual grading reflecting structural completeness.
- π‘ Actionable Feedback: Concrete Strengths (β) and Improvements (!) with clear explanations.
- π·οΈ Prompt Structure Highlights: Automatically extracts explicit segments:
ROLE,TASK,CONTEXT,CONSTRAINT, andFORMAT. - β‘ Prompt Optimizer: Heuristically transforms unstructured text into an optimal blueprint (
Role,Objective,Context,Requirements,Output Format,Constraints). - βοΈ Before / After Comparison: Side-by-side (desktop) and stacked (mobile) comparison showing prompt improvements and score deltas.
- πΉπ· / π¬π§ Complete Bilingual Localization: Full Turkish and English interface with auto-detection and language-matching analysis.
- π 100% Privacy-First: Prompts never leave your browser. No remote servers, no analytics, no tracking.
- π Local History: Stores the last 25 prompt analyses in
localStoragewith reload, delete, and clear-all capabilities. - π€ Export & Share: Quick-copy formatted text summaries, or export comprehensive reports as Markdown (
.md) or clean JSON (.json). - π¨ Developer-First Aesthetic: Inspired by Linear, Vercel, and Raycast with Dark & Light theme support.
- β¨οΈ Productivity Shortcuts: Press
Cmd/Ctrl + Enterto analyze instantly.
| Dark Mode (Default) | Light Mode |
|---|---|
![]() |
![]() |
(To add your own screenshots, place them in the public/ directory).
Prismpt treats prompt engineering as a disciplined software architecture problem. When you submit a prompt, the engine passes the input through specialized heuristic analyzers:
ββββββββββββββββββββββββββββββββββββββββββ
β Raw Prompt β
βββββββββββββββββββββ¬βββββββββββββββββββββ
β
ββββββββββββββββββββββββ΄βββββββββββββββββββββββ
βΌ βΌ
[Language Detector] [Highlights Extractor]
(Turkish / English) (Role, Task, Context, Format)
β β
ββββββββββββββββββββββββ¬βββββββββββββββββββββββ
βΌ
βββββββββββββββββββββββββββββββββββββββββββββββ
β 6-Dimensional Analysis Core β
ββββββββββββββββββββββββ¬βββββββββββββββββββββββ€
β 1. Clarity (18%) β 4. Structure (15%) β
β 2. Context (17%) β 5. Constraints (16%) β
β 3. Specificity (18%) β 6. Intent (16%) β
ββββββββββββββββββββββββ¬βββββββββββββββββββββββ
βΌ
βββββββββββββββββββββββββββββββββββββββββββββββ
β Deterministic Aggregate Score (0-100) β
β Tier Grade (S / A / B / C / D / F) β
β Strengths & Improvement Items β
ββββββββββββββββββββββββ¬βββββββββββββββββββββββ
βΌ
βββββββββββββββββββββββββββββββββββββββββββββββ
β Prompt Optimizer (Blueprint) β
βββββββββββββββββββββββββββββββββββββββββββββββ
Every check is explainable and deterministic: identical prompts always produce identical scores.
Prompts receive an aggregate score from 0 to 100 and a corresponding letter grade:
| Grade | Score Range | Status | Description |
|---|---|---|---|
| S | 90 β 100 | Excellent | Flawless prompt with expert role, clear task, explicit constraints, and formatting. |
| A | 80 β 89 | Great | Highly effective; minor contextual or formatting enhancements possible. |
| B | 70 β 79 | Good | Clear directive and baseline structure; would benefit from negative constraints or examples. |
| C | 60 β 69 | Needs Work | Understandable but prone to ambiguous hallucinations; missing guidelines. |
| D | 40 β 59 | Poor | Weak structure, lacks context, missing output specifications. |
| F | 0 β 39 | Inadequate | Very brief, ambiguous, or empty input. |
- Clarity (18%): Readability, imperative directives, absence of rambling filler and ambiguous phrases ("make it cool", "falan filan").
- Context (17%): Background domain, tech stack, scenario, and input data presence (code blocks, JSON, tables).
- Specificity (18%): Quantitative metrics, numerical bounds, concrete examples (few-shot), and defined target audience.
- Structure (15%): Delimiters, markdown headings, bulleted lists, XML tags, and paragraph division.
- Constraints (16%): Negative boundaries (what not to do), output format specifications (JSON, Markdown table), and tone/length caps.
- Intent (16%): Expert persona/role assignment, explicit goal formulation, and clear definition of success.
Note
Prismpt's local analyzer uses heuristic rules rather than calling an external LLM. Scores should be regarded as an actionable guidance and structural benchmark rather than an absolute measure of prompt quality.
- Framework: Next.js 15 (App Router, React 19)
- Language: TypeScript (Strict Mode)
- Styling: Tailwind CSS
- Icons: Lucide React
- Animation: Framer Motion
- Testing: Vitest
- Internationalization: Custom zero-dependency React context with
localStoragepersistence
- Node.js 18.x or later
- npm
-
Clone the repository:
git clone https://github.com/bortechin/prismpt.git cd prismpt -
Install dependencies:
npm install
-
Start the development server:
npm run dev
-
Open http://localhost:3000 in your browser.
# Run unit tests
npm run test
# Run linter
npm run lint
# Build for production
npm run buildprismpt/
βββ app/
β βββ globals.css # Tailwind configuration & CSS variables
β βββ layout.tsx # Root layout, metadata & providers
β βββ page.tsx # Main single-page application orchestrator
βββ components/
β βββ analyzer/
β β βββ ExamplePrompts.tsx # Preset categorized examples
β β βββ PromptEditor.tsx # Textarea, counters, shortcuts & toolbar
β βββ results/
β β βββ CategoryBreakdown.tsx # 6 dimension progress cards
β β βββ ExportShareModal.tsx # Text, Markdown, and JSON exporter
β β βββ PromptHighlights.tsx # Detected architectural tags
β β βββ ScoreGauge.tsx # Circular SVG instrument dial
β β βββ StrengthsIssues.tsx # Two-column strengths & improvements
β βββ optimizer/
β β βββ BeforeAfterView.tsx # Side-by-side comparison & score delta
β βββ history/
β β βββ HistoryModal.tsx # Local history browser (max 25)
β βββ about/
β β βββ AboutModal.tsx # Methodology & privacy documentation
β βββ layout/
β β βββ Footer.tsx # Clean developer footer
β β βββ Header.tsx # Responsive navigation & switches
β βββ ui/
β βββ Badge.tsx # Grade and tag badges
β βββ Button.tsx # Button variants with loading states
β βββ Modal.tsx # Accessible dialog container
β βββ Toast.tsx # Toast notification provider
βββ lib/
β βββ analyzer/
β β βββ analyzer.ts # Main scoring orchestrator
β β βββ clarity.ts # Clarity heuristic checks
β β βββ constraints.ts # Constraints heuristic checks
β β βββ context.ts # Context heuristic checks
β β βββ highlights.ts # Structural segment extractor
β β βββ intent.ts # Intent & role heuristic checks
β β βββ language.ts # TR/EN prompt language detector
β β βββ specificity.ts # Specificity & metrics checks
β β βββ structure.ts # Formatting & list checks
β β βββ types.ts # Core TypeScript interfaces
β βββ optimizer/
β β βββ optimizer.ts # Structured prompt generator
β βββ storage/
β β βββ history.ts # Client-side localStorage manager
β βββ i18n/
β β βββ context.tsx # Bilingual translation context
β βββ theme/
β βββ ThemeProvider.tsx # Dark/Light/System theme engine
βββ locales/
β βββ en.ts # English translations
β βββ tr.ts # Turkish translations
β βββ types.ts # Translation schema
βββ public/
β βββ logo.svg # Brand vector logo
β βββ logo-mark.svg # Favicon & icon mark
βββ test/
β βββ analyzer.test.ts # Comprehensive analyzer unit tests
β βββ optimizer.test.ts # Optimizer unit tests
βββ .github/
β βββ ISSUE_TEMPLATE/ # Bug report & feature request templates
β βββ PULL_REQUEST_TEMPLATE.md
βββ CHANGELOG.md
βββ CONTRIBUTING.md
βββ LICENSE # MIT License
βββ package.json
The following enhancements are planned for future releases:
- Optional AI-Powered Deep Analysis: Opt-in provider (OpenAI, Anthropic, Gemini, Ollama) for semantic verification.
- Custom Scoring Profiles: Domain-specific heuristics (e.g., Code Generation, System Prompts, Creative Writing).
- Expanded Language Support: German, Spanish, French, and Japanese localization.
- Browser Extension: Evaluate prompts in ChatGPT, Claude, and Gemini web interfaces.
- Prompt Collections & Tagging: Organize, tag, and search saved prompt templates.
- Shareable Analysis Reports: Exportable standalone HTML reports.
- Prismpt CLI: Run prompt evaluation in CI/CD pipelines to prevent prompt regression.
- VS Code Extension: In-editor prompt analysis for AI engineers.
Contributions are warmly welcomed! Please read CONTRIBUTING.md for guidelines on branch management, commit styles, and testing requirements.
- Fork the repo.
- Create your feature branch (
git checkout -b feature/amazing-feature). - Verify tests pass (
npm run test). - Commit your changes (
git commit -m 'feat: add support for markdown checklists'). - Push to the branch (
git push origin feature/amazing-feature). - Open a Pull Request.
Prismpt is strictly client-side:
- Your prompts are never transmitted to external servers.
- There are no tracking scripts, cookies, or analytics.
- History is stored exclusively in your browser's
localStorage.
Distributed under the MIT License. See LICENSE for more information.

