New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@cookbookdev/docsbot

Package Overview
Dependencies
Maintainers
0
Versions
170
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cookbookdev/docsbot

## Step 1. Contact us to get an API Key

  • 4.24.13
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
2K
decreased by-17.41%
Maintainers
0
Weekly downloads
 
Created
Source

How to integrate "Ask Cookbook" into your website

Step 1. Contact us to get an API Key

You likely already have one, but if you don't, please contact us at tyler@cookbook.dev

Step 2. Pick one of the integration methods below

Having troubles or need something custom? Contact us

Integration methods

Basic integration

Suitable for static websites, outlines the general idea of how to integrate the bot into your website. As long as you can directly edit the HTML of your website, you can use this method.

<!-- Somewhere in <head> -->
<script src="https://cdn.jsdelivr.net/npm/@cookbookdev/docsbot/dist/standalone/index.cjs.js" defer></script>

<!-- Somewhere in <body> -->
<div id="__cookbook" data-api-key="HERE_GOES_APIKEY"></div>

React integration

Install the package

yarn add @cookbookdev/docsbot

OR

npm install @cookbookdev/docsbot

OR

pnpm install @cookbookdev/docsbot

Import and add our component to something that wraps the content, for example in Next.js it could be _app.js or layout.js

import AskCookbook from "@cookbookdev/docsbot/react";

export default function App() {
  return (
    <>
      <AskCookbook apiKey="[HERE_GOES_YOUR_API_KEY]" alwaysOpen={false} noFastMode={false} />
      {/* Your content */}
    </>
  );
}

Webflow integration

  1. Go to the Dashboard
  2. Get to the "Site settings" (see picture below) image
  3. Get to the "Custom code" tab (see picture below) image
  4. Put the following code into the "Head code" text area
<script src="https://cdn.jsdelivr.net/npm/@cookbookdev/docsbot/dist/standalone/index.cjs.js" defer></script>
  1. Put the following code into the "Footer code" text area
<div id="__cookbook" data-api-key="[HERE_GOES_YOUR_API_KEY]"></div>
  1. Save both of them

image 7. Publish website

image

Gitbook Integration

The good news is that we know how to integrate the "Ask Cookbook" into Gitbook! The bad news is that we yet to write a guide on it. If you need it, please contact us

API of <div> element

<div
  id="__cookbook"
  data-always-open <!-- Optional. If you want to have modal always open, usually for the showcase purposes -->
  data-no-fast <!-- Optional. Disables fast mode switch, forces dosbot into the detailed mode -->
  data-api-key="API_KEY_GOES_HERE"
/>

API of React component

<AskCookbook
  apiKey="API_KEY_GOES_HERE"
  alwaysOpen={false} // Optional. If you want to have modal always open, usually for the showcase purposes
  noFastMode={false} // Optional. Disables fast mode switch, forces dosbot into the detailed mode
/>

FAQs

Package last updated on 04 Mar 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc