English (انگلیسی): markdown
A real-time group chat system with multi-file upload, voice recording, user tagging, and full customization.
- Real-time messaging – Auto-refresh every 3 seconds with typing indicators
- Multi-file upload – Select and send multiple files simultaneously with progress tracking
- No file size limits – Upload any file type (ZIP, APK, images, videos, audio, PDF, documents)
- Voice recording – Record and send voice messages directly from browser
- User tagging – Tag members using
@with auto-complete suggestions - Read receipts – Single tick (sent) / Double tick (delivered/seen)
- Reply to messages – Quote and reply to specific messages
- Message search – Search through entire chat history
- Dark/Light theme – Toggle between themes (saved in localStorage)
- Customizable colors – Change bubble colors for sent and received messages
- Custom background – Set background image with opacity overlay
- Online status – See who's online with animated dot indicator
- Desktop notifications – Get notified when tab is inactive
- Admin panel – Special access for privileged users
- Delete messages – Remove your own messages
- Clear entire chat – Admin-only option to delete all messages
- Sticker/Emoji picker – Quick access to emojis
- File download – Download files with progress bar and cancel option
- Media player – Built-in image, video, and audio players
- Responsive design – Works perfectly on mobile and desktop
| Layer | Technology |
|---|---|
| Backend | PHP 7.4+ with MySQLi |
| Frontend | Vanilla JavaScript (no frameworks) |
| Database | MySQL |
| Styling | CSS3 with RTL support |
| Real-time | AJAX Polling |
| Audio | Web Audio API |
/nafaschat/ ├── chat.php # Main chat interface ├── api.php # RESTful API endpoints ├── config.php # Database configuration ├── connexion.php # Login page ├── deconnexion.php # Logout handler ├── admin.php # Admin dashboard ├── noindex.php # Security file ├── uploads/ # Uploaded files directory └── README.md # Documentation
text
- Clone the repository
git clone https://github.com/mrerfstudio/nafas-chat.git
Create database
sql CREATE DATABASE nafas_chat; Import database schema (run the SQL script)
Configure database Edit config.php:
php $host = 'localhost'; $dbname = 'nafas_chat'; $username = 'your_username'; $password = 'your_password'; Set permissions
bash chmod 755 uploads/ Access the application Open connexion.php in your browser
📱 Responsive Design Fully functional on mobile devices (iOS, Android)
Optimized for tablets and desktops
Touch-friendly buttons and controls
Safe area support for notched phones
🔒 Security SQL injection prevention using prepared statements
XSS protection with htmlspecialchars
Session management with inactive timeout
File upload validation
Access control for admin routes
👨💻 Developer Developed exclusively by: mrerfstudio
Contact: Telegram @mrdevelooper
📄 License All rights reserved. This project is proprietary and owned by mrerfstudio.
Made with ❤️ by mrerfstudio
text
# نفس چت | Nafas Chat 💬
یک سیستم چت گروهی با قابلیت ارسال چند فایل، ضبط صدا، تگ کردن کاربران و سفارشیسازی کامل.
## ✨ امکانات
- **پیامرسانی لحظهای** – بروزرسانی خودکار هر ۳ ثانیه + نمایش وضعیت تایپ
- **ارسال چند فایل** – انتخاب و ارسال همزمان چند فایل با نمایش پیشرفت
- **بدون محدودیت حجم** – آپلود هر نوع فایل (ZIP، APK، عکس، ویدیو، صدا، PDF، مستندات)
- **ضبط صدا** – ضبط و ارسال پیام صوتی مستقیم از مرورگر
- **تگ کردن کاربران** – با علامت @ و پیشنهاد خودکار
- **وضعیت خوانده شدن** – تیک تکی (ارسال) / تیک دوتایی (تحویل/خوانده)
- **پاسخ به پیام** – ریپلای به پیامهای خاص
- **جستجو** – جستجو در تاریخچه کامل چت
- **تم تاریک/روشن** – تغییر تم با ذخیره در مرورگر
- **رنگهای قابل تنظیم** – تغییر رنگ حباب پیامهای خود و دیگران
- **تصویر زمینه** – تنظیم تصویر با افکت شفافیت
- **وضعیت آنلاین** – مشاهده کاربران آنلاین با دات متحرک
- **نوتیفیکیشن دسکتاپ** – اعلان پیامهای جدید در پسزمینه
- **پنل مدیریت** – دسترسی ویژه برای کاربران مدیر
- **حذف پیام** – حذف پیامهای خود
- **پاکسازی کل چت** – فقط برای ادمین
- **استیکر و ایموجی** – دسترسی سریع به ایموجیها
- **پخش رسانه** – پخش داخلی عکس، ویدیو و صدا
- **طراحی واکنشگرا** – عالی روی موبایل و دسکتاپ
## 🛠️ تکنولوژیها
| لایه | تکنولوژی |
|------|-----------|
| بکاند | PHP 7.4+ با MySQLi |
| فرانتاند | جاوااسکریپت خالص |
| دیتابیس | MySQL |
| استایل | CSS3 با پشتیبانی RTL |
| ارتباط لحظهای | AJAX Polling |
| صدا | Web Audio API |
## 📁 ساختار پروژه
/nafaschat/
├── chat.php # صفحه اصلی چت
├── api.php # API endpoints
├── config.php # تنظیمات دیتابیس
├── connexion.php # صفحه ورود
├── deconnexion.php # خروج از حساب
├── admin.php # پنل مدیریت
├── noindex.php # فایل امنیتی
├── uploads/ # پوشه فایلهای آپلود شده
└── README.md # مستندات
text
## 🚀 نصب و راهاندازی
1. **کلون کردن مخزن**
```bash
git clone https://github.com/mrerfstudio/nafas-chat.git
ایجاد دیتابیس
sql
CREATE DATABASE nafas_chat;
وارد کردن ساختار دیتابیس (فایل SQL را اجرا کنید)
تنظیم دیتابیس
فایل config.php را ویرایش کنید:
php
$host = 'localhost';
$dbname = 'nafas_chat';
$username = 'نام_کاربری';
$password = 'رمز_عبور';
تنظیم دسترسی پوشه
bash
chmod 755 uploads/
اجرای برنامه
فایل connexion.php را در مرورگر باز کنید
📱 طراحی واکنشگرا
عملکرد کامل روی موبایل (iOS، Android)
بهینه برای تبلت و دسکتاپ
دکمههای مناسب برای لمس
پشتیبانی از ناچ گوشیها
🔒 امنیت
جلوگیری از SQL Injection با prepared statements
محافظت در برابر XSS با htmlspecialchars
مدیریت نشست کاربران با تایماوت غیرفعالی
اعتبارسنجی آپلود فایل
کنترل دسترسی برای مسیرهای مدیریت
👨💻 سازنده
توسعه اختصاصی توسط: mrerfstudio
ارتباط با ما: تلگرام @mrdevelooper
📄 مجوز
تمامی حقوق محفوظ است. این پروژه متعلق به mrerfstudio میباشد.