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

talktoclover

v1.0.2

Published

A minimal React AI chat widget supporting OpenAI, Together AI, and more.

Readme

TalkToClover

A modern, customizable React AI chat widget supporting OpenAI, Together AI, and more. Easily add a beautiful, accessible chat experience to your app or website.


🚀 Installation

npm install talktoclover

✨ Features

  • Light & dark themes
  • Multiple AI providers (OpenAI, Together AI, Grok stub)
  • Preset sizes (smol, medium, big) and full custom sizing
  • User or developer control of provider, theme, and model
  • Custom style prop for full design freedom
  • Accessibility (ARIA, keyboard, responsive)
  • Clear conversation, auto-scroll, and more

🛠️ Usage

Basic Example

import ChatWidget from 'talktoclover';

function App() {
  return (
    <ChatWidget
      apiKey="YOUR_API_KEY"
      provider="openai"
      model="gpt-3.5-turbo"
      systemPrompt="You are a helpful assistant."
    />
  );
}


⚙️ Props

| Prop | Type | Default | Description | |----------------|----------------------------------------|--------------|-------------| | apiKey | string | required | Your API key for the chosen provider | | provider | 'openai' \| 'together' \| 'grok' | 'openai' | AI provider to use | | model | string | 'gpt-3.5-turbo' | Model for the provider | | systemPrompt | string | undefined | System prompt for the AI | | theme | 'light' \| 'dark' | 'light' | Widget theme | | placeholder | string | 'Ask something...' | Input placeholder | | size | 'smol' \| 'medium' \| 'big' | 'medium' | Preset widget size | | width | number | (from size) | Custom width (overrides size) | | height | number | (from size) | Custom height (overrides size) | | style | React.CSSProperties | {} | Custom container style (overrides all) | | userControls | { provider?: bool, theme?: bool, model?: bool } | {} | Show dropdowns for user to pick provider/theme/model |


🎨 Customization

Preset Sizes

<ChatWidget apiKey="..." size="smol" />
<ChatWidget apiKey="..." size="medium" />
<ChatWidget apiKey="..." size="big" />

Custom Size

<ChatWidget apiKey="..." width={600} height={700} />

Custom Style

<ChatWidget
  apiKey="..."
  size="big"
  theme="dark"
  style={{
    boxShadow: "0 8px 32px rgba(0,0,0,0.3)",
    border: "2px solid #4a90e2",
    background: "linear-gradient(135deg, #232526 0%, #414345 100%)",
    color: "#fff",
    fontFamily: "Fira Mono, monospace",
    borderRadius: "16px",
  }}
/>

User Controls (Let End-User Pick Provider/Theme/Model)

<ChatWidget
  apiKey="..."
  userControls={{ provider: true, theme: true, model: true }}
/>

Hybrid (Some by Dev, Some by User)

<ChatWidget
  apiKey="..."
  provider="together"
  userControls={{ theme: true, model: true }}
  theme="dark"
  model="deepseek-ai/DeepSeek-V3"
/>

🧑‍💻 Advanced Usage

All Together: Full Customization

<ChatWidget
  apiKey="..."
  provider="openai"
  model="gpt-4"
  systemPrompt="You are a helpful assistant."
  size="big"
  theme="dark"
  userControls={{ model: true }}
  style={{
    border: "2px dashed #00e676",
    background: "#222",
    color: "#fff"
  }}
/>

🤝 Contributing

  1. Fork the repo
  2. Create a feature branch
  3. Make your changes
  4. Add/adjust tests if needed
  5. Submit a pull request

📝 License

Copyright (c) Arefin Amin. All rights reserved.


💬 Support

For issues and questions, open an issue on GitHub: https://github.com/Arefin994/talktoclover/issues