Registry / devops / mwp-api-proxy-plugin

mwp-api-proxy-plugin

JSON →
library27.0.28jsnpmunverified

Hapi plugin for the meetup-web-platform that activates REST API proxy behavior + route. Version 27.0.28, part of Meetup's Node.js platform monorepo with frequent releases. Integrates with Hapi.js to proxy API requests, handling authentication, headers, and response transformation. Not intended for general use outside Meetup's ecosystem.

npm install mwp-api-proxy-plugin
INSTALL
IMPORT
SIG · MWP-API-PROXY-PLUG
M
mwp-api-proxy-plugin
devopsjavascriptv27.0.28
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default
import mwpApiProxyPlugin from 'mwp-api-proxy-plugin'
const mwpApiProxyPlugin = require('mwp-api-proxy-plugin')
ESM default export; may work with CJS but recommend ESM pattern.

Registers the mwp-api-proxy-plugin with a Hapi server, configuring API base URL and proxy path.

import Hapi from 'hapi'; import mwpApiProxyPlugin from 'mwp-api-proxy-plugin'; const server = Hapi.server({ port: 3000 }); const start = async () => { await server.register({ plugin: mwpApiProxyPlugin, options: { apiBaseUrl: 'https://api.meetup.com', proxyPath: '/api' } }); await server.start(); console.log('Server running on %s', server.info.uri); }; start();
Debug
Known issues
gotchaPlugin requires Hapi v17+
fix
Ensure Hapi version >=17 is installed.
affects: >=27.0.0
deprecatedOptions object has changed in v27: 'apiBaseUrl' is required.
fix
Update to include 'apiBaseUrl' in options.
affects: <27.0.0
Errors
Common errors & fixes
Error: Cannot find module 'mwp-api-proxy-plugin'
Package not installed or not in node_modules.
fix
Run: npm install mwp-api-proxy-plugin
Upgrade
Version history
27.0.28latest on npm
Audit
Dependencies
hapirequiredpeer dependency for Hapi plugin interface
Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
mwp-api-proxy-plugin — npm install mwp-api-proxy-plugin · libregistry