{"library":"next-http-proxy-middleware","type":"library","category":null,"description":"next-http-proxy-middleware is a utility that enables HTTP proxying within Next.js API routes, leveraging the widely used `http-proxy` library internally. It provides a straightforward way to forward requests from a Next.js API endpoint to an external target server, handling concerns like `changeOrigin` and path rewriting. The current stable version is 1.2.8. Release cadence appears to be irregular but active, with multiple fixes and minor feature additions within the last year. A key differentiator is its direct integration as a middleware function for Next.js API routes, simplifying setup compared to manually configuring `http-proxy`. However, the library itself recommends considering Next.js's built-in `rewrites` or directly using `http-proxy` for simpler cases, suggesting this library is best suited when its specific `pathRewrite` or `onProxyInit` options are beneficial.","language":"javascript","status":"active","version":"1.2.8","tags":["javascript","reverse","proxy","middleware","http","https","connect","express","websocket","typescript"],"install":[{"cmd":"npm install next-http-proxy-middleware","imports":["import httpProxyMiddleware from 'next-http-proxy-middleware';","import type { NextHttpProxyMiddlewareOptions } from 'next-http-proxy-middleware';","export const config = { api: { externalResolver: true, bodyParser: false } };"]},{"cmd":"yarn add next-http-proxy-middleware","imports":[]},{"cmd":"pnpm add next-http-proxy-middleware","imports":[]}],"homepage":null,"github":null,"docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/next-http-proxy-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-http-proxy-middleware/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Mon Jul 20","install_tag":null}}