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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@proactive-ai-lab/pal-web-widget

v1.2.6

Published

a Web UI Kit for integrating our AI Agents into your website

Downloads

248

Readme

Palona Web Widget

A React-based chat widget for integrating the Proactive AI Language (PAL) system into web applications. This widget provides a seamless chat interface for users to interact with PAL.

Features

  • 🎨 Beautiful, modern UI with gradient backgrounds
  • 💬 Real-time chat interface
  • 🔄 Loading states and typing indicators
  • 🎯 Message history management
  • 🌈 Clean and responsive design
  • 🔒 Secure API key handling

Installation

npm install @proactive-ai-lab/pal-web-widget@<INSERT_VERSION_HERE>
# or
yarn add @proactive-ai-lab/pal-web-widget@<INSERT_VERSION_HERE>

Environment Variables

Create a .env.local file in your project root and add:

NEXT_PUBLIC_PAL_PROJECT_NAME=your_project_name
NEXT_PUBLIC_PAL_API_URL=palona_api_url_here
NEXT_PUBLIC_PAL_API_KEY=your_api_key_here

Usage

  1. Import the widget with the following line at the top of your file:
import { PalWebWidget } from '@proactive-ai-lab/pal-web-widget';
  1. Add it to your React component:
<div id="Your Component">
  <PalWebWidget
    userId="Insert User Here"
    apiKey="Insert API Key Here"
    projectName="Insert Project Name Here"
    initialMessage="" // optional
    loadingMessage="" // optional
    context="" // optional
    showIntroVideo={false} // optional
    borderStyle="2px solid rgba(0, 0, 0, 0.15)" // optional
  />
</div>

Your code should look similar to the following:

import "./styles.css";
import { PalWebWidget } from '@proactive-ai-lab/pal-web-widget';

export default function App() {
  return (
      <div id="Your Component">
        <PalWebWidget
          userId="Insert User Here"
          apikey="Insert API Key Here"
          projectName="Insert Project Name Here"
      />
    </div>
  );
}

For more info for PAL members, see this following article: https://www.notion.so/proactiveailab/Web-SDK-Installation-Guide-1578c0822e498054a82bc6afefdd46e2

Props

The widget accepts the following props:

| Prop | Type | Required | Description | |----------------|---------|----------|--------------------------------------------| | apiKey | string | Yes | Your PAL API key for authentication | | userId | string | Yes | Identifier for the current user | | projectName | string | Yes | Identifier for your business' custom agent | | initialMessage | string | No | Your custom initial message | | loadingMessage | string | No | Your custom loading message | | context | string | No | Agent context | | showIntroVideo | boolean | No | | | borderStyle | string | No | Border style |

Development

  1. Clone the repository:
git clone this-repo
  1. Install dependencies:
npm install
  1. Start the development server:
npm run dev
  1. Build for production:
npm run build

Project Structure

pal-sdk-web/
├── app/                   # Next.js app directory
│   ├── page.tsx           # Demo page
│   └── layout.tsx         # Root layout
├── components/            # React components
│   ├── chat/              # Chat-related components
│   └── pal-web-widget.tsx # Main widget component
├── lib/                   # Utility functions
├── hooks/                 # Custom React hooks
└── types/                 # TypeScript type definitions