{
  "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.12.11",
  "engines": {
    "node": ">=22"
  },
  "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"
  ],
  "scalarReadme": {
    "title": "Scalar API Reference Handler for Next.js",
    "badges": [
      {
        "type": "npm-version"
      },
      {
        "type": "npm-downloads"
      },
      {
        "type": "npm-license"
      }
    ],
    "documentation": "https://scalar.com/products/api-references/integrations/nextjs",
    "extraContent": {
      "headline": "Quickstart",
      "content": "```bash\nnpm install @scalar/nextjs-api-reference\n```\n\nPut your OpenAPI description in `public/openapi.json` and create:\n\n```typescript\n// app/scalar/route.ts\nimport { ApiReference } from '@scalar/nextjs-api-reference'\n\nexport const GET = ApiReference({ url: '/openapi.json' })\n```\n\nOpen `/scalar`. To embed Scalar in your application layout, follow the [App Router page guide](https://scalar.com/products/api-references/integrations/nextjs)."
    }
  },
  "dependencies": {
    "@scalar/client-side-rendering": "0.4.12"
  },
  "devDependencies": {
    "@types/node": "^24.1.0",
    "@types/react": "^19.2.7",
    "@types/react-dom": "^19.2.3",
    "@vitejs/plugin-react": "6.0.1",
    "next": "^15.5.14",
    "react": "^19.2.3",
    "react-dom": "^19.2.3",
    "vite": "8.1.5",
    "vite-plugin-dts": "^4.3.0",
    "vitest": "4.1.10"
  },
  "peerDependencies": {
    "next": "^15.0.0 || ^16.0.0",
    "react": "^19.0.0"
  },
  "scripts": {
    "build": "pnpm types:check && pnpm build-only",
    "build-only": "vite build",
    "test": "vitest --run",
    "types:check": "tsgo --noEmit --skipLibCheck"
  }
}