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

agenticaichat

v1.0.7

Published

AI-powered chatbot for business analytics with natural language database queries

Downloads

871

Readme

AgenticAIChat

AI chatbot for business data. Ask questions in normal English or Hindi.

What it does

  • Quick 5-minute setup
  • Ask questions in English or Hindi
  • Works with PostgreSQL, MySQL, SQLite, Turso, MongoDB
  • Ready for React, Angular, Vue, Next.js
  • Same design in all frameworks
  • Auto-creates config files

What you need

  • Node.js 18+ and npm 9+
  • React 18+ for React/Next.js apps
  • Angular 12+ for Angular apps
  • Vue 3+ for Vue apps

Install and Setup

Step 1: Install

npm install agenticaichat

Step 2: Setup

Run this command:

npx agenticai-setup

The setup will ask:

  • Your database details (type, host, user, password)
  • Your AI API key (OpenAI, Google, etc.)
  • Which framework you use (React, Angular, Vue, Next.js)

It will create files and tell you what to do next.

How to Use in Different Frameworks

Next.js (Easiest)

Setup creates:

  • API file: app/api/chatbot/route.ts
  • Chat page: app/chat/page.tsx

Use in your code:

import { ChatbotWidget } from 'agenticaichat';

export default function MyPage() {
  return <ChatbotWidget />;
}

React (Vite, CRA, etc.)

Setup gives you the widget. Use it:

import { ChatbotWidget } from 'agenticaichat';

function MyApp() {
  return <ChatbotWidget />;
}

Angular

Setup creates:

  • Service file: src/app/services/chatbot.service.ts
  • Component file: src/app/components/chatbot.component.ts

Add to your HTML:

<app-chatbot></app-chatbot>

Vue

Setup creates:

  • Composable file: src/composables/useChatbot.js
  • Component file: src/components/Chatbot.vue

Use in your template:

<Chatbot />

Same Design Everywhere

All frameworks use the same chat design:

  • Chat bubble
  • Message list
  • Input box
  • Send button
  • Same colors and style

Files Created

  • .env.chatbot - Your secret keys
  • chatbot-config.json - Settings
  • .gitignore - Keeps secrets safe

Need Help?

  • Check the setup output for next steps
  • All frameworks work the same way
  • Design looks identical everywhere

How It Works

Your App (React/Angular/Vue/Next.js)
                |
                V
     Framework Adapter (auto-loaded)
                |
                V
        ChatbotWidget (same design)
                |
                V
      Your Backend API (/api/chatbot/query)
                |
                V
     ChatbotEngine → Database → AI

Each framework gets its own adapter that loads the same ChatbotWidget.

Problems?

  • Run npx agenticai-setup again
  • Check that your framework is supported
  • Make sure Node.js 18+ is installed

License

MIT License