### Install BotID Package Source: https://context7.com/vercel-labs/botid-nextjs-starter/llms.txt Install the necessary dependency to access the BotID client and server utilities. ```bash npm install botid ``` -------------------------------- ### Install BotID Dependency Source: https://context7.com/vercel-labs/botid-nextjs-starter/llms.txt Commands to install the botid package using common package managers. Choose the one that matches your project's environment. ```bash pnpm add botid ``` ```bash yarn add botid ``` -------------------------------- ### Configure package.json Dependencies Source: https://context7.com/vercel-labs/botid-nextjs-starter/llms.txt Example configuration for project dependencies including BotID, Next.js, and React. Ensure these versions are compatible with your environment. ```json { "dependencies": { "botid": "^1.4.2", "next": "^15.3.6", "react": "^19.0.0", "react-dom": "^19.0.0" } } ``` -------------------------------- ### Initialize BotIdClient in Root Layout Source: https://context7.com/vercel-labs/botid-nextjs-starter/llms.txt The BotIdClient component must be placed in the root layout to enable client-side signal collection. It accepts a 'protect' array defining which API routes and HTTP methods require bot detection. ```tsx import type { Metadata } from "next"; import { BotIdClient } from "botid/client"; export const metadata: Metadata = { title: "My Protected App", description: "App protected by Vercel BotID", }; export default function RootLayout({ children }: Readonly<{ children: React.ReactNode }>) { return (