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

@geoffai/elements

v0.1.0

Published

Reusable UI components for building AI chat interfaces

Downloads

122

Readme

@geoffai/elements

Reusable UI components for building AI chat interfaces. Framework-agnostic components with no AI SDK dependencies.

Installation

pnpm add @geoffai/elements

Components

Chat Components

  • ChatContainer - Main chat container with flex layout
  • ChatMessages - Scrollable messages container with auto-scroll
  • ChatScrollButton - Floating scroll-to-bottom button
  • ChatInputArea - Container for the chat input area
  • ChatEmptyState - Empty state when no messages

Prompt Input

  • PromptInput - Form wrapper for input
  • PromptInputTextarea - Auto-resizing textarea with IME support
  • PromptInputToolbar - Toolbar container
  • PromptInputTools - Tool buttons group
  • PromptInputButton - Action button
  • PromptInputSubmit - Submit button with status icons
  • PromptInputModelSelect - Model selector dropdown

Message Components

  • MessageContainer - Message wrapper with role-based alignment
  • MessageContent - Content box with role-based styling
  • MessageAvatar - Avatar component
  • MessageText - Prose-styled text wrapper
  • MessageGroup - Groups multiple messages
  • MessageTimestamp - Timestamp display

Chain of Thought

  • ChainOfThought - Collapsible container
  • ChainOfThoughtHeader - Toggle header
  • ChainOfThoughtContent - Animated content
  • ChainOfThoughtStep - Step with status icon
  • ChainOfThoughtSearchResults - Results container
  • ChainOfThoughtSearchResult - Individual result

Thinking/Loading

  • Shimmer - Gradient text animation
  • GeoffThinking - Animated fibonacci spiral dots

Media

  • ImageCard - Image display for generated images
  • ImageGrid - Grid layout for multiple images
  • MusicPlayer - Audio player with waveform

UI Primitives

  • Button - Button with variants
  • Textarea - Text input
  • Select - Dropdown select
  • Collapsible - Collapsible container
  • Avatar - User avatar

Hooks

  • useScrollToBottom - Scroll management for chat

Types

The package provides its own types that replace ai-sdk dependencies:

  • ChatStatus - 'idle' | 'submitted' | 'streaming' | 'error'
  • Message - Base message interface
  • ChatHelpers - Chat state and methods
  • ToolInvocation - Tool call data
  • GeneratedImage - Image generation result
  • LanguageModelUsage - Token usage stats