A lightweight and fast subscription information panel built with React, shadcn/ui, and Tailwind CSS.
- 🚀 Ultra Lightweight: Optimized for maximum performance
- 🎨 Dual Theme Builds: Separate builds for light and dark modes
- 📱 Responsive Design: Works perfectly on all devices
- 🌐 Persian Language: Optimized for Persian users
- ⚡ Fast Loading: Lazy loading and code splitting
- 🎯 Single File Output: Easy deployment
npm run build:lightOutput: build-light/ directory
npm run build:darkOutput: build-dark/ directory
npm run dev- ✅ Removed react-i18next (Persian only)
- ✅ Removed theme switching (separate builds)
- ✅ Removed js-cookie dependency
- ✅ Lazy loading for components
- ✅ Single file builds with vite-plugin-singlefile
- ✅ Terser minification
- ✅ Optimized CSS with Tailwind
- Light Mode: 344.26 kB (109.40 kB gzipped)
- Dark Mode: 344.28 kB (109.41 kB gzipped)
VITE_SUPPORT_URL=https://t.me/YourSupport
VITE_JSON_APPS_URL=https://your-apps-json-url.com/os.json
VITE_OFF_SECTIONS={"appsBox":true,"logoBox":true,"timeBox":true,"usageBox":true,"userBox":true,"supportBox":true,"configs":true}- Choose your preferred theme (light or dark)
- Run the corresponding build command
- Deploy the generated
build-light/orbuild-dark/directory - The build includes an
index.phpfile for PHP hosting
-
Download the light theme template
sudo wget -N -P /var/lib/marzban/templates/subscription/ https://github.com/MatinDehghanian/LightWaySub/releases/latest/download/index.html
-
Run the following commands in your server terminal
echo 'CUSTOM_TEMPLATES_DIRECTORY="/var/lib/marzban/templates/"' | sudo tee -a /opt/marzban/.env echo 'SUBSCRIPTION_PAGE_TEMPLATE="subscription/index.html"' | sudo tee -a /opt/marzban/.env
Or add the following values to the
.envfile in/opt/marzbandirectory by removing the#at the beginning:CUSTOM_TEMPLATES_DIRECTORY="/var/lib/marzban/templates/" SUBSCRIPTION_PAGE_TEMPLATE="subscription/index.html" -
Restart Marzban
marzban restart
-
Download the dark theme template
# Get the latest dark release URL automatically DARK_URL=$(curl -s https://api.github.com/repos/MatinDehghanian/LightWaySub/releases | grep -E '"browser_download_url".*-dark.*index\.html"' | head -1 | cut -d '"' -f 4) sudo wget -N -P /var/lib/marzban/templates/subscription/ "$DARK_URL"
-
Run the following commands in your server terminal
echo 'CUSTOM_TEMPLATES_DIRECTORY="/var/lib/marzban/templates/"' | sudo tee -a /opt/marzban/.env echo 'SUBSCRIPTION_PAGE_TEMPLATE="subscription/index.html"' | sudo tee -a /opt/marzban/.env
Or add the following values to the
.envfile in/opt/marzbandirectory by removing the#at the beginning:CUSTOM_TEMPLATES_DIRECTORY="/var/lib/marzban/templates/" SUBSCRIPTION_PAGE_TEMPLATE="subscription/index.html" -
Restart Marzban
marzban restart
-
Download the light theme template
sudo wget -N -P /var/lib/marzneshin/templates/subscription/ https://github.com/MatinDehghanian/LightWaySub/releases/latest/download/index.html
-
Run the following commands in your server terminal
echo 'CUSTOM_TEMPLATES_DIRECTORY="/var/lib/marzneshin/templates/"' | sudo tee -a /etc/opt/marzneshin/.env echo 'SUBSCRIPTION_PAGE_TEMPLATE="subscription/index.html"' | sudo tee -a /etc/opt/marzneshin/.env
Or add the following values to the
.envfile in/etc/opt/marzneshindirectory by removing the#at the beginning:CUSTOM_TEMPLATES_DIRECTORY="/var/lib/marzneshin/templates/" SUBSCRIPTION_PAGE_TEMPLATE="subscription/index.html" -
Restart Marzneshin
marzneshin restart
-
Download the dark theme template
# Get the latest dark release URL automatically DARK_URL=$(curl -s https://api.github.com/repos/MatinDehghanian/LightWaySub/releases | grep -E '"browser_download_url".*-dark.*index\.html"' | head -1 | cut -d '"' -f 4) sudo wget -N -P /var/lib/marzneshin/templates/subscription/ "$DARK_URL"
-
Run the following commands in your server terminal
echo 'CUSTOM_TEMPLATES_DIRECTORY="/var/lib/marzneshin/templates/"' | sudo tee -a /etc/opt/marzneshin/.env echo 'SUBSCRIPTION_PAGE_TEMPLATE="subscription/index.html"' | sudo tee -a /etc/opt/marzneshin/.env
Or add the following values to the
.envfile in/etc/opt/marzneshindirectory by removing the#at the beginning:CUSTOM_TEMPLATES_DIRECTORY="/var/lib/marzneshin/templates/" SUBSCRIPTION_PAGE_TEMPLATE="subscription/index.html" -
Restart Marzneshin
marzneshin restart
-
Download the light theme template
sudo wget -N -P /var/lib/pasarguard/templates/subscription/ https://github.com/MatinDehghanian/LightWaySub/releases/latest/download/index.html
-
Run the following commands in your server terminal
echo 'CUSTOM_TEMPLATES_DIRECTORY="/var/lib/pasarguard/templates/"' | sudo tee -a /opt/pasarguard/.env echo 'SUBSCRIPTION_PAGE_TEMPLATE="subscription/index.html"' | sudo tee -a /opt/pasarguard/.env
Or add the following values to the
.envfile in/opt/pasarguarddirectory by removing the#at the beginning:CUSTOM_TEMPLATES_DIRECTORY="/var/lib/pasarguard/templates/" SUBSCRIPTION_PAGE_TEMPLATE="subscription/index.html" -
Restart Pasarguard
pasarguard restart
-
Download the dark theme template
# Get the latest dark release URL automatically DARK_URL=$(curl -s https://api.github.com/repos/MatinDehghanian/LightWaySub/releases | grep -E '"browser_download_url".*-dark.*index\.html"' | head -1 | cut -d '"' -f 4) sudo wget -N -P /var/lib/pasarguard/templates/subscription/ "$DARK_URL"
-
Run the following commands in your server terminal
echo 'CUSTOM_TEMPLATES_DIRECTORY="/var/lib/pasarguard/templates/"' | sudo tee -a /opt/pasarguard/.env echo 'SUBSCRIPTION_PAGE_TEMPLATE="subscription/index.html"' | sudo tee -a /opt/pasarguard/.env
Or add the following values to the
.envfile in/opt/pasarguarddirectory by removing the#at the beginning:CUSTOM_TEMPLATES_DIRECTORY="/var/lib/pasarguard/templates/" SUBSCRIPTION_PAGE_TEMPLATE="subscription/index.html" -
Restart Pasarguard
pasarguard restart
۱. قالب روشن را با دستور زیر دانلود کنید
sudo wget -N -P /var/lib/marzban/templates/subscription/ https://github.com/MatinDehghanian/LightWaySub/releases/latest/download/index.html۲. دستورات زیر را در ترمینال سرورتان وارد کنید
echo 'CUSTOM_TEMPLATES_DIRECTORY="/var/lib/marzban/templates/"' | sudo tee -a /opt/marzban/.env
echo 'SUBSCRIPTION_PAGE_TEMPLATE="subscription/index.html"' | sudo tee -a /opt/marzban/.envیا مقادیر زیر را در فایل .env در پوشه /opt/marzban با پاک کردن # اول آنها از حالت کامنت در بیارید.
CUSTOM_TEMPLATES_DIRECTORY="/var/lib/marzban/templates/"
SUBSCRIPTION_PAGE_TEMPLATE="subscription/index.html"
۳. ریستارت کردن مرزبان
marzban restart۱. قالب تیره را با دستور زیر دانلود کنید
# دریافت خودکار آخرین لینک قالب تیره
DARK_URL=$(curl -s https://api.github.com/repos/MatinDehghanian/LightWaySub/releases | grep -E '"browser_download_url".*-dark.*index\.html"' | head -1 | cut -d '"' -f 4)
sudo wget -N -P /var/lib/marzban/templates/subscription/ "$DARK_URL"۲. دستورات زیر را در ترمینال سرورتان وارد کنید
echo 'CUSTOM_TEMPLATES_DIRECTORY="/var/lib/marzban/templates/"' | sudo tee -a /opt/marzban/.env
echo 'SUBSCRIPTION_PAGE_TEMPLATE="subscription/index.html"' | sudo tee -a /opt/marzban/.envیا مقادیر زیر را در فایل .env در پوشه /opt/marzban با پاک کردن # اول آنها از حالت کامنت در بیارید.
CUSTOM_TEMPLATES_DIRECTORY="/var/lib/marzban/templates/"
SUBSCRIPTION_PAGE_TEMPLATE="subscription/index.html"
۳. ریستارت کردن مرزبان
marzban restart۱. قالب روشن را با دستور زیر دانلود کنید
sudo wget -N -P /var/lib/marzneshin/templates/subscription/ https://github.com/MatinDehghanian/LightWaySub/releases/latest/download/index.html۲. دستورات زیر را در ترمینال سرورتان وارد کنید
echo 'CUSTOM_TEMPLATES_DIRECTORY="/var/lib/marzneshin/templates/"' | sudo tee -a /etc/opt/marzneshin/.env
echo 'SUBSCRIPTION_PAGE_TEMPLATE="subscription/index.html"' | sudo tee -a /etc/opt/marzneshin/.envیا مقادیر زیر را در فایل .env در پوشه /etc/opt/marzneshin با پاک کردن # اول آنها از حالت کامنت در بیارید.
CUSTOM_TEMPLATES_DIRECTORY="/var/lib/marzneshin/templates/"
SUBSCRIPTION_PAGE_TEMPLATE="subscription/index.html"
۳. ریستارت کردن مرزنشین
marzneshin restart۱. قالب تیره را با دستور زیر دانلود کنید
# دریافت خودکار آخرین لینک قالب تیره
DARK_URL=$(curl -s https://api.github.com/repos/MatinDehghanian/LightWaySub/releases | grep -E '"browser_download_url".*-dark.*index\.html"' | head -1 | cut -d '"' -f 4)
sudo wget -N -P /var/lib/marzneshin/templates/subscription/ "$DARK_URL"۲. دستورات زیر را در ترمینال سرورتان وارد کنید
echo 'CUSTOM_TEMPLATES_DIRECTORY="/var/lib/marzneshin/templates/"' | sudo tee -a /etc/opt/marzneshin/.env
echo 'SUBSCRIPTION_PAGE_TEMPLATE="subscription/index.html"' | sudo tee -a /etc/opt/marzneshin/.envیا مقادیر زیر را در فایل .env در پوشه /etc/opt/marzneshin با پاک کردن # اول آنها از حالت کامنت در بیارید.
CUSTOM_TEMPLATES_DIRECTORY="/var/lib/marzneshin/templates/"
SUBSCRIPTION_PAGE_TEMPLATE="subscription/index.html"
۳. ریستارت کردن مرزنشین
marzneshin restart۱. قالب روشن را با دستور زیر دانلود کنید
sudo wget -N -P /var/lib/pasarguard/templates/subscription/ https://github.com/MatinDehghanian/LightWaySub/releases/latest/download/index.html۲. دستورات زیر را در ترمینال سرورتان وارد کنید
echo 'CUSTOM_TEMPLATES_DIRECTORY="/var/lib/pasarguard/templates/"' | sudo tee -a /opt/pasarguard/.env
echo 'SUBSCRIPTION_PAGE_TEMPLATE="subscription/index.html"' | sudo tee -a /opt/pasarguard/.envیا مقادیر زیر را در فایل .env در پوشه /opt/pasarguard با پاک کردن # اول آنها از حالت کامنت در بیارید.
CUSTOM_TEMPLATES_DIRECTORY="/var/lib/pasarguard/templates/"
SUBSCRIPTION_PAGE_TEMPLATE="subscription/index.html"
۳. ریستارت کردن پاسارگارد
pasarguard restart۱. قالب تیره را با دستور زیر دانلود کنید
# دریافت خودکار آخرین لینک قالب تیره
DARK_URL=$(curl -s https://api.github.com/repos/MatinDehghanian/LightWaySub/releases | grep -E '"browser_download_url".*-dark.*index\.html"' | head -1 | cut -d '"' -f 4)
sudo wget -N -P /var/lib/pasarguard/templates/subscription/ "$DARK_URL"۲. دستورات زیر را در ترمینال سرورتان وارد کنید
echo 'CUSTOM_TEMPLATES_DIRECTORY="/var/lib/pasarguard/templates/"' | sudo tee -a /opt/pasarguard/.env
echo 'SUBSCRIPTION_PAGE_TEMPLATE="subscription/index.html"' | sudo tee -a /opt/pasarguard/.envیا مقادیر زیر را در فایل .env در پوشه /opt/pasarguard با پاک کردن # اول آنها از حالت کامنت در بیارید.
CUSTOM_TEMPLATES_DIRECTORY="/var/lib/pasarguard/templates/"
SUBSCRIPTION_PAGE_TEMPLATE="subscription/index.html"
۳. ریستارت کردن پاسارگارد
pasarguard restartبرای بروزرسانی تمپلیت فقط کافیست مرحله ۱ قالب مورد نظرتان را تکرار کنید.
Powered by MatinDehghanian