Read in Other Language: Indonesia
Hegypt is a web application designed to tackle one of the biggest challenges in AI interaction: crafting the perfect prompt. This application acts as your personal assistant, guiding you through a structured form to design, save, manage, and reuse ideal prompts for various technical and creative needs.
This project is a complete solution, from brainstorming a prompt in a local environment to making it accessible over the network with a custom domain via a reverse proxy.
- Structured Prompt Form: A methodically designed form with fields for AI Persona, Core Objective, Context, Output Format, and Rules to ensure every generated prompt is rich in detail.
- History Management (CRUD): Save every prompt you create to a database. Easily review, Edit, Update, and Delete old prompts through the history page.
- Automatic Prompt Text Generation: Intelligently combines all inputs from the form into a single, coherent prompt text ready to be copied.
- Network & Custom Domain Accessibility: Designed to be accessible over a local network using the Waitress WSGI server and can be pointed to from a public domain (e.g.,
hegypt.dix.my.id) using Nginx Proxy Manager. - One-Click Windows Launcher: Comes with a
.batscript that automates the entire startup process—activating the virtual environment and starting the server—with a single click from a desktop shortcut.
Category: Technology
Backend: Python, Flask, Flask-SQLAlchemy
Frontend: HTML5, CSS3, JavaScript (Vanilla)
Database: MySQL (for local development)
WSGI Server: Waitress (Cross-platform, ideal for Windows & local networks)
Reverse Proxy: Nginx Proxy Manager (for domain management, SSL, and forwarding)
The request flow when accessed via a domain:
User --> https://hegypt.dix.my.id --> Nginx Proxy Manager --> http://YOUR_LOCAL_IP:5000 --> Waitress Server --> Flask Application
- Python 3.8+
- MySQL Server
- Git
git clone https://github.com/your-username/hegypt-app.git
cd hegypt-app
# Create virtual environment
python -m venv myenv
# Activate on Windows
.\myenv\Scripts\Activate.ps1
# Install all libraries from requirements.txt
pip install -r requirements.txt
Log in to your MySQL client and run the following SQL commands:
CREATE DATABASE hegypt;
CREATE USER 'hegypt'@'localhost' IDENTIFIED BY 'hegypt';
GRANT ALL PRIVILEGES ON hegypt.* TO 'hegypt'@'localhost';
FLUSH PRIVILEGES;
Run the provided script to automatically create the prompt_history table.
python init_database.py
You will see a confirmation message: >>> Database dan tabel 'prompt_history' berhasil dibuat! <<<
- Run the Application: Simply double-click the
start_hegypt.batfile or the desktop shortcut you created. - Automated Process: The script will open a terminal, activate the virtual environment, start the Waitress server, and open your browser to the specified address.
- Use Hegypt:
- Fill out the form on the main page to create a new prompt.
- Click "Generate Prompt." The prompt will be displayed and automatically saved.
- Go to the "View History" page to manage (edit or delete) your prompts.
- Stop the Server: To stop, return to the open terminal window and press
Ctrl + C.
This project is distributed under the MIT License.
Hendrik Mamarodia - GitHub Profile
Project Link: https://github.com/hendoriku/hegypt
Baca dalam bahasa lain: English
Hegypt adalah aplikasi web yang dirancang untuk mengatasi salah satu tantangan terbesar saat berinteraksi dengan AI: membuat *prompt* yang sempurna. Aplikasi ini berfungsi sebagai asisten pribadi Anda, memandu Anda melalui formulir terstruktur untuk merancang, menyimpan, mengelola, dan menggunakan kembali *prompt* yang ideal untuk berbagai kebutuhan teknis dan kreatif.
Proyek ini adalah solusi lengkap, dari pembuatan ide *prompt* di lingkungan lokal hingga siap diakses melalui jaringan dengan domain kustom menggunakan *reverse proxy*.
- Formulir Prompt Terstruktur: Formulir yang dirancang secara metodis dengan *field* untuk Persona AI, Tujuan Utama, Konteks, Format Output, dan Aturan untuk memastikan setiap *prompt* yang dihasilkan kaya akan detail.
- Manajemen Riwayat (CRUD): Simpan setiap *prompt* yang Anda buat ke database. Lihat kembali, Edit, Perbarui, dan Hapus *prompt* lama dengan mudah melalui halaman riwayat.
- Generator Teks Prompt Otomatis: Secara cerdas menggabungkan semua input dari formulir menjadi satu teks *prompt* yang koheren dan siap disalin.
- Akses Jaringan & Domain Kustom: Didesain untuk bisa diakses melalui jaringan lokal menggunakan server WSGI Waitress dan dapat di-pointing dari domain publik (misal:
hegypt.dix.my.id) menggunakan Nginx Proxy Manager. - Peluncur Sekali Klik untuk Windows: Dilengkapi dengan *script*
.batyang mengotomatiskan seluruh proses—aktivasi *virtual environment* dan memulai server—hanya dengan satu kali klik dari *shortcut* desktop.
Kategori: Teknologi
Backend: Python, Flask, Flask-SQLAlchemy
Frontend: HTML5, CSS3, JavaScript (Vanilla)
Database: MySQL (untuk pengembangan lokal)
Server WSGI: Waitress (Cross-platform, ideal untuk Windows & jaringan lokal)
Reverse Proxy: Nginx Proxy Manager (untuk manajemen domain, SSL, dan forwarding)
Alur permintaan saat diakses melalui domain:
Pengguna --> https://hegypt.dix.my.id --> Nginx Proxy Manager --> http://IP_LOKAL_ANDA:5000 --> Server Waitress --> Aplikasi Flask
- Python 3.8+
- MySQL Server
- Git
git clone https://github.com/username-anda/hegypt-app.git
cd hegypt-app
# Buat virtual environment
python -m venv myenv
# Aktifkan di Windows
.\myenv\Scripts\Activate.ps1
# Install semua library dari requirements.txt
pip install -r requirements.txt
Masuk ke MySQL client Anda dan jalankan perintah SQL berikut:
CREATE DATABASE hegypt;
CREATE USER 'hegypt'@'localhost' IDENTIFIED BY 'hegypt';
GRANT ALL PRIVILEGES ON hegypt.* TO 'hegypt'@'localhost';
FLUSH PRIVILEGES;
Jalankan skrip yang telah disediakan untuk membuat tabel prompt_history secara otomatis.
python init_database.py
Anda akan melihat pesan konfirmasi: >>> Database dan tabel 'prompt_history' berhasil dibuat! <<<
- Jalankan Aplikasi: Cukup double-click file
start_hegypt.batatau *shortcut* desktop yang telah Anda buat. - Proses Otomatis: Skrip akan membuka terminal, mengaktifkan lingkungan virtual, memulai server Waitress, dan membuka browser Anda ke alamat yang ditentukan.
- Gunakan Hegypt:
- Isi formulir di halaman utama untuk membuat prompt baru.
- Klik "Generate Prompt". Prompt akan ditampilkan dan otomatis tersimpan.
- Buka halaman "Lihat Riwayat" untuk mengelola (mengedit atau menghapus) prompt Anda.
- Hentikan Server: Untuk berhenti, kembali ke jendela terminal yang terbuka dan tekan
Ctrl + C.
Proyek ini dilisensikan di bawah Lisensi MIT.
Hendrik Mamarodia - Profil GitHub
Link Proyek: https://github.com/hendoriku/hegypt