Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚡ PromptNova — AI Prompt Generator

Transform simple goals into powerful, optimized AI prompts using a 5-step Smart Enhancement Engine powered by LLaMA 3.3 70B via Groq.

PromptNova Banner Node.js Groq License


🚀 Live Demo

Run locally — see setup instructions below


📌 About The Project

PromptNova is an intelligent full-stack web application that solves one of the biggest challenges in the AI era — writing effective prompts. Most users struggle to get quality responses from AI tools because they don't know how to structure their prompts properly.

PromptNova fixes this by running every user input through a 5-step Smart Prompt Enhancement Engine that automatically detects intent, expands keywords, structures the prompt, scales complexity, and applies optimization techniques — all powered by LLaMA 3.3 70B.


✨ Features

Core

  • 5-Step Enhancement Engine — Intent Detection → Keyword Expansion → Structuring → Complexity Scaling → Optimization
  • 🎯 3 Prompt Variants — Beginner, Advanced, and Creative versions for every goal
  • 📊 Prompt Quality Meter — AI scores each prompt 0–100 with animated progress bar
  • 🔗 Chain Prompting Engine — Breaks complex goals into 4 sequential linked prompts
  • Improve Any Prompt — Paste any prompt and get an AI-enhanced version instantly
  • 🔄 Remix Prompts — Regenerate fresh variations with one click

Productivity

  • 📋 20+ Quick Templates — Pre-built goals across 6 categories with filter tabs
  • 💾 Custom Template Saver — Save your own goals as reusable template chips
  • 📜 Prompt History — Auto-saves last 50 generations with starred favourites
  • 📄 Export as TXT — Download all 3 prompt variants with metadata

UI / Design

  • 🎨 3 Themes — NEON (cyan/purple), CYBER (orange/red), MINIMAL (warm editorial)
  • 🌙 Dark + Light Mode — Every theme has both variants (6 total combinations)
  • Glassmorphism UI — Blur + transparency on all panels and cards
  • 💫 Animated Particle Network — 70+ connected nodes on HTML5 Canvas
  • ⌨️ Typing Animation — Prompts reveal character by character
  • 📱 Fully Responsive — Works on mobile, tablet, and desktop

🛠️ Tech Stack

Layer Technology
Backend Node.js, Express.js
AI Model LLaMA 3.3 70B (via Groq Cloud)
Frontend HTML5, CSS3, Vanilla JavaScript
Inference Groq LPU API
Storage Browser localStorage
Fonts Orbitron, Rajdhani, Space Mono

🤖 AI Algorithms

  1. Smart Prompt Enhancement Engine — 5-step pipeline using LLM reasoning
  2. Chain Prompting Algorithm — Sequential 4-step prompt decomposition
  3. Prompt Quality Scorer — LLM self-evaluation on 5 dimensions (0–100)
  4. Prompt Improvement Engine — RTCCO framework-based rewriting
  5. Live Preview Generator — Client-side structural preview (zero API calls)
  6. AI Typing Suggestion System — Keyword-prefix intent matching (300ms debounce)
  7. Template Filter Algorithm — O(n) client-side category filtering

📁 Project Structure

promptnova/
├── index.html        # Frontend UI and layout
├── style.css         # Design system — 6 theme×mode variable sets
├── script.js         # Frontend controller — events, API, rendering
├── server.js         # Express backend — 3 API endpoints
├── package.json      # Dependencies
├── .env.example      # API key template
└── .gitignore        # Excludes node_modules and .env

⚙️ Setup & Installation

Prerequisites

Steps

1. Clone the repository

git clone https://github.com/madhu-mitha-e/promptnova.git
cd promptnova

2. Install dependencies

npm install

3. Create your environment file

cp .env.example .env

Open .env and add your Groq API key:

GROQ_API_KEY=gsk_your_key_here
PORT=3000

4. Start the server

node server.js

5. Open in browser

http://localhost:3000

🔌 API Endpoints

Endpoint Method Description
/generate-prompt POST Generate 3 prompt variants with quality scores
/improve-prompt POST Enhance any existing prompt
/chain-prompt POST Generate 4-step sequential prompt chain

🎨 Theme Preview

Theme Dark Mode Light Mode
NEON Cyan #00ffe7 + Purple on near-black Mint teal on pale aqua
CYBER Orange #ff8c00 + Red on near-black Amber on warm cream
MINIMAL Rose-copper #f0845a + Amber on dark brown Terracotta on warm cream

📊 Modules Used

Backend

  • express — HTTP server and routing
  • groq-sdk — LLaMA 3.3 70B inference client
  • dotenv — Environment variable management
  • cors — Cross-Origin Resource Sharing
  • nodemon — Development auto-restart

Browser APIs

  • Canvas 2D API — Particle network background
  • Clipboard API — One-click copy
  • localStorage API — History and template persistence
  • Blob + URL API — Client-side file export
  • CSS Custom Properties — Dynamic theme switching
  • CSS backdrop-filter — Glassmorphism effect

🗺️ Future Scope

  • Multi-language prompt generation (Tamil, Hindi, Spanish, French)
  • Image prompt mode for Midjourney and DALL-E
  • User accounts with cloud sync
  • Browser extension for ChatGPT and Claude
  • Voice input via Web Speech API
  • Team collaboration workspace

GitHub


📄 License

This project is licensed under the MIT License.


Built with ⚡ using Node.js · Groq · LLaMA 3.3 · HTML/CSS/JS

About

AI-Powered Prompt Generator using Groq + LLaMA 3.3

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages