Perfect-NIO is an HTTP server library built on SwiftNIO for developing web applications, REST APIs and backend services. It replaces the original HTTP server components of the Perfect server-side development ecosystem.
The framework represents routes as composable, strongly typed processing pipelines. Each operation accepts a value and produces another, with the final operation generating an HTTP response. This architecture enables developers to compose request validation, authentication, data transformations and response generation while detecting incompatible types at compile time.
An optional administration console provides a browser-based interface for monitoring server operation and managing TLS configurations. The framework also integrates with other libraries in the Perfect ecosystem, including Perfect-CRUD for database operations.
This is free and open source software.
Key Features
- Asynchronous request handlers with structured concurrency.
- Composable route trees with HTTP method constraints, named wildcards and file extension matching.
- Detects duplicate routes during route construction.
- Decodes JSON, URL-encoded forms and multipart request bodies.
- Provides configurable request body size limits.
- Supports plain text, JSON, binary and streamed HTTP responses.
- Serves static files with ETag validation, conditional requests and byte range support.
- Supports gzip and deflate response compression.
- WebSocket endpoints with configurable message size limits, keepalive intervals and response timeouts.
- Multi-tenant TLS with individual certificates for different domains using Server Name Indication (SNI).
- Automatically reloads updated TLS certificates without dropping existing connections.
- Supports HTTP-01 ACME certificate validation challenges.
- Provides configurable connection idle timeouts.
- Supports graceful server restarts.
- Integrates structured logging through SwiftLog.
- Cross-platform support – runs on Linux and macOS.
Website: github.com/PerfectlySoft/Perfect-NIO
Support:
Developer: PerfectlySoft Inc.
License: Apache License 2.0
Perfect-NIO is written in Swift. Learn Swift with our recommended free books and free tutorials.
Related Software
| Swift Web Frameworks | |
|---|---|
| Vapor | Hugely popular server-side Swift HTTP web framework |
| SwiftNIO | Asynchronous event-driven network application framework |
| Kitura | Web framework and web server created for web services written in Swift |
| Hummingbird | Lightweight, flexible server framework |
| Perfect | Web server and toolkit. Development effectively ceased in 2016 |
| MacroExpress | Small, asynchronous web framework |
| Chaqmoq | Non-blocking server-side web framework |
Read our verdict in the software roundup.
LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more. Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion. Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README. |


Please read our Comment Policy before commenting.