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

@aevatar/kit

v1.2.1

Published

AevatarKit SDK - Complete TypeScript SDK for Aevatar Agent Framework

Readme

@aevatar/kit

Complete TypeScript SDK for Aevatar Agent Framework

Overview

This is the main package of AevatarKit SDK. It re-exports all sub-packages for convenience, allowing you to import everything from a single entry point.

Installation

# Using pnpm (recommended)
pnpm add @aevatar/kit

# Using npm
npm install @aevatar/kit

# Using yarn
yarn add @aevatar/kit

Quick Start

Basic Usage (Vanilla JS/TS)

import { createAevatarClient } from '@aevatar/kit';

const client = createAevatarClient({
  baseUrl: 'http://localhost:5001',
  apiKey: 'your-api-key',
});

await client.connect();
const session = await client.createSession();
await session.sendMessage('Hello, Aevatar!');

session.onEvent((event) => {
  if (event.type === 'TEXT_MESSAGE_CONTENT') {
    process.stdout.write(event.delta);
  }
});

React Usage

import {
  AevatarProvider,
  useSession,
  ChatPanel,
} from '@aevatar/kit';

function App() {
  return (
    <AevatarProvider client={{ baseUrl: 'http://localhost:5001' }}>
      <Chat />
    </AevatarProvider>
  );
}

function Chat() {
  const { session, createSession } = useSession();
  
  useEffect(() => {
    createSession();
  }, []);
  
  return <ChatPanel />;
}

What's Included

This package re-exports everything from:

| Sub-package | What it provides | |-------------|------------------| | @aevatar/kit-types | TypeScript type definitions | | @aevatar/kit-protocol | AG-UI protocol implementation | | @aevatar/kit-core | Client, session, run management | | @aevatar/kit-react | React hooks and components |

Exports Overview

Types

import type {
  // AG-UI Events
  AgUiEvent,
  AgUiEventType,
  AgUiMessage,
  RunStartedEvent,
  TextMessageContentEvent,
  StateSnapshotEvent,
  CustomEvent,
  
  // Session
  Session,
  SessionState,
  SessionStatus,
  CreateSessionOptions,
  
  // Run
  Run,
  RunStatus,
  RunInput,
  StepInfo,
  
  // Agent
  AgentInfo,
  AgentCapability,
  AgentTool,
  
  // Graph
  GraphDefinition,
  GraphNode,
  GraphEdge,
  
  // Memory
  Memory,
  MemorySearchOptions,
  MemorySearchResult,
  
  // Client
  ClientOptions,
  ConnectionStatus,
  
  // Utilities
  Unsubscribe,
  EventHandler,
} from '@aevatar/kit';

Type Guards

import {
  isRunStartedEvent,
  isRunFinishedEvent,
  isTextMessageContentEvent,
  isStateSnapshotEvent,
  isCustomEvent,
  // ... more
} from '@aevatar/kit';

Core Functions

import {
  createAevatarClient,
  createSessionManager,
  createRunManager,
  createStateStore,
  createConnection,
  createEventStream,
  createEventRouter,
  createLogger,
  createRetryManager,
} from '@aevatar/kit';

React Context & Hooks

import {
  // Context
  AevatarProvider,
  AevatarContext,
  
  // Hooks
  useAevatar,
  useSession,
  useRun,
  useMessages,
  useEventStream,
  useProgress,
  useConnection,
} from '@aevatar/kit';

React Components

import {
  // Chat
  ChatPanel,
  MessageList,
  MessageBubble,
  InputArea,
  
  // Timeline
  TimelineView,
  StepCard,
  StreamingText,
  
  // Common
  ConnectionStatus,
  ProgressBar,
  LoadingSpinner,
} from '@aevatar/kit';

Aevatar Extensions

import type {
  AevatarCustomEventName,
  AevatarProgressEvent,
  AevatarGraphEvent,
  AevatarVotingEvent,
  AevatarWorkerStartedEvent,
  AevatarTaskDecomposedEvent,
} from '@aevatar/kit';

Bundle Optimization

For smaller bundle sizes, import from individual packages:

// Instead of:
import { createAevatarClient, useSession } from '@aevatar/kit';

// Do:
import { createAevatarClient } from '@aevatar/kit-core';
import { useSession } from '@aevatar/kit-react';

Package Sizes

| Package | Approximate Size | |---------|------------------| | @aevatar/kit-types | ~0KB (types only) | | @aevatar/kit-protocol | ~5KB | | @aevatar/kit-core | ~15KB | | @aevatar/kit-react | ~30KB |

Peer Dependencies

{
  "react": "^18.0.0",
  "react-dom": "^18.0.0"
}

Note: React is optional. If not using React, only the core/protocol exports will work.

Theming

Import styles for pre-built components:

import '@aevatar/kit/styles.css';

Customize with CSS variables:

:root {
  --aevatar-primary: #6366f1;
  --aevatar-background: #ffffff;
  --aevatar-text: #1e293b;
  --aevatar-radius: 8px;
}

Architecture

@aevatar/kit (this package)
├── Re-exports from:
│   ├── @aevatar/kit-types      (types only)
│   ├── @aevatar/kit-protocol   (SSE, parsing, routing)
│   ├── @aevatar/kit-core       (client, session, run)
│   └── @aevatar/kit-react      (hooks, components)
│
└── Depends on:
    └── react (peer, optional)

Related Documentation

Sub-packages

License

MIT © Aevatar Team