@xtr-dev/zod-rpc
Version:
Simple, type-safe RPC library with Zod validation and automatic TypeScript inference
107 lines (106 loc) • 2.86 kB
JSON
{
"name": "@xtr-dev/zod-rpc",
"version": "0.3.5",
"description": "Simple, type-safe RPC library with Zod validation and automatic TypeScript inference",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"require": "./dist/index.js",
"import": "./dist-esm/index.js"
},
"./transports": {
"types": "./dist/transports/index.d.ts",
"require": "./dist/transports/index.js",
"import": "./dist-esm/transports/index.js"
}
},
"files": [
"dist",
"dist-esm",
"bin"
],
"bin": {
"zod-rpc-types": "./bin/zod-rpc-types.js",
"zod-rpc-schemas": "./bin/zod-rpc-schemas.js"
},
"scripts": {
"build": "tsc && npm run build:esm",
"build:esm": "tsc -p tsconfig.esm.json && node fix-esm-imports.js",
"build:examples": "tsc -p tsconfig.examples.json",
"dev": "tsc --watch",
"test": "jest",
"coverage": "jest --coverage",
"lint": "eslint src/**/*.ts",
"format": "prettier --write src/**/*.ts",
"lint:fix": "npm run lint -- --fix && npm run format",
"prepublishOnly": "npm run build",
"start": "npm run dev",
"test:watch": "jest --watch",
"example:server": "npm run build:examples && node dist/examples/websocket/server.js",
"example:client": "npm run build:examples && node dist/examples/websocket/client.js",
"docs:api": "typedoc",
"docs:api:serve": "npm run docs:api && npx http-server docs -p 8081 -o",
"docs:clean": "rm -rf docs",
"prepare": "husky"
},
"keywords": [
"rpc",
"zod",
"typescript",
"validation",
"schema",
"remote-procedure-call",
"websocket",
"webrtc",
"http",
"type-safe",
"runtime-validation"
],
"author": "xtr.dev <contact@xtr.dev>",
"license": "Public Domain",
"repository": {
"type": "git",
"url": "https://github.com/xtr-dev/zod-rpc.git"
},
"bugs": {
"url": "https://github.com/xtr-dev/zod-rpc/issues"
},
"homepage": "https://github.com/xtr-dev/zod-rpc#readme",
"lint-staged": {
"*.ts": [
"eslint --fix",
"prettier --write"
]
},
"dependencies": {
"zod": "^4.0.0"
},
"devDependencies": {
"@eslint/js": "^9.32.0",
"@types/jest": "^30.0.0",
"@types/node": "^24.1.0",
"@types/ws": "^8.18.1",
"@typescript-eslint/eslint-plugin": "^8.38.0",
"@typescript-eslint/parser": "^8.38.0",
"better-docs": "^2.7.3",
"commander": "^12.1.0",
"eslint": "^9.32.0",
"husky": "^9.1.7",
"jest": "^30.0.5",
"jsdoc": "^4.0.4",
"lint-staged": "^16.1.2",
"marked": "^15.0.2",
"mathjs": "^13.2.2",
"prettier": "^3.6.2",
"ts-jest": "^29.4.0",
"tsx": "^4.20.3",
"typedoc": "^0.25.13",
"typescript": "^5.4.5",
"ws": "^8.18.3"
},
"peerDependencies": {
"zod": "^4.0.0"
}
}