{"id":31946888,"url":"https://github.com/sachin-duhan/gotify-playground","last_synced_at":"2026-04-20T10:33:34.357Z","repository":{"id":310410373,"uuid":"1039737853","full_name":"sachin-duhan/gotify-playground","owner":"sachin-duhan","description":"Test bed with Node app using Gotify WS server \u0026 load script using vegeta","archived":false,"fork":false,"pushed_at":"2025-08-17T22:08:14.000Z","size":483,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-23T12:02:57.308Z","etag":null,"topics":["docker","golang","gotify","nodejs","vegeta","websocket"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sachin-duhan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-08-17T22:03:17.000Z","updated_at":"2025-08-17T22:23:35.000Z","dependencies_parsed_at":"2025-08-18T00:22:28.425Z","dependency_job_id":null,"html_url":"https://github.com/sachin-duhan/gotify-playground","commit_stats":null,"previous_names":["sachin-duhan/gotify-playground"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sachin-duhan/gotify-playground","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sachin-duhan%2Fgotify-playground","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sachin-duhan%2Fgotify-playground/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sachin-duhan%2Fgotify-playground/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sachin-duhan%2Fgotify-playground/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sachin-duhan","download_url":"https://codeload.github.com/sachin-duhan/gotify-playground/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sachin-duhan%2Fgotify-playground/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32043089,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T10:33:29.490Z","status":"ssl_error","status_checked_at":"2026-04-20T10:32:30.107Z","response_time":94,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","golang","gotify","nodejs","vegeta","websocket"],"created_at":"2025-10-14T11:23:54.910Z","updated_at":"2026-04-20T10:33:34.350Z","avatar_url":"https://github.com/sachin-duhan.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gotify Load Testing Suite\n\nA comprehensive testing and load testing toolkit for [Gotify](https://gotify.net/) server instances.\n\n## 📋 Overview\n\nThis project provides two main components:\n- **Gotify Tester** (`main.js`) - Node.js application for functional testing of Gotify API\n- **Load Testing Suite** (`load.sh`) - Automated performance testing using Vegeta\n\n## 🚀 Quick Start\n\n### Prerequisites\n- Docker \u0026 Docker Compose\n- Node.js \u0026 npm\n- Bash shell\n\n### Setup \u0026 Run\n\n1. **Start Gotify Server**\n   ```bash\n   docker-compose up -d\n   ```\n   Server will be available at `http://localhost:8080`\n   - Username: `admin`\n   - Password: `admin`\n\n2. **Install Dependencies**\n   ```bash\n   npm install axios ws\n   ```\n\n3. **Run Functional Tests**\n   ```bash\n   node main.js\n   ```\n\n4. **Run Load Tests**\n   ```bash\n   chmod +x load.sh\n   ./load.sh\n   ```\n\n## 🔧 Components\n\n### Docker Compose Configuration\n- **Service**: `gotify/server` image\n- **Port**: 8080:80 mapping\n- **Volume**: `./gotify_data` for persistent data\n- **Default credentials**: admin/admin\n\n### Functional Tester (`main.js`)\nNode.js application that performs comprehensive API testing:\n\n**Features:**\n- Client token authentication\n- Application creation \u0026 management\n- Message sending with different priorities\n- Real-time WebSocket message listening\n- Message retrieval and cleanup\n\n**Test Flow:**\n1. Obtains client authentication token\n2. Creates test application\n3. Establishes WebSocket connection\n4. Sends test messages (low, normal, high priority)\n5. Retrieves all messages\n6. Cleans up test data\n\n### Load Testing Suite (`load.sh`)\n\n**Test Scenarios:**\n- **Light Load**: 10 req/s for 30s (small messages)\n- **Medium Load**: 50 req/s for 60s (medium messages)  \n- **Heavy Load**: 100 req/s for 30s (small messages)\n- **Burst Test**: 200 req/s for 10s (small messages)\n- **Large Message Test**: 20 req/s for 30s (large messages)\n- **Stress Test**: Maximum rate for 15s (small messages)\n\n**Generated Reports:**\n- Text reports with latency statistics\n- JSON reports for programmatic analysis\n- HTML plots for visual analysis\n- Histogram data for response time distribution\n- Combined summary report\n- HTML index for easy navigation\n\n## 📊 Output Files\n\nLoad test results are saved in `vegeta_results/` directory:\n- `*_report.txt` - Detailed text reports\n- `*_report.json` - JSON formatted results\n- `*_plot.html` - Visual performance plots\n- `*_histogram.txt` - Response time histograms\n- `combined_report_*.txt` - Summary of all tests\n- `index_*.html` - Navigation page for all results\n\n## 📝 Customization\n\n### Modify Test Parameters\nEdit configuration variables in the scripts:\n- `GOTIFY_URL` - Server endpoint\n- `USERNAME`/`PASSWORD` - Authentication credentials\n- Load test rates and durations in `load.sh`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsachin-duhan%2Fgotify-playground","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsachin-duhan%2Fgotify-playground","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsachin-duhan%2Fgotify-playground/lists"}