UNPKG

bun-ws-router

Version:

A simple and efficient WebSocket router for Bun with Zod/Valibot message validation.

120 lines (119 loc) 2.79 kB
{ "name": "bun-ws-router", "version": "0.3.2", "description": "A simple and efficient WebSocket router for Bun with Zod/Valibot message validation.", "keywords": [ "broadcast", "bun", "framework", "handler", "hono", "messaging", "middleware", "pubsub", "realtime", "router", "schema", "socket", "socketio", "type-safe", "typescript", "valibot", "validation", "web-socket", "websocket", "ws", "zod" ], "homepage": "https://kriasoft.com/bun-ws-router/", "bugs": "https://github.com/kriasoft/bun-ws-router/issues", "repository": { "type": "git", "url": "https://github.com/kriasoft/bun-ws-router.git" }, "license": "MIT", "author": "Kriasoft <hello@kriasoft.com>", "contributors": [ { "name": "Konstantin Tarkus", "url": "https://github.com/koistya" } ], "type": "module", "exports": { ".": { "bun": "./index.ts", "types": "./dist/index.d.ts", "default": "./dist/index.js" }, "./zod": { "bun": "./zod/index.ts", "types": "./dist/zod/index.d.ts", "default": "./dist/zod/index.js" }, "./valibot": { "bun": "./valibot/index.ts", "types": "./dist/valibot/index.d.ts", "default": "./dist/valibot/index.js" }, "./package.json": "./package.json" }, "types": "./dist/index.d.ts", "files": [ "dist/", "shared/", "valibot/", "zod/", "index.ts" ], "dependencies": { "uuid": "^11.1.0" }, "peerDependencies": { "@types/bun": ">=1.2.19", "valibot": ">=1.1.0", "zod": ">=4.0.14" }, "peerDependenciesMeta": { "zod": { "optional": true }, "valibot": { "optional": true } }, "devDependencies": { "@eslint/js": "^9.32.0", "@types/bun": "^1.2.19", "eslint": "^9.32.0", "eslint-config-prettier": "^10.1.8", "globals": "^16.3.0", "hono": "^4.8.12", "jiti": "^2.5.1", "prettier": "^3.6.2", "typescript": "^5.9.2", "typescript-eslint": "^8.38.0", "valibot": "^1.1.0", "vitepress": "^1.6.3", "zod": "^4.0.14" }, "scripts": { "build": "rm -rf dist && tsc --project tsconfig.build.json", "lint": "eslint --report-unused-disable-directives .", "lint:fix": "eslint --report-unused-disable-directives --fix .", "typecheck": "tsc --noEmit", "format": "prettier --write .", "format:check": "prettier --check .", "docs:dev": "vitepress dev docs", "docs:build": "vitepress build docs", "docs:preview": "vitepress preview docs", "docs:deploy": "bunx gh-pages -d docs/.vitepress/dist" }, "prettier": { "singleQuote": false, "semi": true, "trailingComma": "all", "tabWidth": 2, "printWidth": 80 } }