Mojolicious is a modern, real-time web framework for Perl that ships batteries-included for building both APIs and dynamic web apps. It features a fast non-blocking I/O loop, a built-in HTTP/1.1 and WebSocket server, and first-class support for JSON, templates, and routing. Developers can start small with Mojolicious::Lite, a concise DSL for single-file apps, then grow into a full MVC structure with controllers, plugins, and reusable components. The framework emphasizes developer ergonomics: hot-reloading dev server, powerful testing tools, and a consistent Mojo:: ecosystem for clients, servers, and utilities. Production deployment is first-class too, with the Hypnotoad server offering preforking and zero-downtime restarts. By blending an approachable API with serious performance features, Mojolicious enables everything from tiny services to feature-rich, real-time applications.
Features
- Real-time web framework with RESTful routes, WebSockets, full Unicode support
- Lightweight Mojolicious::Lite micro framework for rapid prototyping
- Built-in template engine (Embedded Perl, ep) for dynamic content rendering
- Session management, form validation, plugin support, command tools
- Built-in non-blocking HTTP server with IPv6, TLS, and CGI/PSGI detection
- Portable across all systems supporting Perl 5, installable via CPAN, pkgsrc, or ActiveState