New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@revrag-ai/embed-react

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@revrag-ai/embed-react

React/Next.js library for Revrag AI assistant widget

latest
Source
npmnpm
Version
1.4.3
Version published
Weekly downloads
10
-72.22%
Maintainers
1
Weekly downloads
 
Created
Source

@revrag-ai/embed-react

React/Next.js library for integrating Revrag AI assistant widget into your application.

Installation

npm install @revrag-ai/embed-react

Quick Start

import { EmbedProvider, EmbedButton } from '@revrag-ai/embed-react';

function App() {
  return (
    <EmbedProvider
      apiKey="your-api-key"
      agentId="your-agent-id"
    >
      <EmbedButton />
      {/* Your app content */}
    </EmbedProvider>
  );
}

API Reference

Components

  • EmbedProvider - Context provider for the SDK
  • EmbedButton - The AI widget button component

Hooks

  • useInitialize - Hook for SDK initialization
  • useEmbed - Hook to access embed context

Functions

  • embedEvent - Function to track custom events
  • EventKeys - Event key constants

Types

  • EmbedContextType - Type for embed context
  • EmbedButtonDelayPolicy - Button delay policy configuration
  • EmbedButtonContinuity - Button continuity settings
  • EmbedButtonGroupConfig - Button group configuration
  • EmbedButtonVisibilityConfig - Button visibility settings
  • EmbedButtonPosition - Button position configuration
  • UseSDKInitReturn - Return type for useInitialize hook
  • EventPayload - Event payload type
  • EventKey - Event key type
  • CustomEventData - Custom event data type
  • CustomEventPayload - Custom event payload type
  • SDKConfig - SDK configuration type

License

MIT

Repository

https://github.com/revrag-ai/embed-react

Keywords

revrag

FAQs

Package last updated on 24 Mar 2026

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