Official collection of middleware for AdonisJS (Adonis Framework), including BodyParser, CORS, Flash, and Shield. Current version 1.0.14, last updated in 2016. This package is part of the legacy AdonisJS 4.x ecosystem and provides HTTP middleware providers for common web security and request parsing tasks. Unlike third-party middleware packages, these are the officially maintained set, tightly integrated with the framework's provider system. Release cadence is low; package is in maintenance mode as AdonisJS moved to a new architecture in v5. Key differentiator: official, framework-specific middleware providers that register automatically via AdonisJS IoC container.
npm install adonis-middlewareVerified import paths — ran on the pinned version, not inferred.
Register AdonisMiddleware providers in the AdonisJS 4.x app bootstrap file.
Use the built-in middleware or AdonisJS v5 official packages
Update provider path in bootstrap/app.js
Use destructuring: import { Cors } from 'adonis-middleware'npm install adonis-middleware --save
Use import AppMiddlewareProvider from 'adonis-middleware/providers/AppMiddlewareProvider'
Reinstall package: npm install adonis-middleware@1.0.14