A web server component for the pixl-server framework, supporting HTTP and HTTPS, static file serving, custom URI handlers, access control, request logging, and performance monitoring. Current stable version is 3.0.4. Release cadence is moderate; breaking changes are rare but documented. Key differentiators: deep integration with pixl-server ecosystem, extensive configuration options, and built-in support for features like compression, keep-alive, and request queuing.
npm install pixl-server-webVerified import paths — ran on the pinned version, not inferred.
Initializes a pixl-server with the web component, serving static files from /var/www/html on port 8080.
Add 'legacy_callback_support: true' to web config.
Set 'log_requests: false' to suppress logs.
Rename config key to 'recent_requests_max'.
Set proper file permissions or run process with elevated privileges.
Use require() instead of import.
Ensure all static files are within htdocs_dir.
Run 'npm install pixl-server pixl-server-web'.
Pass { __main: require('pixl-server-web'), web: {...} } to server.start().Change the port in config or kill the process using that port.
Send valid JSON with Content-Type: application/json.
Verify https_cert_file and https_key_file paths and permissions.