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 🙏

© 2024 – Pkg Stats / Ryan Hefner

appybee-widget-beta

v0.2.6

Published

AppyBee Booking Widget

Downloads

43

Readme

AppyBee Widget Script

This is simple script which renders an iframe with a widget with provided params.

Methods

  • AppyBeeWidget.init(options);
  • AppyBeeWidget.show();
  • AppyBeeWidget.hide();

Options

Options are stored in object provided to init function as a param.

  • baseURL: Address of the API
  • wsBaseURL: Address of the WebSocket server
  • widgetURL: Address of the widget
  • companyAPIKey (required): Company API key
  • style (required): Widget style (side, fullscreen or inline)
  • user: User is used to authenticate to the API
  • passsword: Password is used to authenticate to the API
  • strictPath (default: false): Store cookies in current path not in whole domain
  • showCloseButton (default: true): Allow to control if close button is shown or not

Import widget

import AppyBeeWidget from "appybee-widget-beta";

AppyBeeWidget.init({
    baseURL: 'https://portal.appybee.nl',
    wsBaseURL: 'http://ws.appybee.nl',
    widgetURL: '******',
    style: 'fullscreen'
});
AppyBeeWidget.show();

Website style

Website style renders the widget in fullscreen mode with no possibility to close it. Additionally the "Home" tab is rendered as a main tab. It contains the informations about the selected company.

Script usage provided from CDN

<html lang="en">
    <body>
        <script src="https://cdn.jsdelivr.net/npm/appybee-widget-beta"></script>
        <script>
            AppyBeeWidget.init({
                baseURL: 'https://myprofiapp.nl',
                wsBaseURL: 'http://ws.appybee.nl',
                widgetURL: '******',
                style: 'fullscreen'
            });
            AppyBeeWidget.show();
        </script>
    </body>
</html>

Scripts

npm run build

Builds the widget to the /build directory.