svelte-adapter-uws is a SvelteKit adapter that runs the app on uWebSockets.js, a high-performance C++ HTTP server with native WebSocket support. Current version is 0.5.8, with active development. It targets Node.js >=22 and requires ws (for WebSocket polyfill), Svelte 4 or 5, and @sveltejs/kit 2. Notably faster than the default Node adapter, especially for WebSocket-heavy applications, due to uWebSockets.js's low-level, event-driven architecture. Ships TypeScript definitions.
npm install svelte-adapter-uwsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Configuration using adapter with custom port, WebSocket, and uWS options.
Upgrade Node.js to 22 or later.
Rename 'wsOptions' key to 'websocket'.
Upgrade to @sveltejs/kit ^2.0.0.
Use WebSocket for persistent connections or disable keep-alive expectations.
Avoid using 'ws' directly; rely on adapter's WebSocket abstraction.
Run 'npm install svelte-adapter-uws' and ensure it's in package.json dependencies.
Use 'import adapter from 'svelte-adapter-uws'' (no curly braces).
Upgrade Node.js to v22 or later.
Ensure adapter({ websocket: { ... } }) with an object value.