{"id":15064690,"url":"https://github.com/mrgkanev/webserver","last_synced_at":"2026-02-13T06:05:01.431Z","repository":{"id":254582978,"uuid":"846960344","full_name":"MrGKanev/webserver","owner":"MrGKanev","description":"web-based tool for calculating resource usage and generating configuration files for various web servers. It helps system administrators and developers optimize their web server setups based on their specific requirements","archived":false,"fork":false,"pushed_at":"2025-03-11T13:36:45.000Z","size":34,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-01T07:55:43.721Z","etag":null,"topics":["apache","caddy","lighttpd","nginx","webserver"],"latest_commit_sha":null,"homepage":"http://webserver.gkanev.com/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MrGKanev.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2024-08-24T12:56:22.000Z","updated_at":"2025-03-11T13:36:49.000Z","dependencies_parsed_at":"2024-10-13T00:21:21.862Z","dependency_job_id":"c5e44632-722f-4639-9fd1-1f1853d820cc","html_url":"https://github.com/MrGKanev/webserver","commit_stats":null,"previous_names":["mrgkanev/webserver"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/MrGKanev/webserver","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrGKanev%2Fwebserver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrGKanev%2Fwebserver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrGKanev%2Fwebserver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrGKanev%2Fwebserver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MrGKanev","download_url":"https://codeload.github.com/MrGKanev/webserver/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrGKanev%2Fwebserver/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274417442,"owners_count":25281111,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-10T02:00:12.551Z","response_time":83,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["apache","caddy","lighttpd","nginx","webserver"],"created_at":"2024-09-25T00:25:06.110Z","updated_at":"2026-02-13T06:05:01.426Z","avatar_url":"https://github.com/MrGKanev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Web Server Resource Calculator and Config Generator\n\nA free, open-source web tool for calculating server resource usage and generating optimized configuration files for Apache, Nginx, Lighttpd, and Caddy web servers.\n\n**Live Demo:** [https://webserver.gkanev.com/](https://webserver.gkanev.com/)\n\n## Features\n\n- **Multi-Server Support:** Generate configurations for Apache, Nginx, Lighttpd, and Caddy\n- **Resource Calculator:** Estimate memory and CPU usage with visual progress bars\n- **PHP 8.5 Support:** Built-in support for PHP versions 7.4 through 8.5 (2026)\n- **Server Presets:** Quick configuration for Small VPS, Medium, Large, and Dedicated servers\n- **Shareable Configs:** Generate URLs to share your exact configuration\n- **Copy to Clipboard:** One-click copy of generated configurations\n- **Performance Recommendations:** Get server-specific optimization tips\n- **Downloadable Configs:** Export ready-to-use configuration files\n- **Modern UI:** Beautiful gradient design with SVG icons\n- **Responsive Design:** Works on desktop and mobile devices\n- **Accessibility:** WCAG-compliant with full keyboard navigation and screen reader support\n\n## How It Works\n\nThe calculator uses industry-standard resource estimates for each web server:\n\n| Server    | Memory/Worker | Memory/Connection | CPU/Connection |\n|-----------|--------------|-------------------|----------------|\n| Apache    | 20 MB        | 0.5 MB            | 5%             |\n| Nginx     | 10 MB        | 0.25 MB           | 2.5%           |\n| Lighttpd  | 5 MB         | 0.2 MB            | 2%             |\n| Caddy     | 15 MB        | 0.3 MB            | 3%             |\n\n**PHP Overhead:** When PHP is enabled, add ~20 MB per worker and ~5% CPU per connection.\n\n## Quick Start\n\n1. Open `index.html` in a web browser (or visit the [live demo](https://webserver.gkanev.com/))\n2. Select your web server type\n3. Enter your domain and server specifications:\n   - Concurrent connections (expected simultaneous users)\n   - Number of workers/processes (usually = CPU cores)\n   - Available memory (MB)\n   - CPU cores\n   - PHP version (if needed)\n4. View estimated resource usage and recommendations\n5. Download the generated configuration file\n\n## Configuration Guidelines\n\n### Workers vs CPU Cores\n\n- **General rule:** Set workers = number of CPU cores\n- **CPU-bound tasks:** Use 1 worker per core\n- **I/O-bound tasks:** Consider 2x the number of cores\n\n### Choosing a Web Server\n\n| Server    | Best For                                          |\n|-----------|---------------------------------------------------|\n| **Nginx** | High traffic, static files, reverse proxy         |\n| **Apache**| Maximum compatibility, .htaccess support          |\n| **Caddy** | Easy setup, automatic HTTPS, HTTP/3               |\n| **Lighttpd** | Low-resource systems, embedded devices        |\n\n## Development\n\n### Prerequisites\n\n- Node.js (for Tailwind CSS compilation)\n\n### Build Commands\n\nWatch for CSS changes during development:\n\n```bash\nnpx @tailwindcss/cli -i ./assets/style.css -o ./assets/style.min.css --watch\n```\n\nBuild minified CSS for production:\n\n```bash\nnpx @tailwindcss/cli -i ./assets/style.css -o ./assets/style.min.css --minify\n```\n\n### Project Structure\n\n```\nwebserver/\n├── index.html          # Main application\n├── assets/\n│   ├── script.js       # Calculator logic\n│   ├── style.css       # Tailwind source\n│   └── style.min.css   # Compiled CSS\n├── .github/\n│   └── workflows/\n│       └── static.yml  # GitHub Pages deployment\n├── package.json\n├── LICENSE\n└── readme.md\n```\n\n## SEO \u0026 Accessibility\n\nThis project includes:\n\n- **Structured Data:** JSON-LD schema for WebApplication and FAQPage\n- **Open Graph \u0026 Twitter Cards:** Optimized social sharing\n- **ARIA Labels:** Full accessibility support\n- **Semantic HTML:** Proper heading hierarchy and landmarks\n- **Mobile-First:** Responsive design with touch-friendly targets\n\n## Browser Support\n\n- Chrome 80+\n- Firefox 75+\n- Safari 13+\n- Edge 80+\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n1. Fork the repository\n2. Create your feature branch (`git checkout -b feature/amazing-feature`)\n3. Commit your changes (`git commit -m 'Add amazing feature'`)\n4. Push to the branch (`git push origin feature/amazing-feature`)\n5. Open a Pull Request\n\n## License\n\nThis project is open source and available under the [MIT License](LICENSE).\n\n## Author\n\n**Gabriel Kanev** - [https://gkanev.com/](https://gkanev.com/)\n\n## Changelog\n\n### v1.2 (January 2026)\n\n- **PHP 8.5 Support:** Added latest PHP version with updated labels (Latest, Stable, Recommended, LTS, EOL)\n- **Modern UI Redesign:**\n  - Gradient backgrounds and rounded corners\n  - SVG icons throughout the interface\n  - Visual progress bars for memory and CPU usage (color changes based on load)\n  - Animated \"Updated for 2026\" badge\n- **Server Presets:** Visual cards with emoji icons for quick server configuration\n- **Enhanced Buttons:** Copy, Share, and Download buttons with icons and hover effects\n- **Dark Config Output:** Code block now uses dark theme for better readability\n- **Expanded FAQ:** Added more questions about PHP versions, sharing, and production use\n- **Updated SEO:**\n  - 2026 keywords and descriptions\n  - Aggregate rating schema\n  - More FAQ entries in JSON-LD\n  - Updated meta tags with current year\n- **Quick Reference Improvements:** Added high traffic threshold guidance\n- **Improved Share Notification:** Better visual feedback with checkmark icon\n\n### v1.1\n\n- Added JSON-LD structured data for better SEO\n- Improved accessibility with ARIA labels\n- Added FAQ section with collapsible answers\n- Added Quick Reference guide\n- Fixed memory leak with blob URLs\n- Refactored JavaScript with constants for better maintainability\n- Added input validation with min/max limits\n- Improved meta tags for social sharing\n- Added PHP version labels (Latest, Recommended, LTS, Legacy)\n- Enhanced form field descriptions\n\n### v1.0\n\n- Initial release\n- Support for Apache, Nginx, Lighttpd, and Caddy\n- Resource calculator\n- Configuration generator\n- PHP-FPM support\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrgkanev%2Fwebserver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrgkanev%2Fwebserver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrgkanev%2Fwebserver/lists"}