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

chrono-calendar

v0.0.14

Published

A **modern, responsive, and customizable calendar library** for **Angular** applications. Built with **Signals** and **standalone components** for simple and performant integration.

Readme

⏳ Chrono Calendar

A modern, responsive, and customizable calendar library for Angular applications.
Built with Signals and standalone components for simple and performant integration.


🎥 Demo

👉 Live Demo & Documentation


✨ Features

  • 🗓️ Multiple Views → Switch between monthly, weekly, and daily views.
  • 🎯 Drag and Drop → Move events easily between days and time slots.
  • ⚙️ Optional Drag & Drop → Enable or disable via input.
  • 🧩 Standalone Components → Works without NgModules.
  • 🧠 Simple API → Use @Input and @Output for full control.
  • 📅 Powered by Luxon → Reliable and precise date handling.
  • Lightweight & Performant → Built with Angular Signals.
  • 🌍 Internationalization Ready → Customizable texts and automatic locale detection.

💾 Installation

npm install chrono-calendar luxon

💡 If you need Luxon types, install them too:

npm install -D @types/luxon

🚀 How to Use

1️⃣ Import the Component and Luxon

import { Component } from '@angular/core';
import { ChronoCalendarComponent, CalendarEvent } from 'chrono-calendar';
import { DateTime } from 'luxon';

@Component({
  selector: 'app-your-page',
  standalone: true,
  imports: [ChronoCalendarComponent],
  templateUrl: './your-page.component.html',
})
export class YourPageComponent {
  // ...
}

2️⃣ Add to Template and Provide Data

<div style="height: 90vh;">
  <chrono-calendar
    [events]="myEvents"
    [initialView]="'weekly'"
    [enableDragDrop]="true"
    [todayButtonText]="'Today'"
    [monthViewText]="'Month'"
    [weekViewText]="'Week'"
    [dayViewText]="'Day'"
    (eventClicked)="handleEventClicked($event)"
    (eventDropped)="handleEventDropped($event)"
  >
  </chrono-calendar>
</div>

3️⃣ Prepare Event Data

import { DateTime } from 'luxon';
import { CalendarEvent, EventDroppedInfo } from 'chrono-calendar';

export class YourPageComponent {
  myEvents: CalendarEvent[] = [
    {
      id: 1,
      title: 'Team Meeting',
      start: DateTime.fromISO('2025-08-25T10:00:00'),
      end: DateTime.fromISO('2025-08-25T11:00:00'),
      color: '#0d6efd',
    },
    {
      id: 2,
      title: 'Client Lunch',
      start: DateTime.fromISO('2025-08-26T12:30:00'),
      end: DateTime.fromISO('2025-08-26T14:00:00'),
      color: '#198754',
    },
  ];

  handleEventClicked(event: CalendarEvent) {
    console.log('Event clicked:', event.title);
    alert(`Event: ${event.title}`);
  }

  handleEventDropped(info: EventDroppedInfo) {
    console.log('Event dropped:', info.event.title);
    console.log('New date:', info.newDate.toISO());
    console.log('Previous date:', info.previousDate.toISO());
  }
}

⚙️ Properties API

🔹 Inputs (@Input)

| Property | Type | Default | Description | |-----------|------|----------|--------------| | events | CalendarEvent[] | [] | List of events displayed in the calendar. | | initialView | 'monthly' \| 'weekly' \| 'daily' | 'monthly' | Sets the initial view mode. | | enableDragDrop | boolean | true | Enables or disables drag-and-drop functionality. | | todayButtonText | string | 'Today' | Label for the “Today” button. | | monthViewText | string | 'Month' | Label for the Month view button. | | weekViewText | string | 'Week' | Label for the Week view button. | | dayViewText | string | 'Day' | Label for the Day view button. |


🔹 Outputs (@Output)

| Event | Returns | Description | |--------|----------|-------------| | eventClicked | CalendarEvent | Fired when an event is clicked. | | dayClicked | DateTime | Fired when a day cell is clicked. | | eventDropped | EventDroppedInfo | Fired when an event is moved. | | viewChange | 'monthly' \| 'weekly' \| 'daily' | Fired when the view mode changes. | | monthChange | { start: DateTime, end: DateTime } | Fired when the visible range changes. |


🎯 Drag and Drop

Chrono Calendar has built-in drag-and-drop support for all views:

  • 🗓️ Monthly: Move events between days
  • 📅 Weekly: Move events between time slots
  • 🕒 Daily: Reorganize event times

Enable or disable as needed:

<!-- Enable (default) -->
<chrono-calendar [enableDragDrop]="true"></chrono-calendar>

<!-- Disable -->
<chrono-calendar [enableDragDrop]="false"></chrono-calendar>

🌍 Internationalization (i18n)

Customize button labels easily.
Date formatting adapts automatically to the user’s browser locale.

Portuguese Example:

<chrono-calendar
  [todayButtonText]="'Hoje'"
  [monthViewText]="'Mês'"
  [weekViewText]="'Semana'"
  [dayViewText]="'Dia'"
></chrono-calendar>

Spanish Example:

<chrono-calendar
  [todayButtonText]="'Hoy'"
  [monthViewText]="'Mes'"
  [weekViewText]="'Semana'"
  [dayViewText]="'Día'"
></chrono-calendar>

📘 Interfaces

import { DateTime } from 'luxon';

export interface CalendarEvent {
  id: string | number;
  title: string;
  start: DateTime;
  end: DateTime;
  color?: string;
}

export interface EventDroppedInfo {
  event: CalendarEvent;
  newDate: DateTime;
  previousDate: DateTime;
}

🎨 Styling

Chrono Calendar includes default styles.
You can customize it easily by overriding CSS classes using your own theme or stylesheet.


🤝 Contributing

Contributions are always welcome!
If you’d like to improve Chrono Calendar, open a Pull Request or Issue on GitHub.


📄 License

This project is licensed under the MIT License.


Made with ❤️ by the Chrono Calendar team.