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

@viktorw/convo-kit

v0.5.0

Published

Two small, generic React building blocks for LLM chat UIs. Framework/LLM/database agnostic — bring your own chat state (e.g. the Vercel AI SDK's `useChat`); this package is a UI shell only.

Readme

Convo-Kit

Two small, generic React building blocks for LLM chat UIs. Framework/LLM/database agnostic — bring your own chat state (e.g. the Vercel AI SDK's useChat); this package is a UI shell only.

import { StreamingMarkdown, ScrollBox } from '@viktorw/convo-kit'

It contains exactly two components:

  • StreamingMarkdown — a Markdown renderer that understands the "still streaming" state and renders incrementally, with partial-markdown handling and an optional fade-in.
  • ScrollBox — a sticky-to-bottom scroll container for a message list.

StreamingMarkdown

Renders Markdown that is being streamed in. Powered by streaming-markdown.

// As `text` grows, the Markdown renders incrementally and fades in.
export function AssistantMessage({ text, streaming }: { text: string; streaming: boolean }) {
	return <StreamingMarkdown streaming={streaming}>{text}</StreamingMarkdown>
}
  • Renders partial Markdown. While a link is still streaming it is shown as plain text and only made clickable once the full link is present.
  • Even if the LLM outputs large chunks, the characters are revealed smoothly in much smaller chunks.
  • Applies a fade-in effect as content is added quickly.

Props

In addition to standard div props (className, style, …):

children: string

The Markdown text to render.

streaming: boolean

Whether this text is currently streaming. Drives the incremental typewriter reveal; when it flips to false the parser is finalized with one clean pass.

skipToEnd?: boolean (default false)

Render the content fully and immediately, skipping the typewriter animation. Set true for any message that is not the latest so old messages appear in their final form.

fade?: boolean (default true)

Whether to apply a fade effect as content is added quickly.

fadeDuration?: number (default 500)

Fade duration in milliseconds.

onContentShow?: (content: string) => void

Called as more content is revealed, with the text shown so far.

ScrollBox

A scroll container that sticks to the bottom as new content is added. If the user scrolls up it holds that position; when the user scrolls back to the bottom, auto-stick re-engages.

<ScrollBox
	maxHeight="100%"
	renderContent={(isAtBottom, scrollToBottom) => (
		<div>
			{messages.map((m) => (
				<Message key={m.id} message={m} />
			))}
			{/* optionally show a "jump to latest" button when !isAtBottom */}
		</div>
	)}
/>

Props

In addition to standard div props (className, style, …):

renderContent: (isAtBottom: boolean, scrollToBottom: () => void) => React.ReactNode

Render-prop for the scrollable content (instead of children, so the component can re-measure on its own terms). Receives whether the view is currently pinned to the bottom and a function to scroll to the bottom.

maxHeight?: string | number

Caps the container height and enables internal scrolling. If omitted, the document is used as the scroll container.

springConfig?: { damping?: number; stiffness?: number; mass?: number }

Tunes the spring animation used for smooth auto-scroll.