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

fullstack-ui-kit

v0.2.1

Published

React components for AI apps, RAG workbenches, and agent execution states.

Readme

fullstack-ui-kit

React + TypeScript 组件库,聚焦 AI 应用、RAG 工作台、Agent 执行过程和前端复杂状态抽象。

特点

  • 面向 AI 对话、RAG 检索、Agent 链路和异步状态场景。
  • 提供可直接复用的 React 组件和 TypeScript 类型。
  • 包含独立样式文件,适合在业务项目中按需引入。

安装

npm install fullstack-ui-kit

引入样式

import 'fullstack-ui-kit/dist/style.css'

定位

这个库不是通用 UI 大而全方案,而是面向以下场景的组件沉淀:

  • AI 对话展示
  • RAG 来源引用
  • Agent 执行步骤
  • 文件上传和流式输出
  • 错误恢复和异步状态

当前组件

  • ChatMessage
  • CitationList
  • SourceCard
  • SourceGroupPanel
  • StreamingText
  • StepTimeline
  • UploadPanel

使用

import 'fullstack-ui-kit/dist/style.css'
import { ChatMessage, CitationList, StreamingText } from 'fullstack-ui-kit'
import type { ChatMessageItem, CitationItem } from 'fullstack-ui-kit'

const message: ChatMessageItem = {
  id: 'msg-1',
  role: 'assistant',
  content: '已命中 3 条来源,准备生成带引用的回答。',
  status: 'final',
}

const citations: CitationItem[] = [
  {
    id: 'citation-1',
    index: 1,
    filename: 'rag-architecture.md',
    heading: 'Retrieval Pipeline',
    score: 0.94,
  },
]

export function Demo() {
  return (
    <>
      <ChatMessage message={message} />
      <StreamingText text="正在检索相关文档并生成回答" status="streaming" />
      <CitationList items={citations} />
    </>
  )
}

发布信息

  • 许可证:MIT
  • 仓库:[email protected]:575568329/fullstack-ui-kit.git
  • 关键词:reacttypescriptairagagentui-kit

本地运行

npm install
npm run dev

组件说明

  • ChatMessage:用于展示用户、助手和工具消息。
  • CitationList:用于展示回答末尾的引用列表。
  • SourceCard:用于展示单条来源卡片。
  • SourceGroupPanel:用于展示按文件聚合后的来源面板。
  • StreamingText:用于展示流式生成中的文本状态。
  • StepTimeline:用于展示任务步骤和状态。
  • UploadPanel:用于展示上传文件状态和重试入口。

设计原则

  1. 组件优先服务真实业务场景。
  2. 优先抽高频、难讲清楚、可复用的交互。
  3. 普通基础控件只保留最小能力,不作为主卖点。