{"library":"next-compose-middleware","type":"library","category":null,"description":"next-compose-middleware is a library designed to simplify the creation of complex and declarative middleware for Next.js applications, particularly leveraging Next.js's Edge Runtime middleware. It enables developers to construct highly readable and maintainable middleware logic by composing multiple functions. The current stable version is 2.0.4, indicating active development with incremental releases. Key differentiators include its path-based middleware execution, allowing for \"Nested Middleware\" behavior, and the ability to compose functions with early exit mechanisms (`breakAll`, `breakOnce`) for fine-grained control over execution flow. This approach helps in organizing middleware into logical, reusable units, enhancing maintainability for applications with intricate authorization, authentication, or request transformation requirements in a single `middleware.ts` file.","language":"javascript","status":"active","version":"1.0.0","tags":["javascript","next.js","middleware","edge","typescript"],"install":[{"cmd":"npm install next-compose-middleware","imports":["import { composeMiddleware } from 'next-compose-middleware';","import type { ComposableMiddleware } from 'next-compose-middleware';"]},{"cmd":"yarn add next-compose-middleware","imports":[]},{"cmd":"pnpm add next-compose-middleware","imports":[]}],"homepage":null,"github":"https://github.com/kj455/next-compose-middleware","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/next-compose-middleware","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/next-compose-middleware/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Tue Jul 21","install_tag":null}}