UNPKG

jsonv-ts

Version:

JSON Schema builder and validator for TypeScript with static type inference, Hono middleware for OpenAPI generation and validation, and MCP server/client implementation. Lightweight, dependency-free, and built on Web Standards.

125 lines (124 loc) 3.6 kB
{ "name": "jsonv-ts", "main": "dist/lib/index.js", "module": "dist/lib/index.js", "types": "dist/lib/index.d.ts", "version": "0.8.1", "sideEffects": false, "typesVersions": { "*": { "hono": [ "./dist/hono/index.d.ts" ], "mcp": [ "./dist/mcp/index.d.ts" ] } }, "description": "JSON Schema builder and validator for TypeScript with static type inference, Hono middleware for OpenAPI generation and validation, and MCP server/client implementation. Lightweight, dependency-free, and built on Web Standards.", "repository": { "type": "git", "url": "git+https://github.com/dswbx/jsonv-ts.git" }, "publishConfig": { "access": "public" }, "type": "module", "license": "MIT", "scripts": { "test:unit": "bun test --bail", "types": "tsc --noEmit", "test": "bun types && bun test:unit && bun test:spec", "test:spec": "bun run src/test/spec/run.ts", "build": "rm -rf dist && tsup && bun run build:types", "watch": "bun run build && tsup --watch", "build:types": "tsc --emitDeclarationOnly", "benchmark": "bun run src/test/validation/benchmark.ts", "fetch:spec": "rm -rf src/test/spec/lib && npx giget gh:json-schema-org/JSON-Schema-Test-Suite/tests src/test/spec/lib", "prepublishOnly": "bun run build", "release:patch": "bun run test && npm version patch && git push && git push --tags && npm publish", "release:minor": "bun run test && npm version minor && git push && git push --tags && npm publish", "release:major": "bun run test && npm version major && git push && git push --tags && npm publish", "release:pre": "bun run test && npm version prerelease --preid rc --no-git-tag-version && npm publish --tag rc" }, "devDependencies": { "@cfworker/json-schema": "^4.1.1", "@modelcontextprotocol/sdk": "^1.17.1", "@sinclair/typebox": "^0.34.35", "@standard-schema/spec": "^1.0.0", "@types/bun": "latest", "@types/lodash-es": "^4.17.12", "ajv": "^8.17.1", "bun-types": "^1.2.9", "expect-type": "^1.2.1", "hono": "4.8.3", "json-schema-library": "^10.0.0", "lodash-es": "^4.17.21", "mitata": "^1.0.34", "openapi-types": "^12.1.3", "picocolors": "^1.1.1", "tsup": "^8.4.0" }, "peerDependencies": { "typescript": "^5.0.0" }, "optionalDependencies": { "hono": "*" }, "exports": { ".": { "import": "./dist/lib/index.js", "types": "./dist/lib/index.d.ts" }, "./hono": { "import": "./dist/hono/index.js", "types": "./dist/hono/index.d.ts" }, "./mcp": { "import": "./dist/mcp/index.js", "types": "./dist/mcp/index.d.ts" } }, "tsup": { "entry": [ "src/lib/index.ts", "src/hono/index.ts", "src/mcp/index.ts" ], "external": [ "hono", "jsonv-ts" ], "format": "esm", "platform": "neutral", "metafile": true, "minify": true, "clean": true, "outDir": "dist" }, "files": [ "dist", "README.md", "!dist/metafile*" ], "keywords": [ "json", "schema", "validator", "validate", "jsonschema", "json-schema", "hono", "openapi", "swagger", "typescript", "mcp" ], "madge": { "detectiveOptions": { "ts": { "skipTypeImports": true } } } }