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

@staylift-tech/conv-widget

v0.0.17

Published

Staylift Conversational Widget - Embeddable agents for hotels

Readme

Staylift Conversational Widget

Voice + Text Chat widget for hotels, powered by ElevenLabs Conversational AI.

Features

  • 🎙️ Voice Calls - Natural voice conversations with AI
  • 💬 Text Chat - Type messages when you can't talk
  • 🌍 Multi-language - EN, PL, DE built-in (extensible)
  • 🎨 Customizable - Match your hotel's branding
  • 📱 Responsive - Works on mobile and desktop

Quick Start

CDN (For hotels)

<staylift-widget 
  agent-id="your-elevenlabs-agent-id"
  brand-name="Your Hotel Name"
  primary-color="#8b5cf6"
></staylift-widget>

<script src="https://unpkg.com/@staylift-tech/conv-widget"></script>

NPM (For developers)

npm install @staylift-tech/conv-widget
import '@staylift-tech/conv-widget';

How It Works

  1. User clicks the floating orb → Chat window opens
  2. User clicks phone button → Voice call starts
  3. User can speak OR type messages
  4. All messages appear in the chat history
  5. ElevenLabs AI responds via voice + text

Configuration

Required

| Attribute | Description | |-----------|-------------| | agent-id | Your ElevenLabs Conversational AI Agent ID |

Appearance

| Attribute | Default | Description | |-----------|---------|-------------| | brand-name | "Virtual Concierge" | Hotel name in header | | subtitle | "Ask me anything..." | Subtitle text | | primary-color | "#10b981" | Brand color (hex) | | background-color | "#ffffff" | Background color | | text-color | "#1f2937" | Text color | | logo-url | - | Custom logo image URL |

Layout

| Attribute | Default | Options | |-----------|---------|---------| | variant | "floating" | floating, inline, compact | | position | "bottom-right" | bottom-right, bottom-left, top-right, top-left |

Behavior

| Attribute | Default | Description | |-----------|---------|-------------| | language | "en" | UI language (en, pl, de) | | auto-expand | false | Open chat on page load | | show-branding | true | Show "Powered by Staylift" |

Events

const widget = document.querySelector('staylift-widget');

// Connection
widget.addEventListener('conversationStarted', () => {
  console.log('Voice call connected');
});

widget.addEventListener('conversationEnded', () => {
  console.log('Voice call ended');
});

// Messages
widget.addEventListener('messageReceived', (event) => {
  const { role, content } = event.detail;
  console.log(`${role}: ${content}`);
});

// Status
widget.addEventListener('statusChanged', (event) => {
  console.log('Status:', event.detail); // 'disconnected' | 'connecting' | 'connected'
});

// Errors
widget.addEventListener('widgetError', (event) => {
  console.error('Error:', event.detail.message);
});

Methods

const widget = document.querySelector('staylift-widget');

// Start voice call
await widget.startConversation();

// End voice call
await widget.endConversation();

// Send text message (while connected)
await widget.sendMessage('What time is checkout?');

// Get current status
const status = await widget.getStatus();

Variants

Floating (Default)

Full chat window that appears when clicking the orb.

<staylift-widget 
  agent-id="xxx"
  variant="floating"
  position="bottom-right"
></staylift-widget>

Inline

Embed directly in your page.

<staylift-widget 
  agent-id="xxx"
  variant="inline"
></staylift-widget>

Compact

Minimal horizontal bar.

<staylift-widget 
  agent-id="xxx"
  variant="compact"
></staylift-widget>

Development

# Install dependencies
npm install

# Start dev server
npm start

# Build for production
npm run build

# Publish to npm
npm publish --access public

Framework Integration

React / Next.js

'use client';
import { useEffect } from 'react';

export default function VoiceWidget() {
  useEffect(() => {
    import('@staylift/voice-widget');
  }, []);

  return (
    <staylift-widget
      agent-id="your-agent-id"
      brand-name="Your Hotel"
    />
  );
}

Vue

<template>
  <staylift-widget
    agent-id="your-agent-id"
    brand-name="Your Hotel"
  />
</template>

<script setup>
import '@staylift-tech/conv-widget';
</script>

Browser Support

Chrome 67+, Firefox 63+, Safari 10.1+, Edge 79+

License

MIT © Staylift