Build toolBuild tooltypeRuns at build time. Nothing of it ships in the deployed application.See every one →What this type is →independently maintainedindependently maintainedoriginPublished by one person or a small company outside SAP. Says nothing about quality; the readings say that.See every one →

ui5-middleware-route-proxy

A UI5 server middleware that forwards requests matching a route prefix to a backend host, configured per route in ui5.yaml, with credentials read from a .env file rather than the yaml.

A UI5 app served by the UI5 tooling calls backend paths such as /sap, which the dev server does not answer. This middleware for ui5-server matches requests by route prefix and forwards them to a target host, configured per route under server/customMiddleware in ui5.yaml: target is the host, replacePath strips the prefix from the forwarded path, auth takes a user, a password and an optional SAP client or a single Authorization header value, and changeOrigin is passed to http-proxy. Any value can name a variable in a .env file instead of holding the value, which keeps credentials out of the yaml. It is a development dependency that also has to be listed under ui5 > dependencies in package.json, because the UI5 tooling does not read devDependencies.

Facts

Latestv1.0.10ReleasedLast pushLicenceMIT

Where it sits

Lives in
Provides
Build and dev-server toolingUI5Build and dev-server toolingcapabilityServing an app locally and building it for deployment — proxying a backend, transpiling, bundling, and shaping the result for whatever will host it.

Who is behind it

Wouter LemaireWouter LemairePersonMaintains this
In the atlas: maintains 25, contributes to 39, wrote 12
@lemaiwo
maintainerFrank StødlePersonContributes to this
In the atlas: contributes to 1
@blahbap
faustefanPersonContributes to this
In the atlas: contributes to 1
@faustefan
Jorge SanchoPersonContributes to this
In the atlas: maintains 1, contributes to 4
@rayatus
BrianPersonContributes to this
In the atlas: contributes to 1
@toadslop
Jakob Marius KjaerPersonContributes to this
In the atlas: maintains 2, contributes to 24, wrote 1
@uxkjaer
5 contributors

Before choosing this

Signals

ActivityQuietRelease and repository quiet for 36 months

Both observable publication channels have been quiet for at least 24 full months. This may be normal for stable software; check whether its current state still fits your use.

What it declares

Every artifact

Type
Build tool
Origin
Independently maintained
Runtime
build time

As a build tool

Distributed through
npm

Connections1

Install

npm add ui5-middleware-route-proxy

Derived from the package name. No recipe recorded; the README has the configuration.

README

quoted from lemaiwo/ui5-middleware-route-proxy under MIT, read
lemaiwo/ui5-middleware-route-proxy/README.mdOn GitHub

UI5 proxy middleware using routes

Middleware for ui5-server, enabling proxy support.

Install

npm install ui5-middleware-route-proxy --save-dev

Configuration options (in $yourapp/ui5.yaml)

  • debug: boolean enable logging
  • root directory of the request uri: object used to match and forward requests to your server. Needs to include the leading slash character (/).
    • target: string hostname of your backend server
    • replacePath: string optional. If the request path needs to be modified by taking out the root directory uri
    • auth: object authorization object with username and password ( pass false if authorization is not required )
      • user: string
      • pass: string
      • client: string optional. If the client is not the default client on the SAP system
      • header: string optional. Is used as value for the Authorization header if available. user and pass values are not used in this case.
    • changeOrigin: boolean optional. If provided, the value will be added to the options of the http-proxy.

Each boolean or string field in a root path object can either represent the actual value or the name of a parameter in a .env file.

Example:

      debug: true
      /sap: 
        target: http(s)://host:port
        replacePath: true
        auth:
          user: Username
          pass: Password!
          client: '100' 

Example with target/user/pass in .env file:

      debug: true
      /sap: 
        target: PROXY_TARGET
        auth:
          user: PROXY_USERNAME
          pass: PROXY_PASSWORD
          client: PROXY_CLIENT

Example with target and dedicated Authorization header in .env file:

      debug: true
      /sap: 
        target: PROXY_TARGET
        auth:
          header: PROXY_AUTHORIZATION
        changeOrigin: true

Usage

  1. Define the dependency in $yourapp/package.json:
"devDependencies": {
    // ...
    "ui5-middleware-route-proxy": "*"
    // ...
},
"ui5": {
  "dependencies": [
    // ...
    "ui5-middleware-route-proxy",
    // ...
  ]
}

As the devDependencies are not recognized by the UI5 tooling, they need to be listed in the ui5 > dependencies array. In addition, once using the ui5 > dependencies array you need to list all UI5 tooling relevant dependencies.

  1. configure it in $yourapp/ui5.yaml:
server:
  customMiddleware:
  - name: ui5-middleware-route-proxy
    afterMiddleware: compression
    configuration:
      debug: true
      /routeRootPath: 
        target: PROXY_TARGET
        auth:
          user: PROXY_USERNAME
          pass: PROXY_PASSWORD
  1. Add a .env file with your target, username and password for the proxy:
PROXY_TARGET=<http(s)://host:port>
PROXY_USERNAME=<username>
PROXY_PASSWORD=<password>
MIT, read

History

Latest

v1.0.10

  1. v1.0.9

    Notes

    Publish new version to npm with support for karma headers

  2. v1.0.8

    Notes

    Auto publish new version to npm

  3. v1.0.7

    Notes

    Auto publish new version to npm

  4. v1.0.6

    Notes

    Auto publish new version to npm

  5. v1.0.5

    Notes

    Auto publish new version of the UI5 middleware route proxy to npm by using GitHub actions

227downloads per week, npm
Weekly downloads for ui5-middleware-route-proxy26 complete calendar weeks from 2026-04-20 to 2026-10-18; the latest total is 227.20 Apr – 26 Apr: 28827 Apr – 3 May: 4374 May – 10 May: 51511 May – 17 May: 45218 May – 24 May: 29425 May – 31 May: 1641 Jun – 7 Jun: 3478 Jun – 14 Jun: 36815 Jun – 21 Jun: 21522 Jun – 28 Jun: 24129 Jun – 5 Jul: 4316 Jul – 12 Jul: 32513 Jul – 19 Jul: 36920 Jul – 26 Jul: 24727 Jul – 2 Aug: 4283 Aug – 9 Aug: 55010 Aug – 16 Aug: 37517 Aug – 23 Aug: 67424 Aug – 30 Aug: 72031 Aug – 6 Sept: 2167 Sept – 13 Sept: 26614 Sept – 20 Sept: 70921 Sept – 27 Sept: 76028 Sept – 4 Oct: 1,1695 Oct – 11 Oct: 35612 Oct – 18 Oct: 227
Build and dev-server tooling
  1. UI5 ToolsVS Code extension to serve, proxy, build and deploy UI5 projectsfrom UI5
  2. ui5-task-cachebuster-indexingUI5 builder task preparing build output for the cachebusterfrom UI5
  3. ui5-task-transpile-genUI5 builder task transpiling ES6 to ES5 with Babelfrom UI5
  4. ui5-middleware-odata-recorderUI5 middleware recording OData traffic as mock server datasetsfrom UI5
  5. ui5-plugin-loaderUI5 Tooling v4 extension that registers other extensionsfrom UI5
  6. ui5-deployerUI5 Tooling module deploying Fiori/UI5 apps to SAP systemsfrom UI5
  7. ui5-task-dts-generatorUI5 builder task generating d.ts type declarationsfrom UI5
  8. ui5-task-minifierUI5 builder task minifying HTML, CSS and JSON filesfrom UI5
  9. ui5-middleware-oidcUI5 dev server middleware adding an OpenID Connect loginfrom UI5
  10. generator-ui5-library-af-deployYeoman generator for Application Frontend config in UI5 librariesfrom UI5
  11. ui5-middleware-destinationUI5 Tooling middleware proxying destinations and neo-app.json routesfrom UI5
  12. ui5-task-check-eocpUI5 build task warning when the app's UI5 version reaches EOCPfrom UI5
  13. @ui5/cliUI5 Tooling command line for project setup, dev server and buildfrom UI5
  14. ui5-task-btp-manifestUI5 Tooling task writing the service name into the importer manifestfrom UI5
  15. ui5-middleware-approuterUI5 CLI middleware proxying the dev server through @sap/approuterfrom UI5
  16. ui5-middleware-capUI5 CLI middleware running a CDS server inside the UI5 dev serverfrom UI5
  17. ui5-middleware-hmrExperimental UI5 middleware for hot module replacementfrom UI5
  18. ui5-middleware-iasyncUI5 middleware syncing interactions across browsers over websocketfrom UI5
  19. ui5-middleware-indexUI5 middleware serving a chosen welcome page at the root pathfrom UI5
  20. ui5-middleware-livereloadLive reload middleware for the UI5 dev serverfrom UI5
  21. ui5-middleware-oneloginUI5 middleware logging in with Playwright and reusing the sessionfrom UI5
  22. ui5-middleware-serveframeworkUI5 middleware serving a locally built UI5 frameworkfrom UI5
  23. ui5-middleware-servestaticUI5 middleware serving static resources from a path or npm packagefrom UI5
  24. ui5-middleware-simpleproxyDev-server middleware proxying requests to a backend systemfrom UI5
  25. ui5-middleware-ui5UI5 middleware including one UI5 application in anotherfrom UI5
  26. ui5-middleware-webjarsUI5 middleware serving static resources from JAR files (WebJars)from UI5
  27. ui5-middleware-websocketWebSocket support for Express-based dev servers such as UI5'sfrom UI5
  28. ui5-task-cachebusterUI5 builder task cachebusting standalone UI5 applicationsfrom UI5
  29. ui5-task-copyrightUI5 builder task appending copyright headers to source filesfrom UI5
  30. ui5-task-flatten-libraryUI5 builder task flattening library output for SAP NetWeaverfrom UI5
  31. ui5-task-i18ncheckUI5 builder task checking XML views for missing i18n textsfrom UI5
  32. ui5-task-minify-xmlUI5 builder task minifying XML views and fragmentsfrom UI5
  33. ui5-task-pwa-enablerUI5 builder task turning a UI5 app into a progressive web appfrom UI5
  34. ui5-task-zipperBuild task packaging the UI5 build result as a zip archivefrom UI5
  35. ui5-tooling-lessUI5 CLI extension compiling Less files into CSSfrom UI5
  36. ui5-tooling-modulesUI5 tooling extensions loading npm packages as UI5 modulesfrom UI5
  37. ui5-tooling-stringreplaceUI5 CLI extension for string replacement during the buildfrom UI5
  38. ui5-tooling-transpileUI5 CLI extension transpiling code during the UI5 buildfrom UI5
  39. @ui5/loggerInternal logger of the UI5 CLIfrom UI5
  40. @ui5/middleware-code-coverageUI5 CLI middleware for Istanbul code coveragefrom UI5
  41. @ui5/tooling-webcDeprecated UI5 Tooling extensions for UI5 Web Components wrappersfrom UI5

Details

Sources4
Added by handdiscovered herechecked
npm registry, ui5-middleware-route-proxyversion, releases, installschecked
github.com/git+https://github.com/lemaiwo/ui5-middleware-route-proxy.gittree, pushes, contributors, CIchecked
README.mdquoted, and what the entry declareschecked

Sources are graph entities: the same page may back several entries, and an unreachable source flags every row that rests on it.

Compatibility and provenance
runtimesbuild-time
latestv1.0.10
first release
releases and cadence10, ~39d median
discovered viaAdded by hand
first seen in the atlas
ecosystem and domainui5, developer-experience
Contributors5

From the repository’s contributor list, .

History in the atlas1
  1. First seen.
For your agent
Ref
artifact:lemaiwo-ui5-middleware-route-proxy
JSON
/artifacts/lemaiwo-ui5-middleware-route-proxy.json
MCP
Connecting an agent