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

jcalendar.js

v2.12.6

Published

A javascript drag & drop event calendar, that is fully responsive and compatible with all modern browsers.

Readme

Tweet npm nuget license discussions Welcome coded by William Troup

Calendar.js supports 8 different views (two are modes), which can be accessed from the context menus, and title bar buttons. They are as follows:

CalendarJs CalendarJs - Menu CalendarJs - Pin-Up

CalendarJs - Full Day

CalendarJs - Full Week

CalendarJs - Full Year

CalendarJs - All Events

CalendarJs - All Events

  • Zero-dependencies!
  • Exportable for use in other frameworks!
  • 52 language translations available!
  • Adding, updating, and removing events, with full custom colors support.
  • Full API available via public functions.
  • Drag and Drop for events, even across multiple Calendars!
  • Drag and Drop for moving events to new times, and resizing to adjust event durations (in Full Day/Week views).
  • Cut, Copy, Paste (with multi-select support), and Duplication of events.
  • Configurable text for translations (see "dist/translations" for languages already available).
  • Day, Week, Month, Year, All Events, and Timeline views.
  • Fully styled in CSS/SASS (including the buttons) and compatible with the Bootstrap library.
  • Full CSS theme support (using :root variables, with dark-mode support).
  • Custom triggers for actions (adding/updating/removing events, skipping months, etc.).
  • Export events to CSV, XML, JSON, TEXT, iCAL, MD, HTML, and TSV, with system clipboard setting support.
  • Import events from iCAL and JSON files.
  • Full-screen mode (double-clicking the title bar).
  • Search support (with search history).
  • Repeat every Day, Week, Month, Year, or a custom period (with exclusion days support), with editing forward, and series support.
  • Customizable holidays.
  • Shortcut keys (click here to see the full list).
  • Custom event groups (with configurable toggles via the side menu).
  • Browser notifications for events, with offset support (modern browsers only).
  • Drop file support (allowing a file containing JSON, or an array of events, to be added).
  • DatePicker mode (just assign to the ID of a text input).
  • HTML text support (off by default).
  • jQuery plugin for quickly creating Calendars.
  • Data-Binding support to quickly create new Calendars without writing Javascript!
  • Popup notifications for actions (adding/updating/deleting events, updating configuration, etc.).
  • Start of week support (Monday, Saturday, or Sunday).
  • Local storage support for events!
  • Widget mode (small widget that shows the current/specific day).

All the documentation can be found here.

All modern browsers (such as Google Chrome, FireFox, and Opera) are fully supported.

  • af Afrikaans
  • ar Arabic
  • hy Armenian
  • be Belarusian
  • bn Bengali
  • bg Bulgarian
  • ca Catalan
  • zh Chinese (simplified)
  • da Danish
  • nl Dutch
  • en English (default)
  • eo Esperanto
  • et Estonian
  • fa Farsi
  • fi Finnish
  • fr French
  • fy Frisian
  • gl Galician
  • ka Georgian
  • de German
  • el Greek
  • he Hebrew
  • hi Hindi
  • hu Hungarian
  • is Icelandic
  • id Indonesian
  • ga Irish
  • it Italian
  • ja Japanese
  • ko Korean
  • lv Latvian
  • lt Lithuanian
  • lb Luxembourgish
  • ms Malay
  • ne Nepali
  • no Norwegian
  • pl Polish
  • pt Portuguese
  • ro Romanian
  • si Sinhalese
  • sk Slovak
  • sl Slovenian
  • es Spanish
  • sv Swedish
  • tl Tagalog
  • ta Tamil
  • zh-tw Taiwanese
  • te Telugu
  • th Thai
  • tr Turkish
  • uk Ukrainian
  • vi Vietnamese

To see a list of all the most recent changes, click here.

You can install the library with npm into your local modules directory using the following command:

npm install jcalendar.js

Or, you can download the latest zipped up version here.

Or, you can also use the following CDN links:

https://cdn.jsdelivr.net/gh/williamtroup/[email protected]/dist/calendar.min.js
https://cdn.jsdelivr.net/gh/williamtroup/[email protected]/dist/calendar.js.min.css

To get started using Calendar.js, do the following steps:

1. Prerequisites:

Make sure you include the "DOCTYPE html" tag at the top of your HTML, as follows:

<!DOCTYPE html>

2. Include Files:

<link rel="stylesheet" href="dist/calendar.js.css">
<script src="dist/calendar.js"></script>

3. Create DOM Container:

<div id="calendar"></div>

4. Initialize Calendar.Js:

<script> 
  var calendarInstance1 = new calendarJs( "calendar", {
    manualEditingEnabled: true
    // All your options can be set here
  } );

  // OR
  var calendarElement = document.getElementById( "calendar" );
  var calendarInstance2 = new calendarJs( calendarElement, {
    manualEditingEnabled: true
    // All your options can be set here
  } ); 
</script>

5. Finishing Up:

That's it! Nice and simple. Please refer to the code if you need more help (fully documented).

To customize, and get more out of Calendar.js, please read through the following documentation.

1. Options:

Options (which can be set when initializing, or afterwards) allow you to customize how Calendar.js will look and function. The options are also used to set the custom triggers you want to fire when specific actions occur. You can set them manually as follows:

<script> 
  calendarInstance.setOptions( {
      manualEditingEnabled: false,
      views: {
          fullMonth: {
              maximumEventsPerDayDisplay: 0
          }
      },
      visibleDays: [ 0, 1, 2, 3, 4 ]
  } );
</script>

To see a list of all the available options you can use, click here.

To see a list of all the available custom triggers you can use, click here.

2. Event Object Format:

An event is defined as a JavaScript object, as follows:

<script> 
  var event = {
      from: new Date(),
      to: new Date(),
      title: "A New Event",
      description: "A description of the event"
  };
</script>

You can add a new event by using one of the add public functions, as follows:

<script> 
  calendarInstance.addEvent( event );
</script>

To see a list of all the available event properties and how they should be formatted, click here.

3. Holiday Object Format:

A holiday is a piece of text that is shown under the day number in the month it is assigned to. You can set these holidays in the options, or add them manually as follows:

<script> 
  var holiday = {
      day: today.getDate(),
      month: today.getMonth() + 1,
      title: "A New Holiday",
  };
  
  // This is a public function that you can call
  calendarInstance.addHolidays( [ holiday ] );
</script>

To see a list of all the available holiday properties and how they should be formatted, click here.

4. Public Functions:

To see a list of all the public functions available, click here.

5. Search Options:

Search Options allow you to customize how Calendar.js Search dialog will function. You can set them manually as follows:

<script> 
  calendarInstance.setSearchOptions( {
      matchCase: false
  } );
</script>

To see a list of all the available search options you can use, click here.