UNPKG

api-morph

Version:

A modern TypeScript-first OpenAPI document generator that analyzes your code and JSDoc comments to automatically generate comprehensive and accurate API documentation.

153 lines 3.97 kB
{ "name": "api-morph", "type": "module", "version": "0.3.0", "description": "A modern TypeScript-first OpenAPI document generator that analyzes your code and JSDoc comments to automatically generate comprehensive and accurate API documentation.", "author": "Yingzhi Ji <jiyingzhi0808@gmail.com>", "license": "MIT", "homepage": "https://github.com/yingzhi0808/api-morph", "repository": { "type": "git", "url": "git+https://github.com/yingzhi0808/api-morph.git" }, "bugs": { "url": "https://github.com/yingzhi0808/api-morph/issues" }, "keywords": [ "openapi", "swagger", "openapi-generator", "swagger-generator", "express-openapi", "express-swagger", "koa-openapi", "koa-swagger", "hono-openapi", "hono-swagger", "zod-openapi", "zod-swagger" ], "exports": { ".": { "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.js" }, "./express": { "types": "./dist/express.d.ts", "import": "./dist/express.js", "require": "./dist/express.js" }, "./koa": { "types": "./dist/koa.d.ts", "import": "./dist/koa.js", "require": "./dist/koa.js" }, "./hono": { "types": "./dist/hono.d.ts", "import": "./dist/hono.js", "require": "./dist/hono.js" } }, "main": "./dist/index.js", "module": "./dist/index.js", "types": "./dist/index.d.ts", "files": [ "LICENSE", "README.md", "dist" ], "engines": { "node": ">=18.19.0" }, "publishConfig": { "access": "public" }, "dependencies": { "@hono/node-server": "^1.15.0", "@hono/zod-validator": "^0.7.0", "@hyperjump/json-schema": "^1.16.1", "@types/koa-static": "^4.0.4", "deepmerge": "^4.3.1", "koa-static": "^5.0.0", "micromatch": "^4.0.8", "mime-types": "^3.0.1", "radashi": "^12.6.0", "supertest": "^7.1.3", "swagger-ui-dist": "^5.26.2", "ts-morph": "^26.0.0", "typescript": "^5.8.3", "yaml": "^2.8.0" }, "devDependencies": { "@biomejs/biome": "^2.1.1", "@oxc-node/core": "^0.0.29", "@types/micromatch": "^4.0.9", "@types/mime-types": "^3.0.1", "@types/node": "^24.0.12", "@types/supertest": "^6.0.3", "@vitest/coverage-v8": "^3.2.4", "lefthook": "^1.12.1", "nanoid": "^5.1.5", "npm-run-all2": "^8.0.4", "tsdown": "^0.12.9", "typedoc": "^0.28.7", "typedoc-plugin-markdown": "^4.7.0", "typedoc-vitepress-theme": "^1.1.2", "vite-tsconfig-paths": "^5.1.4", "vitepress": "2.0.0-alpha.5", "vitest": "^3.2.4", "vue": "^3.5.17" }, "peerDependencies": { "@koa/router": "^13.0.0", "@types/express": "^5.0.0", "@types/koa": "^2.0.0", "@types/koa__router": "^12.0.0", "express": "^5.0.0", "hono": "^4.0.0", "koa": "^3.0.0", "zod": "^3.25.0 || ^4.0.0" }, "peerDependenciesMeta": { "@koa/router": { "optional": true }, "@types/express": { "optional": true }, "@types/koa": { "optional": true }, "@types/koa__router": { "optional": true }, "express": { "optional": true }, "hono": { "optional": true }, "koa": { "optional": true }, "zod": { "optional": true } }, "scripts": { "start": "node --watch --enable-source-maps --import @oxc-node/core/register", "build": "tsdown", "test": "vitest run --no-isolate --pool=threads", "test:watch": "vitest --no-isolate --pool=threads", "test:coverage": "vitest run --coverage --no-isolate --pool=threads", "docs:dev": "pnpm docs:api && vitepress dev docs", "docs:build": "pnpm docs:api && vitepress build docs", "docs:api": "typedoc", "check": "run-p check:*", "check:type": "tsc", "check:biome": "biome check --fix --no-errors-on-unmatched", "preinstall": "npx only-allow pnpm", "postinstall": "lefthook install" } }