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

ai-chatbot

v0.1.1

Published

AI at blinkX! ## Architecture ![](./architecture.png)

Readme

blinkX AI

AI at blinkX!

Architecture

Preface

Built for easing the task for the call center guys. This chat bot would handle simple queries using from the user and if required forwards the query to an Whatsapp agent on user's demand.

Tech stack used

  • NextJs 14 -> Bleeding edge when the project was made
    • Initially, it was built for using Vercel's AI SDK, but unfortunately, the feature "StreamingUI" isn't compatible with nginx. So, I've switched to generic server-side actions for deployments.
    • Make sure to revise Server Actions and useContext providers.

Folders

/app Directory

/ai -> Base path

A base path is added so that it wouldn't cause discrepancies for other web servers hosted on the VM.

/ai/chat -> The Chat Bot

The chat application - Utilizes Context Providers and Server Side actions extensively.

/ai/video -> A PoC project which was probably scraped

You probably don't have to worry about this.

/ai/api -> The server side API for NextJs

Initially, it had been made for /ai/chat to leverage ChatGPT's API. Now it's not used anymore.

/components -> Contains all the components

Most of the components for this project are present here

/lib -> The business logic of this project

All the logic for server-actions goes here. Make sure to use it wisely.

/chat -> The chat business logic

The main server action for chat bot.

/hooks -> custom use hooks

Don't ask me why I created it.

'main is the main branch'

Getting Started

First, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.

Inspired from