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

dayschedule-widget

v1.2.0

Published

Appointment scheduling widget to embed the booking calendar on your website for 1:1, round-robin and group bookings with Google meet, Zoom and MS Teams integrations

Downloads

293

Readme

dayschedule-widget

version license hits per month

Appointment scheduling widget to embed the booking calendar on your website for 1:1, round-robin and group bookings with Google meet, Zoom and MS Teams integrations

appointment scheduling widget

Installation

Install the dayschedule-widget from NPM

npm i dayschedule-widget

Setup

Add the JavaScript dayschedule-widget.js library into your website HTML head section:

<script src="/dist/dayschedule-widget.js" defer></script>

CDN

Alternatively, you can install from CDN for better performance and global caching:

For example:

<script src="https://cdn.jsdelivr.net/npm/dayschedule-widget@latest/dist/dayschedule-widget.min.js" defer></script>

Usage

Call the daySchedule.initPopupWidget(...) function from any button or link from your website to open the scheduling popup:

<button type="button" 
	onClick="daySchedule.initPopupWidget({ url: 'https://meet.dayschedule.com' });">
	Book an appointment
</button>

Examples

The dayschedule widget offers easy embeddable, customizable designs, and automatic reminders to manage online appointments. See these examples to learn how to embed the appointment scheduling widget in React, Nest.js, Wordpress, Angular, Vue, Node.js etc.

Platforms

| Platform | Description | |------------|-----------------------------------------------------------------------| | HTML Popup | An example of embedding a popup appointment widget using HTML5.| | HTML Inline | An example of embedding a inline appointment widget using HTML5.| | Wordpress | A WordPress plugin for managing appointments, events, and services.| | Node.js | Embed appointment booking widget in Node.js| | React | React.js and Tailwind CSS example to embed appointment booking widget in React | | Angular | Angular 16 example to embed appointment booking widget in Angular| | Vue.js | Vue.js example to embed appointment dayschedule booking widget in Vue website| | Next.js | Next.js example to embed dayschedule appointment booking widget in Next website| | Nuxt | Nuxt example to embed dayschedule appointment booking widget|

Widget Types

There are 2 types of embed option available on DaySchedule for appointment bookings:

  1. Popup widget
  2. Inline widget

Popup widget

To embed as a button and open the appointment scheduling popup when clicked. We recommends the popup widget, because it's initialized when someone click on the book now button, instead of having it initialize upon page load to improve website speed and performance by avoiding unnecessary requests.

  1. Add the dayschedule-popup.css on website header.
<link href="https://cdn.jsdelivr.net/npm/dayschedule-widget@latest/dist/dayschedule-popup.css" rel="stylesheet" />
  1. Add a onClick function to open the popup when clicked on a button
daySchedule.initPopupWidget({
	url: 'https://meet.dayschedule.com',
	color: {
		primary: '#0f0980',
		secondary: '#afeefe'
	}
});

Inline widget

To embed the inline appointment scheduling plugin in HTML

<dayschedule-widget url='https://meet.dayschedule.com' options='{ "color": {
        "primary": "#0f0980",
        "secondary": "#afeefe"
    }}'></dayschedule-widget>

Options

Here is the list of options available to customize your appointment look and feel to match up with your website and brand : | Name | Description | |--|--| |url| To set your main scheduling link or single event link| |color| To set primary and secondary color of your appointment calendar, e.g. {color: {primary: '#0f0980', secondary: '#afeefe', mode : 'light' }} | |questions| To auto fill registration form questions, e.g. {questions: {name : 'Vikash'}} |hideHeader| To hide the header { hideHeader: true }| |hideEvent| To hide the event details from calendar view { hideEvent: true }|

Dark Mode

To enable the dark mode (night mode) on your appointment scheduling page. Go to pages setting to apply globally, or use the color.mode option in arugments.

daySchedule.initPopupWidget({
	url: 'https://meet.dayschedule.com',
	color: {
		primary: '#0f0980',
		secondary: '#afeefe',
		mode: 'dark'
	}
});

Dark mode appointment page

Performance

The dayschedule appointment pages are designed for optimal performance, providing users with a smooth and responsive booking experience across desktop, tablet and mobiles.

We optimize each of the functionality to -

  1. Minimize network requests
  2. Image conversion to WebP (a modern image format developed by Google, to ensure high-quality images while significantly reducing file sizes)
  3. Advanced gzip, br compression to minimize the size of assets such as scripts, and stylesheets
  4. Low latency with CDN

Making it faster then Calendly, Cal.com etc.

Scheduling pages performance comparisons

The scheduling pages are hosted on 250+ regions on Cloudflare and/or AWS cloudfront for high-performance and low-latency. So you will always see lightning-fast loading times and efficient caching mechanisms to ensure swift access of your available time slots and services to your customers for online appointment bookings.

A grade on Gtmetrix, Lighthouse :white_check_mark:

DaySchedule appointment page performance

Support

Have a question? Contact us on [email protected]