npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@neurobot/sdk-react

v1.4.3

Published

Lightweight embeddable React chatbot widget powered by NeuroBot

Downloads

183

Readme

NeuroBot SDK React

Lightweight embeddable React chatbot widget for your applications.

Quick Start

Installation

npm install @neurobot/sdk-react

Setup with Provider

import { NeuroBotProvider, NeuroBot } from '@neurobot/sdk-react';

export default function App() {
  return (
    <NeuroBotProvider
      publicKey="pk_live_your_public_key"   // Only required prop
    >
      <YourApp />
      <NeuroBot pipelineId="your-pipeline-id" />
    </NeuroBotProvider>
  );
}

How It Works

Client-side (Safe to expose):

  • publicKey: Public API key from NeuroBot Studio
  • pipelineId: Pipeline identifier
  • API URL is hardcoded in SDK

Server-side (NeuroBot Backend - Keep secret):

  • secretKey: Never expose to frontend
  • Validates requests using secret key
  • Processes conversations using LLM models
  • Applies pipeline customizations
  • Returns AI-generated responses

Get Your Credentials

  1. Pipeline ID: Created in NeuroBot Studio when you create a pipeline
  2. Public Key: Generated in Pipeline Settings → API Keys (safe for frontend)
  3. Secret Key: Generated in Pipeline Settings → API Keys (backend only, never in frontend)

Props

| Prop | Type | Required | Default | Description | |------|------|----------|---------|-------------| | pipelineId | string | ✅ | - | Your NeuroBot pipeline ID | | chatbotId | string | - | - | Optional chatbot identifier | | title | string | - | 'NeuroBot Assistant' | Chat window title | | position | string | - | 'bottom-right' | Position: 'bottom-right', 'bottom-left', 'top-right', 'top-left' | | config | object | - | - | Styling configuration | | onMessageSent | function | - | - | Callback when user sends message | | onMessageReceived | function | - | - | Callback when bot responds | | useMock | boolean | - | false | Use mock responses for testing without backend |

Config Options

config={{
  primaryColor: '#3b82f6',        // Main color
  accentColor: '#1e40af',        // Accent color
  backgroundColor: '#ffffff',    // Chat background
  textColor: '#1f2937',          // Text color
  borderRadius: '12px',          // Border radius
  fontSize: '14px'               // Font size
}}

Backend Integration

Implement /api/chat endpoint:

POST /api/chat
{
  "pipelineId": "string",
  "message": "string",
  "context": { "pageUrl": "string", "pageTitle": "string" }
}

Response:
{ "response": "string" }

Features

  • ✨ Lightweight (~15KB gzipped)
  • 🎨 Fully customizable
  • 📱 Responsive design
  • ♿ Accessible
  • 📦 TypeScript support
  • 🌙 Dark mode compatible

Requirements

  • React ^18.0.0
  • React-DOM ^18.0.0

Styling

The SDK comes with scoped CSS that is automatically injected into the page. No additional styling setup required. All styles use CSS variables for theming and are isolated with .nb- prefixes to prevent conflicts with your application's styles.

Documentation

License

MIT