UNPKG

@scalar/nextjs-api-reference

Version:

Next.js API route handler to serve beautiful, interactive API documentation from OpenAPI/Swagger documents.

82 lines 2.06 kB
{ "name": "@scalar/nextjs-api-reference", "description": "Next.js API route handler to serve beautiful, interactive API documentation from OpenAPI/Swagger documents.", "license": "MIT", "author": "Scalar (https://github.com/scalar)", "homepage": "https://github.com/scalar/scalar", "bugs": "https://github.com/scalar/scalar/issues/new/choose", "repository": { "type": "git", "url": "git+https://github.com/scalar/scalar.git", "directory": "integrations/nextjs" }, "keywords": [ "api", "documentation", "next.js", "nextjs", "openapi", "swagger" ], "version": "0.9.9", "engines": { "node": ">=20" }, "type": "module", "main": "./dist/index.cjs", "module": "./dist/index.js", "types": "dist/index.d.ts", "exports": { "import": "./dist/index.js", "require": "./dist/index.cjs" }, "files": [ "dist", "CHANGELOG.md" ], "readme": { "title": "Scalar API Reference Handler for Next.js", "badges": [ { "type": "npm-version" }, { "type": "npm-downloads" }, { "type": "npm-license" } ], "documentation": "https://guides.scalar.com/scalar/scalar-api-references/integrations/nextjs" }, "dependencies": { "@scalar/core": "0.3.30" }, "devDependencies": { "@types/node": "^22.9.0", "@types/react": "^19.1.8", "@types/react-dom": "^19.1.6", "@vitejs/plugin-react": "5.0.4", "next": "^15.5.9", "react": "^19.1.0", "react-dom": "^19.1.0", "vite": "7.1.11", "vite-plugin-dts": "^4.3.0", "vitest": "3.2.4", "@scalar/api-reference": "1.43.0" }, "peerDependencies": { "next": "^15.0.0 || ^16.0.0", "react": "^19.0.0" }, "scripts": { "build": "pnpm types:check && pnpm build-only", "build-only": "vite build", "format": "scalar-format", "format:check": "scalar-format-check", "lint:check": "scalar-lint-check", "lint:fix": "scalar-lint-fix", "test": "vitest", "types:check": "tsc --noEmit --skipLibCheck" } }