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

@aigentyc/chat-sdk

v0.3.1

Published

React SDK for building AI-powered chat interfaces connected to the Aigentyc platform

Downloads

1,559

Readme

@aigentyc/chat-sdk

React SDK for building AI-powered chat interfaces connected to the Aigentyc platform.

Features

  • Drop-in <Chat /> and <ChatWidget /> components
  • Full slot system — replace any UI piece
  • Headless mode with useAigentycChat hook
  • Backend-driven tool rendering (visualization, json-render, custom HTML)
  • Live chat handoff with Socket.IO
  • Built-in i18n (en, he) — extensible with addLanguage()
  • React 19, SSR-compatible (Next.js App Router)
  • Multi-instance support — multiple chats on one page
  • White-label — zero forced branding

Quickest start — scaffold a new app

npm create aigentyc-chat@latest my-app
cd my-app && npm install && npm run dev

Picks Vite or Next.js, wires your projectId, drops in <Chat />. Done.

Add to an existing app

npm install @aigentyc/chat-sdk

That's it — core chat, streaming, and tool rendering work out of the box.

Optional peer deps — install only if you use that feature:

  • socket.io-client — live chat handoff
  • recharts — visualization tool renderer
  • @json-render/core @json-render/react @json-render/shadcn zod — json-render tools

Quick Start

import { Chat } from "@aigentyc/chat-sdk"
import "@aigentyc/chat-sdk/theme/styles.css"

export function App() {
  return (
    <Chat
      projectId="your-project-id"
      apiEndpoint="https://app.aigentyc.ai"
      apiKey="your-api-key"
    />
  )
}

Four Levels of Control

Level 1 — Drop-in

<Chat projectId="..." apiEndpoint="..." />

Level 2 — Customize with slots + theme

<Chat
  projectId="..." apiEndpoint="..."
  theme={{ primaryColor: "#3b82f6" }}
  slots={{ header: MyHeader, input: MyInput }}
  onMessageSent={(msg) => analytics.track('chat', msg)}
/>

Level 3 — Compose components

<ChatProvider projectId="..." apiEndpoint="...">
  <MyLayout>
    <ChatInterface />
    <ChatInput />
  </MyLayout>
</ChatProvider>

Level 4 — Headless

const { messages, sendMessage, status } = useAigentycChat({
  projectId: "...", apiEndpoint: "..."
})

Slots

| Slot | Replaces | | --- | --- | | header | Chat header bar | | welcome | Welcome / empty state | | message | Individual message bubble | | input | Composer / input box | | footer | Footer below input | | loader | Loading indicator | | suggestions | Suggested prompts | | tools | Per-tool renderers (keyed by tool name) |

Tool Rendering

Tools created in the Aigentyc platform come with rendering instructions. The SDK auto-renders based on uiRenderMode:

  • visualization → recharts
  • json_render → component spec via @json-render/shadcn
  • legacy → custom HTML/CSS template
  • preset → built-in renderers

Override per-tool:

<Chat slots={{ tools: { searchProducts: MyProductGrid } }} />

Theming

All theme tokens are CSS variables under [data-aigentyc-chat]. Override via theme prop or your own CSS.

i18n

Built-in: en, he. Add custom languages:

import { addLanguage } from "@aigentyc/chat-sdk/i18n"
addLanguage("fr", { welcomeTitle: "Bienvenue", ... })

Live Chat

Enable Socket.IO-based live chat handoff:

<Chat enableLiveChat chatServiceUrl="wss://..." />

Next.js / SSR

All components have "use client" directives. Works in App Router and Pages Router.

Storybook

npm run storybook

Demo

cd demo && npm install && npm run dev

Package Exports

  • @aigentyc/chat-sdk — main (Chat, ChatWidget, ChatProvider)
  • @aigentyc/chat-sdk/core — types, transport, utils
  • @aigentyc/chat-sdk/hooks — all hooks
  • @aigentyc/chat-sdk/components — individual chat components
  • @aigentyc/chat-sdk/ai-elements — Message, Conversation, etc.
  • @aigentyc/chat-sdk/tools — ToolRenderer, VisualizationRenderer
  • @aigentyc/chat-sdk/json-render — json-render system
  • @aigentyc/chat-sdk/ui — shadcn primitives
  • @aigentyc/chat-sdk/theme — ThemeProvider + styles.css
  • @aigentyc/chat-sdk/i18n — translations

License

MIT