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 🙏

© 2025 – Pkg Stats / Ryan Hefner

hotelier-widgets

v1.2.11

Published

![GitHub package.json version](https://img.shields.io/github/package-json/v/Bintang-Technology-Solusindo/hotelier-widgets)

Readme

Hotelier Widgets

GitHub package.json version

A set of ready-to-use hotel booking widgets. Lightweight, responsive, Shadow DOM friendly, and supports dark mode via Tailwind-compatible classes.

✨ Features

  • 📦 Booking form with date and guest inputs
  • 🌙 Dark mode support
  • ⚙️ One-line CDN integration
  • 🧩 Works inside Shadow DOM

🚀 Quick Start (CDN)

1. Add the CDN Script

<script src="https://cdn.jsdelivr.net/npm/hotelier-widgets@latest/dist/hotelier-widgets.js" type="module"></script>

2. Insert the Widget Element

<div hotelier-widget="horizontal-compact" data-url="https://yourdomain.com"></div>

3. Special Cases

For floating action widget (appears as a floating button):

<div hotelier-widget="floating-action" data-url="https://yourdomain.com"></div>

💡 Available Widgets

| Widget Name | Description | Best For | | -------------------------- | ------------------------------------------------------------ | ------------------- | | horizontal-compact | Compact and responsive horizontal form | Desktop layouts | | horizontal-minimalis | Minimalistic horizontal form with clean layout | Modern websites | | horizontal-rounded | Horizontal form with rounded input and button styles | Elegant designs | | horizontal-glassmorphism | NEW! Modern glassmorphism effect with backdrop blur | Premium websites | | vertical-prominent | Vertical layout with large, bold input fields and buttons | Sidebar placements | | vertical-dark | Dark-themed vertical layout, ideal for dark backgrounds | Dark mode sites | | vertical-gradient | Stylish vertical layout with gradient button styling | Creative designs | | vertical-modern | NEW! Modern card design with enhanced UX features | Modern applications | | compact-mobile | NEW! Mobile-optimized compact widget with touch-friendly | Mobile-first sites | | floating-action | NEW! Floating action button with modal booking form | Any website overlay |

✨ Enhanced Features (v2.0)

  • 🎯 Multiple new widget designs with modern UI patterns
  • 📱 Mobile-first responsive design for all widgets
  • 🌙 Automatic dark mode synchronization
  • Loading states and better user feedback
  • 🔄 Enhanced form validation with real-time checks
  • 🎨 Glassmorphism effects for premium feel
  • 🚀 Floating action modal for overlay booking
  • 🎭 Smooth animations and micro-interactions

📚 Documentation

View full documentation at: 👉 here