Socket
Book a DemoInstallSign in
Socket

react-gemini-ai-bot

Package Overview
Dependencies
Maintainers
0
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-gemini-ai-bot

This project provides a React component for integrating a chatbot powered by Gemini AI.

0.1.1
latest
Source
npmnpm
Version published
Maintainers
0
Created
Source

React Gemini AI Chatbot

This project provides a React component for integrating a chatbot powered by Gemini AI.

Installation

To install the package, run:

npm i react-gemini-ai-bot

Setup

In your React app, import and use the Chatbot component:

import React from "react";
import { Chatbot } from "react-gemini-ai-bot/dist/index";

export default function App() {
  const apiKey = "YOUR_API_KEY"; // Replace with your actual API key

  return (
    <div>
      <h1>Import chatbot</h1>
      <Chatbot apiKey={apiKey} />
    </div>
  );
}

API Key Setup

To use the chatbot, you need an API key from Gemini AI. You can obtain a free API key from:

Gemini AI Studio

Replace YOUR_API_KEY in the example above with your actual key.

Version Compatibility

Ensure that your project meets the required compatibility:

  • React: >=18.0.0
  • Node.js: >=14.0.0

License

This project is licensed under the MIT License - see the LICENSE file for details.

Keywords

react

FAQs

Package last updated on 08 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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.