Skip to content

Jitu-Ranjan/openpromptuk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenPrompt.uk

Multilingual Prompt Engineering for All.

OpenPrompt.uk is a free, AI-powered prompt engineering tool that transforms simple ideas into high-performance prompts across 11+ languages. Built for everyone — from beginners to professionals.

OpenPrompt.uk Interface


Features

Feature Description
🌍 Multilingual Generate expert prompts in English, Spanish, French, German, Italian, Chinese, Japanese, Korean, Hindi, Arabic & Vietnamese
🧠 AI-Powered Uses state-of-the-art LLMs (Llama 3.3, Qwen, Gemma & more) via Groq's lightning-fast inference
💬 Chat Interface Clean, ChatGPT-style conversational UI
🌙 Dark Mode Full light/dark theme toggle
🔄 Auto-Refresh Automatically regenerates prompts every 30 seconds for continuous refinement
📊 Live Counter Dynamic, real-time user activity counter
🔒 Privacy First Nothing is stored. API keys and prompts exist only in volatile browser session memory
🎁 Free Tier 2 free generations/day with built-in key. Unlimited with your own free Groq key

🚀 Quick Start

Prerequisites

Installation

# Clone the repository
git clone https://github.com/yourusername/openprompt-uk.git
cd openprompt-uk

# Create virtual environment
python -m venv .venv
source .venv/bin/activate

# Install dependencies
pip install -r requirements.txt

Configuration

Add your Groq API key to .streamlit/secrets.toml:

GROQ_API_KEY = "gsk_your_key_here"

Never commit secrets.toml to version control. It's already in .gitignore.

Run Locally

streamlit run app.py

The app will be available at http://localhost:8501


📁 Project Structure

openprompt-uk/
├── app.py                    # Main application
├── requirements.txt          # Python dependencies
├── .gitignore                # Git ignore rules
├── .streamlit/
│   ├── config.toml           # Streamlit theme config
│   └── secrets.toml          # API keys (not committed)
└── README.md                 # This file

Deployment

Option 1: Streamlit Community Cloud (Free)

  1. Push your code to a GitHub repository
  2. Go to share.streamlit.io
  3. Connect your GitHub repo and select app.py
  4. Add your GROQ_API_KEY in Settings → Secrets:
    GROQ_API_KEY = "gsk_your_key_here"
  5. Click Deploy — your app will be live at https://your-app.streamlit.app

Note: Streamlit Community Cloud does not support custom domain mapping (e.g., openprompt.uk). See Option 2 or 3 below for custom domain hosting.

Option 2: Custom Domain via Reverse Proxy (Recommended for openprompt.uk)

Deploy the Streamlit app on a VPS (e.g., AWS EC2, DigitalOcean, Hetzner) and use Nginx as a reverse proxy:

server {
    listen 80;
    server_name openprompt.uk www.openprompt.uk;

    location / {
        proxy_pass http://localhost:8501;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_read_timeout 86400;
    }
}

Then point your domain's DNS A record to your server IP and add SSL via Let's Encrypt:

sudo apt install certbot python3-certbot-nginx
sudo certbot --nginx -d openprompt.uk -d www.openprompt.uk

Option 3: Embed in Custom Domain Website

If you want to keep using Streamlit Community Cloud but serve it from openprompt.uk:

  1. Deploy to Streamlit Cloud (get https://your-app.streamlit.app)
  2. Host a simple HTML page on openprompt.uk that embeds the Streamlit app via iframe:
<!DOCTYPE html>
<html>
<head>
    <title>OpenPrompt.uk</title>
    <style>
        body { margin: 0; padding: 0; overflow: hidden; }
        iframe { width: 100vw; height: 100vh; border: none; }
    </style>
</head>
<body>
    <iframe src="https://your-app.streamlit.app?embedded=true"></iframe>
</body>
</html>

Environment Variables

Variable Required Description
GROQ_API_KEY Yes Groq API key for prompt generation. Get one free at console.groq.com

Contact


Contributing

We welcome contributions from everyone! Here's how to get started:

  1. Fork the repository
  2. Create a feature branch
    git checkout -b feature/your-feature-name
  3. Make your changes and test locally
    streamlit run app.py
  4. Commit with a clear message
    git commit -m "Add: brief description of your change"
  5. Push and open a Pull Request
    git push origin feature/your-feature-name

💡 Ideas for Contributions

  • 🌍 Add new output languages
  • 🎨 Improve dark/light theme styling
  • 🧠 Better prompt engineering templates
  • 📊 Usage analytics dashboard
  • 🔔 Notification integrations (Discord, Slack, Email)
  • 📱 Mobile-responsive improvements
  • 🧪 Add unit tests

Guidelines

  • Keep the UI simple — OpenPrompt is designed for users new to AI
  • Don't store any user data — privacy is a core principle
  • Test both light and dark mode before submitting

📄 License

Apache 2.0 License — free for personal and commercial use.


OpenPrompt.uk — Empowering prompt engineers worldwide 🌍

About

Multilingual Prompt Generator

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages