Build toolBuild tooltypeRuns at build time. Nothing of it ships in the deployed application.See every one →What this type is →by a community orgby a community orgoriginPublished by a community organisation, so it outlives any one maintainer.See every one →

ui5-middleware-websocket

UI5 middleware utilities that add WebSocket support to Express-based dev servers such as the UI5 server, which has no WebSocket channel of its own.

The UI5 tooling dev server runs on Express, which has no WebSocket channel of its own. This middleware supplies one, described as UI5 middleware utilities to enable WebSockets for Express servers like the UI5 server.

Facts

Latestv3.2.2ReleasedLast pushLicenceApache-2.0

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

UI5 CommunityUI5 CommunityOrganisationMaintains this
In the atlas: maintains 69
@ui5-community
maintainerFlorian VogtPersonContributes to this
In the atlas: contributes to 50, wrote 2
@flovogt
Peter MuessigPersonContributes to this
In the atlas: maintains 14, contributes to 80, wrote 1
@petermuessig
2 contributors

What it declares

Every artifact

Type
Build tool
Origin
By a community org

As a build tool

Distributed through
npm

Connections1

Install

npm add ui5-middleware-websocket

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

README

quoted from ui5-community/ui5-ecosystem-showcase under Apache-2.0, read
ui5-community/ui5-ecosystem-showcase/packages/ui5-middleware-websocket/README.mdOn GitHub

UI5 middleware to enable websockets

👋 This is an open‑source, community‑driven project, developed and actively monitored by members of the UI5 community. You are welcome to use it, report issues, contribute enhancements, and support others in the community.

Middleware for ui5-server to demo WebSocket usage with an simple echo service.

Prerequisites

⚠️ UI5 CLI Compatibility All releases of this UI5 CLI extension using the major version 3 require UI5 CLI V3. Any previous releases below major version 3 (if available) also support older versions of the UI5 CLI. But the usage of the latest UI5 CLI is strongly recommended!

Install

npm install ui5-middleware-websocket --save-dev

Usage

  1. Define the dependency in $yourapp/package.json:
"devDependencies": {
    // ...
    "ui5-middleware-websocket-echo": "*"
    // ...
}
  1. configure it in $yourapp/ui5.yaml:
server:
  customMiddleware:
  - name: ui5-middleware-websocket-echo
    afterMiddleware: compression
    mountPath: /wsecho

How it works

The middleware uses the utility function websocket which allows to inject a WebSocket middleware function into a UI5 middleware function:

const websocket = require("ui5-middleware-websocket/lib/websocket");

/**
 * WebSocket middleware to act as an echo service.
 *
 * @param {object} parameters Parameters
 * @param {@ui5/logger/Logger} parameters.log Logger instance
 * @returns {Function} Middleware function to use
 */
module.exports = ({ log }) => {
  return websocket(function echo(ws, req /*, next */) {
    ws.on("message", function (message) {
      log.info(`message: ${message}`);
      ws.send(`echo ${message}`);
    });
    log.info(`Connection established with ${req.url}`);
  });
};

License

This work is licensed under Apache 2.0.

Built with care (and a lot of caffeine). If this helped you build, test, or ship, the next coffee — or drink — is on you when you bump into a contributor.

Apache-2.0, read

History

Latest

v3.2.2

Fixes 1

Notes
Patch Changes
  • #1370 dd71c42 Thanks @petermuessig! - Bump runtime dependencies to clear open dependabot alerts and pick up upstream patch releases:
    • cds-plugin-ui5: semver ^7.8.0 → ^7.8.1
    • ui5-middleware-approuter: @sap/approuter ^22.0.0 → ^22.0.1
    • ui5-middleware-serveframework: node-fetch ^2.7.0 → ^3.3.2
    • ui5-middleware-websocket: ws ^8.20.1 → ^8.21.0
    • ui5-task-copyright: @typescript-eslint/typescript-estree ^8.59.3 → ^8.60.0
    • ui5-tooling-transpile: @babel/core, @babel/preset-env, @babel/preset-typescript → ^7.29.7

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

  1. v3.2.1

    Notes

    Note: Version bump only for package ui5-middleware-websocket

  2. v3.2.0

    Features 1

    Notes
    Features
  3. v3.1.6

    Notes

    Note: Version bump only for package ui5-middleware-websocket

  4. v3.1.5

    Notes

    Note: Version bump only for package ui5-middleware-websocket

  5. v3.1.4

    Notes

    Note: Version bump only for package ui5-middleware-websocket

  6. v3.1.3

    Notes

    Note: Version bump only for package ui5-middleware-websocket

  7. v3.1.2

    Fixes 1

    Notes
    Bug Fixes
  8. v3.1.1

    Notes

    Note: Version bump only for package ui5-middleware-websocket

  9. v3.1.0

    Features 1

    Notes
    Features
    • enhanced v4 compat + update dependencies (#1070) (2d7ed16)
  10. v3.0.5

    Notes

    Note: Version bump only for package ui5-middleware-websocket

  11. v3.0.4

    Notes

    Note: Version bump only for package ui5-middleware-websocket

  12. v3.0.3

    Notes

    Note: Version bump only for package ui5-middleware-websocket

  13. v3.0.2

    Notes

    Note: Version bump only for package ui5-middleware-websocket

  14. v3.0.1

    Notes

    Note: Version bump only for package ui5-middleware-websocket

  15. v3.0.0

    Breaking 1, Features 1

    Notes
    Features
    • remove alpha version from ui5-middleware-[serveframework|ui5|websocket] (8d980ff)
    BREAKING CHANGES
    • remove alpha version suffix
  16. v3.0.0-alpha.8

    Notes

    Note: Version bump only for package ui5-middleware-websocket

  17. v3.0.0-alpha.7

    Notes

    Note: Version bump only for package ui5-middleware-websocket

  18. v3.0.0-alpha.6

    Notes

    Note: Version bump only for package ui5-middleware-websocket

  19. v3.0.0-alpha.5

    Notes

    Note: Version bump only for package ui5-middleware-websocket

  20. v3.0.0-alpha.4

    Fixes 1

    Notes
    Bug Fixes
    • ui5-middleware-ui5: ensure middlware stack order when hooking (#865) (7fd61f2)
  21. v3.0.0-alpha.3

    Notes

    Note: Version bump only for package ui5-middleware-websocket

  22. v3.0.0-alpha.2

    Fixes 1

    Notes
    Bug Fixes
    • ui5-middleware-websocket: support express.Router usage (#851) (43df10c)
  23. v3.0.0-alpha.1

    Features 1

    Notes
    Features
    • ui5-middleware-websocket: enable websocket support for UI5 server (#819) (9582167), closes #557
17downloads per week, npm
Weekly downloads for ui5-middleware-websocket26 complete calendar weeks from 2026-04-27 to 2026-10-25; the latest total is 17.27 Apr – 3 May: 684 May – 10 May: 2511 May – 17 May: 10018 May – 24 May: 20425 May – 31 May: 1821 Jun – 7 Jun: 768 Jun – 14 Jun: 5615 Jun – 21 Jun: 3922 Jun – 28 Jun: 6929 Jun – 5 Jul: 306 Jul – 12 Jul: 2613 Jul – 19 Jul: 1520 Jul – 26 Jul: 6227 Jul – 2 Aug: 163 Aug – 9 Aug: 5910 Aug – 16 Aug: 6117 Aug – 23 Aug: 2824 Aug – 30 Aug: 731 Aug – 6 Sept: 127 Sept – 13 Sept: 4114 Sept – 20 Sept: 1121 Sept – 27 Sept: 3328 Sept – 4 Oct: 325 Oct – 11 Oct: 912 Oct – 18 Oct: 1419 Oct – 25 Oct: 17
Build and dev-server tooling
  1. UI5 ToolsVS Code extension to serve, proxy, build and deploy UI5 projects
  2. ui5-middleware-route-proxyUI5 server middleware proxying route prefixes to a backend
  3. ui5-task-cachebuster-indexingUI5 builder task preparing build output for the cachebuster
  4. ui5-task-transpile-genUI5 builder task transpiling ES6 to ES5 with Babel
  5. ui5-middleware-odata-recorderUI5 middleware recording OData traffic as mock server datasets
  6. ui5-plugin-loaderUI5 Tooling v4 extension that registers other extensions
  7. ui5-deployerUI5 Tooling module deploying Fiori/UI5 apps to SAP systems
  8. ui5-task-dts-generatorUI5 builder task generating d.ts type declarations
  9. ui5-task-minifierUI5 builder task minifying HTML, CSS and JSON files
  10. ui5-middleware-oidcUI5 dev server middleware adding an OpenID Connect login
  11. generator-ui5-library-af-deployYeoman generator for Application Frontend config in UI5 libraries
  12. ui5-middleware-destinationUI5 Tooling middleware proxying destinations and neo-app.json routes
  13. ui5-task-check-eocpUI5 build task warning when the app's UI5 version reaches EOCP
  14. @ui5/cliUI5 Tooling command line for project setup, dev server and build
  15. ui5-task-btp-manifestUI5 Tooling task writing the service name into the importer manifest
  16. ui5-middleware-approuterUI5 CLI middleware proxying the dev server through @sap/approuter
  17. ui5-middleware-capUI5 CLI middleware running a CDS server inside the UI5 dev server
  18. ui5-middleware-hmrExperimental UI5 middleware for hot module replacement
  19. ui5-middleware-iasyncUI5 middleware syncing interactions across browsers over websocket
  20. ui5-middleware-indexUI5 middleware serving a chosen welcome page at the root path
  21. ui5-middleware-livereloadLive reload middleware for the UI5 dev server
  22. ui5-middleware-oneloginUI5 middleware logging in with Playwright and reusing the session
  23. ui5-middleware-serveframeworkUI5 middleware serving a locally built UI5 framework
  24. ui5-middleware-servestaticUI5 middleware serving static resources from a path or npm package
  25. ui5-middleware-simpleproxyDev-server middleware proxying requests to a backend system
  26. ui5-middleware-ui5UI5 middleware including one UI5 application in another
  27. ui5-middleware-webjarsUI5 middleware serving static resources from JAR files (WebJars)
  28. ui5-task-cachebusterUI5 builder task cachebusting standalone UI5 applications
  29. ui5-task-copyrightUI5 builder task appending copyright headers to source files
  30. ui5-task-flatten-libraryUI5 builder task flattening library output for SAP NetWeaver
  31. ui5-task-i18ncheckUI5 builder task checking XML views for missing i18n texts
  32. ui5-task-minify-xmlUI5 builder task minifying XML views and fragments
  33. ui5-task-pwa-enablerUI5 builder task turning a UI5 app into a progressive web app
  34. ui5-task-zipperBuild task packaging the UI5 build result as a zip archive
  35. ui5-tooling-lessUI5 CLI extension compiling Less files into CSS
  36. ui5-tooling-modulesUI5 tooling extensions loading npm packages as UI5 modules
  37. ui5-tooling-stringreplaceUI5 CLI extension for string replacement during the build
  38. ui5-tooling-transpileUI5 CLI extension transpiling code during the UI5 build
  39. @ui5/loggerInternal logger of the UI5 CLI
  40. @ui5/middleware-code-coverageUI5 CLI middleware for Istanbul code coverage
  41. @ui5/tooling-webcDeprecated UI5 Tooling extensions for UI5 Web Components wrappers

Details

Sources4
npm registrydiscovered herechecked
npm registry, ui5-middleware-websocketversion, releases, installschecked
github.com/https://github.com/ui5-community/ui5-ecosystem-showcase.gittree, pushes, contributors, CIchecked
packages/ui5-middleware-websocket/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
latestv3.2.2
first release
releases and cadence24, ~70d median
discovered vianpm registry
first seen in the atlas
ecosystem and domainui5, developer-experience
Contributors2

From the repository’s contributor list, .

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