{"library":"tinyws","type":"library","category":null,"description":"tinyws is a lightweight, framework-agnostic WebSocket middleware for Node.js, built upon the popular `ws` library. It enables WebSocket capabilities for HTTP servers, integrating seamlessly with frameworks like tinyhttp, Express, and Polka by exposing a `req.ws()` method. The current stable version is 1.0.0, as of April 2026. This package distinguishes itself from alternatives like `express-ws` by being actively maintained, providing first-class TypeScript support, being pure ESM, and boasting a minimal footprint (under 500B). Its primary release cadence appears to be focused on stability and maintenance rather than rapid feature additions, making it a reliable choice for adding WebSockets to modern Node.js applications.","language":"javascript","status":"active","version":"1.0.0","tags":["javascript","ws","express","tinyhttp","websocket","middleware","polka","http","server","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install tinyws","imports":["import { tinyws } from 'tinyws'","import { TinyWSRequest } from 'tinyws'","import { App, Request } from '@tinyhttp/app'"]},{"cmd":"yarn add tinyws","imports":[]},{"cmd":"pnpm add tinyws","imports":[]}],"homepage":null,"github":"https://github.com/tinyhttp/tinyws","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/tinyws","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/tinyws/compatibility"}}