Add package.json

This commit is contained in:
andri 2025-09-23 19:45:37 +00:00
parent eaf22d429b
commit 1d26088114
1 changed files with 86 additions and 0 deletions

86
package.json Normal file
View File

@ -0,0 +1,86 @@
{
"name": "whatsapp-hybrid-gateway",
"version": "2.0.0",
"description": "Production-ready WhatsApp Gateway API + Interactive Bot built with Baileys",
"main": "app.js",
"scripts": {
"start": "node app.js",
"dev": "NODE_ENV=development node app.js",
"prod": "pm2 start ecosystem.config.js --env production",
"test": "node test-api.js --quick",
"test:api": "node test-api.js --phone ${TEST_PHONE:-6281234567890}",
"test:bot": "echo 'Send /help to your WhatsApp bot to test interactive features'",
"test:quick": "node test-api.js --quick",
"stop": "pm2 stop whatsapp-gateway || true",
"restart": "pm2 restart whatsapp-gateway || npm run prod",
"logs": "pm2 logs whatsapp-gateway",
"monitor": "pm2 monit",
"status": "pm2 status",
"install:deps": "npm install && npm audit fix",
"clean": "rm -rf node_modules package-lock.json && npm install",
"backup:session": "tar -czf session-backup-$(date +%Y%m%d_%H%M%S).tar.gz session/",
"restore:session": "tar -xzf session-backup-*.tar.gz",
"setup": "cp .env.example .env && echo 'Please edit .env file with your configuration'",
"health": "curl -s http://localhost:${PORT:-5000}/api/health | jq .",
"docs": "echo 'Documentation available at: http://localhost:${PORT:-5000}'"
},
"keywords": [
"whatsapp",
"baileys",
"api-gateway",
"nodejs",
"express",
"multimedia",
"chatbot",
"rest-api",
"webhook",
"automation",
"messaging",
"production",
"systemd",
"pm2"
],
"author": {
"name": "Your Name",
"email": "your.email@example.com",
"url": "https://github.com/yourusername"
},
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/yourusername/whatsapp-hybrid-gateway.git"
},
"bugs": {
"url": "https://github.com/yourusername/whatsapp-hybrid-gateway/issues"
},
"homepage": "https://github.com/yourusername/whatsapp-hybrid-gateway#readme",
"engines": {
"node": ">=16.0.0",
"npm": ">=7.0.0"
},
"dependencies": {
"@whiskeysockets/baileys": "^6.6.0",
"express": "^4.18.2",
"multer": "^1.4.5-lts.1",
"cors": "^2.8.5",
"dotenv": "^16.3.1",
"qrcode-terminal": "^0.12.0"
},
"devDependencies": {
"axios": "^1.6.0",
"form-data": "^4.0.0",
"canvas": "^2.11.2"
},
"optionalDependencies": {
"pm2": "^5.3.0"
},
"os": [
"linux",
"darwin",
"win32"
],
"cpu": [
"x64",
"arm64"
]
}