Configuration
Network Engine Plugins
Advanced networking suite providing Connection Management, Compression, Rate Limiting, and Reverse Proxy capabilities.
Connection Management
Handles HTTP/2 server push, keep-alive, and intelligent connection pooling.
typescript
network: {
connection: {
enabled: true,
http2: { enabled: true, maxConcurrentStreams: 200, serverPush: true },
keepAlive: { enabled: true, timeout: 60000, maxRequests: 200 },
connectionPool: { maxConnections: 2000, idleTimeout: 120000 }
}
}Intelligent Compression
Response compression with threshold detection and multi-algorithm support (Brotli, Gzip).
typescript
network: {
compression: {
enabled: true,
algorithms: ["br", "gzip"],
level: 6, // Balanced CPU vs size
threshold: 1024, // Min size to compress
contentTypes: ["text/html", "application/json", "text/css"]
}
}Rate Limiting
Distributed limiting using XyPriss cache with sliding-window and token-bucket strategies.
typescript
network: {
rateLimit: {
enabled: true,
strategy: "sliding-window",
perIP: { requests: 100, window: "1m" },
headers: { enabled: true, prefix: "X-RateLimit" }
}
}Reverse Proxy & Load Balancing
Enterprise-grade proxy with health checks, failover, and weighted round-robin balancing.
typescript
network: {
proxy: {
enabled: true,
upstreams: [
{ host: "b1.internal", port: 8080, weight: 2 },
{ host: "b2.internal", port: 8080, weight: 1 }
],
loadBalancing: "weighted-round-robin",
healthCheck: { enabled: true, interval: 30000, path: "/health" }
}
}Configs API
Access and manage your server configuration programmatically via the singleton API.
