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

easea-app-widget

v1.7.2

Published

Easea App widget allow you to get a booking box into yor website

Readme

Easea App Widget

Official documentation to integrate the Easea App booking widget into your website and receive bookings directly from your own site.

Important note: this widget is available only to Easea App customers who have been granted access beforehand.

What the widget does

  • Dynamically injects a host (div#easea-widget-root) into the page, creates a Shadow DOM, and renders the widget UI inside it, isolating styles.
  • Exposes a global API window.EaseaWidget.init(config) so you can initialize the widget whenever you prefer.

Installation

You can integrate the widget in two ways.

  1. NPM (recommended for build/bundler setups)
npm install easea-app-widget

Then import the bundle in your app (the import registers window.EaseaWidget).

import 'easea-app-widget'

// anywhere after the DOM is ready
window.EaseaWidget?.init({
  key: 'YOUR_WIDGET_KEY',
})
  1. CDN (script tag directly in the page)
<!-- Use any public CDN; example with jsDelivr -->
<script src="https://cdn.jsdelivr.net/npm/easea-app-widget/dist/widget/index.umd.js" defer></script>
<script>
  window.addEventListener('DOMContentLoaded', function () {
    window.EaseaWidget && window.EaseaWidget.init({
      key: 'YOUR_WIDGET_KEY',
    });
  });
  // Alternatively, load as ES module:
  // <script type="module" src="https://cdn.jsdelivr.net/npm/easea-app-widget/dist/widget/index.es.js"></script>
  // and then call window.EaseaWidget.init(...)
</script>

Minimal quick start (HTML)

<!doctype html>
<html>
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <title>Easea App Widget</title>
    <script src="https://cdn.jsdelivr.net/npm/easea-app-widget/dist/widget/index.umd.js" defer></script>
  </head>
  <body>
    <!-- The widget creates its own host and Shadow DOM -->

    <script>
      window.addEventListener('DOMContentLoaded', function () {
        window.EaseaWidget &&
          window.EaseaWidget.init({
            key: 'YOUR_WIDGET_KEY',
          })
      })
    </script>
  </body>
</html>

API

window.EaseaWidget.init(config)

config parameters:

  • key (string, required): widget key provided by Easea App.
  • lang (string, optional): UI language. Examples: it, en. If omitted, the widget will try to detect the host website language; if it’s not yet supported among the available ones, the default language will be used.
  • targetElementId (string, optional): id of an element present in the DOM to be used as a reference/anchor for parts of the UI (where supported). If not provided, the widget uses the default behavior.

Technical notes:

  • The created host has id easea-widget-root and is appended to document.body.
  • Widget styles are isolated via Shadow DOM; no additional CSS imports are required.

Integration best practices

  • Initialize the widget after the DOM has loaded.
  • Keep your key safe: since this is a client widget, the key can be exposed; contact Easea App for any usage limits/policies.
  • If you use optimization/lazy-loading tools, make sure the script is available before calling init.

Troubleshooting

  • window.EaseaWidget is undefined: ensure the script (NPM or CDN) is loaded before calling init.
  • No visible content: verify your key and check the browser console for network or console errors.
  • Style conflicts: the widget uses Shadow DOM and its own stylesheets to minimize conflicts.

Changelog

See the NPM registry for published versions of the easea-app-widget package.


Support

Need help with the integration? Contact the Easea App team.