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

@vlop/ai

v1.0.9

Published

Papavlop AI SDK floating chat widget, client helpers, and studio-ready config for Vlop.

Readme

@vlop/ai - Papavlop SDK

Papavlop is the native AI companion for Vlop. This package ships the floating chat widget, a lightweight API client, and helper types so you can drop Papavlop into any React surface - your main app, marketing pages, or partner integrations.

Installation

npm install @vlop/ai
# or
yarn add @vlop/ai

Papavlop expects you to manage API keys in Firebase. Approved users receive keys that start with vlop_, and the server routes in app/api/ai/* enforce token usage.

Quick Start

import { PapavlopChat } from '@vlop/ai'

export default function Example() {
  return (
    <PapavlopChat
      apiKey="vlop_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
      defaultOpen
    />
  )
}

The widget fetches its colors, launcher icon, greeting, and prompt from the Papavlop Studio API using the supplied key. You can override any part of the resolved configuration without disabling remote control:

<PapavlopChat
  apiKey="vlop_xxx"
  overrides={{
    launcher: { label: 'Ask Papavlop', icon: 'bot' },
    theme: { accentColor: '#38bdf8' }
  }}
/>

To render a preview (for example inside the Studio), bypass the remote lookup and pass the full config:

import { PapavlopChat, mergePapavlopConfig } from '@vlop/ai'

const config = mergePapavlopConfig({
  name: 'Papavlop',
  greeting: 'Preview: tweak settings in the Studio.',
  launcher: { label: 'Open Chat', icon: 'sparkles' }
})

<PapavlopChat apiKey="demo" useRemoteConfig={false} overrides={config} defaultOpen />

Papavlop streams responses over Server-Sent Events (SSE), keeps optimistic UI updates, and displays a subtle "Powered by Vlop" footer.

Remote Configuration

Papavlop Studio writes a botConfig document to vlopai_users/{uid}. The SDK merges that remote config with the defaults shown above and any overrides you pass at render time. Fields exposed in the Studio:

  • name, tagline, greeting, inputPlaceholder
  • position (bottom-right, bottom-left, top-right, top-left)
  • Theme colors for accent, background, text, borders, and composer
  • Launcher icon, label, optional icon URL, and button colors
  • Full system prompt for the conversation

If Studio is unreachable, the widget falls back to the local defaults and surfaces a notice in the footer.

API Client

Need to build your own UI? Use the PapavlopClient directly:

import { PapavlopClient } from '@vlop/ai'

const client = new PapavlopClient('vlop_xxx')
const config = await client.getConfig() // Remote theme + prompt

await client.chat(
  [{ role: 'user', content: 'Suggest a cozy anime marathon.' }],
  { systemPrompt: config.systemPrompt },
  chunk => console.log(chunk)
)

Build

npm run build

Compiles ES modules and type declarations into dist/. Publish with npm publish --access public.

License

MIT (c) Vlop