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

@hari7261/ainative-client

v0.3.1

Published

AINative client runtime for building AI-driven UIs

Readme

@hari7261/ainative-client

AINative is a domain-specific micro-framework built for React. It is designed to take the pain out of building AI-driven user interfaces.

What is it?

This is the client runtime of the AINative Framework. Rather than just providing an API wrapper library, AINative offers a full React-based architecture that tightly integrates with your AI backend (Node.js or Python) to manage the entire lifecycle of LLM interactions.

Why is it helpful?

Building AI chat interfaces requires dealing with complex state management, text streaming, UI reconciliation, and multimodal inputs (images, audio). AINative handles all of this out-of-the-box.

It provides:

  • Automatic stream parsing: Connects to the server and parses LLM text chunks as they arrive.
  • AI UI State Management: Handles loading states, errors, tool calls, and conversation history automatically.
  • Multimodal support: Built-in hooks and components for handling file/image/audio attachments.
  • Ready-to-use hooks & components: Like <AIApp>, <AIStream>, and useAIState() so you focus on UI design, not network protocols.

How it works

Inversion of Control: AINative's <AIApp> context acts as the central brain of your frontend. It maintains the message history and streaming reconciler. When a user sends a prompt via an AINative input component, the runtime automatically streams the request to your configured AINative server router, reconciling the live text stream back into the React component tree synchronously.

Installation

npm install @hari7261/ainative-client

(Note: Usually you will scaffold a full AINative app using our CLI: npx @hari7261/ainative-cli init)

Basic Usage

import { AIApp, AIStream, AIInput } from '@hari7261/ainative-client/components';

export default function ChatApp() {
  return (
    <AIApp serverUrl="/api/chat">
      <div className="chat-container">
        <AIStream />
        <AIInput placeholder="Ask the AI something..." />
      </div>
    </AIApp>
  );
}

For full documentation, visit the main AINative repository.