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

mh-calendar-core

v0.1.3

Published

Core of the mh-calendar

Downloads

116

Readme

A highly customizable, full-sized event calendar built with TypeScript, Stencil, and Day.js.

[!WARNING] mhcalendar is currently in its 0.x.x phase. As per Semantic Versioning, the API is not yet stable, and any new minor or patch release might introduce breaking changes. We recommend pinning the exact version in your package.json until we reach 1.0.0.

Why mhcalendar?

mhcalendar is built around easy customization as a first-class feature. You get full, unrestricted access to the calendar's styling. You can style it exactly how you want by using CSS variables, overriding inline styles, or utilizing our custom properties.

Key Features

  • Customization — Style it your way.
  • Framework Agnostic — Built as a Web Component with Stencil.
  • Lightweight by Design — Keeps the dependency footprint tiny.
  • Advanced Timezones — Support for multiple IANA timezones simultaneously.
  • Fully Interactive — Drag & drop event management and event resizing.
  • Multiple Views — Month, Week, Day, Agenda, and Shiftplan.
  • Business Hours — Define business hours, block out-of-office dragging, and visualize non-business time.
  • ...and more!

Documentation

📖 Full documentation is currently in progress. Stay tuned!

Installation

If you are using React, you might want to check out our official React component: 👉 @mhcalendar/react

If you are building a Vanilla JS project, install the core package via your preferred package manager:

# npm
npm install mhcalendar-core

# yarn
yarn add mhcalendar-core

# pnpm
pnpm add mhcalendar-core

Quick Start

Import and initialize the web component in your app's entry file (e.g., main.ts):

import { defineCustomElements } from 'mhcalendar-core/loader';

// Registers the <mhcalendar> custom element in the browser
defineCustomElements();

Example usage:

<html>
  <head>
    <title>Vanilla - 1</title>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  </head>
  <body>
    <script type="module" src="/src/main.js"></script>
    <mhcalendar id="my-calendar" />
    <script type="module">
      const mhcalendar = document.getElementById('my-calendar');

      const now = new Date();
      const startDate = new Date(now.getFullYear(), now.getMonth(), now.getDate(), 10, 0);
      const endDate = new Date(now.getFullYear(), now.getMonth(), now.getDate(), 11, 30);

      mhcalendar.config = {
        viewType: 'WEEK',
        showTimeFrom: 9,
        showTimeTo: 18,
        allowEventDragging: true,
      };
      mhcalendar.events = [
        {
          id: '1',
          title: 'Team Meeting',
          startDate,
          endDate,
        },
      ];
    </script>
  </body>
</html>

Contributing

Contributions are welcome! If you'd like to report a bug, suggest a feature, or submit a pull request, please open an issue first to discuss what you'd like to change.

Changelog

See CHANGELOG.md for a full list of changes between releases.

License

mhcalendar is MIT Licensed.