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

@knox.zhang/streamup

v0.1.0-beta.0

Published

Vue 3 streaming rendering component library

Readme

Streams

Vue 3 流式 Markdown 渲染组件库 — 专为流式数据实时输出而设计。

特性

  • 🌊 多数据源支持 — Fetch ReadableStream / SSE / WebSocket / 自定义处理器
  • 📝 增量 Markdown 渲染 — 基于 markdown-it,流式期间自动闭合未完成的结构
  • 🎨 代码语法高亮 — 基于 shiki,懒加载 + 降级回退
  • 📜 自动滚动 — 智能检测用户滚动,避免强制跳转
  • RAF 批量更新 — 高频数据块合并后再触发响应式更新
  • 🧩 组合式 API — useStream / useSmoothRenderer 等 composable
  • 🪶 零硬依赖 — markdown-it 和 shiki 为可选 peerDependencies

安装

npm install streams
# 可选依赖
npm install markdown-it shiki

快速开始

组件方式

<template>
  <!-- Markdown 流式渲染 -->
  <Stream :source="source" :smooth-speed="1" auto-scroll virtual />

  <!-- 或使用轻量级 StreamMarkdown -->
  <StreamMarkdown :source="source" />
</template>

<script setup>
import { Stream, StreamMarkdown } from 'streams'

const source = {
  type: 'fetch',
  url: '/api/chat',
  method: 'POST',
  headers: { 'Content-Type': 'application/json' },
  body: JSON.stringify({ prompt: 'Hello' }),
}
</script>

开发

# 安装依赖
pnpm install

# 开发模式
pnpm dev

# 构建
pnpm build

# 类型检查
pnpm type-check

# 单元测试
pnpm test:unit

License

MIT