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

vue-calendarium

v1.0.3

Published

A polished, full-featured scheduling and calendar component for Vue 3 and Vuetify, with Temporal API date handling, recurring events (RRULE), i18n and mobile gestures

Readme

vue-calendarium

npm version license Vue 3 Vuetify 3

A full-featured scheduling and calendar component for Vue 3 and Vuetify 3. Supports Month, Week, and Day views, recurring events (RRULE), drag-and-drop, mobile gestures, theming via CSS variables, and Temporal-based date handling.


Features

  • Three views — Month, Week, and Day, switchable at runtime
  • Event CRUD — create, edit, and delete events through built-in modals or your own UI
  • Recurring events — full RRULE support (daily, weekly, monthly, yearly, custom) powered by the rrule library
  • Multiple calendars — group events into color-coded calendars with per-calendar visibility toggle
  • Drag and drop — move events across time slots and days (opt-in)
  • Mobile-first gestures — horizontal swipe to navigate between days/weeks/months, pinch-to-zoom on Day/Week views (HammerJS)
  • Ghost events — semi-transparent preview events shown while the user is filling in a creation form
  • Custom modals — disable the built-in modals and wire your own UI via callbacks
  • Theming — override any visual property through CSS custom properties or built-in presets (default, dark, compact, high-contrast)
  • 12-color palette — Material Design-inspired palette with helper utilities
  • i18n — English and Portuguese built-in; full vue-i18n integration
  • Temporal API — date handling built on @js-temporal/polyfill for correctness and timezone safety
  • Current-time indicator — red line showing the current time in Day/Week views (opt-in)

Requirements

| Peer dependency | Version | | --- | --- | | Vue | ^3.3 | | Vuetify | ^3.3 (your app must be wrapped in <v-app>) | | vue-i18n | ^9.0 |


Installation

npm install vue-calendarium

Quick Start

1. Register translations

import { createI18n } from 'vue-i18n';
import { translations } from 'vue-calendarium';

export const i18n = createI18n({
  legacy: false,
  locale: 'en',
  fallbackLocale: 'en',
  messages: {
    en: translations.en,
    pt: translations.pt
  }
});

2. Render the calendar

<template>
  <v-app>
    <v-main>
      <Calendar :calendar-app="calendarApp" />
    </v-main>
  </v-app>
</template>

<script setup>
import {
  createCalendar,
  createViewDay,
  createViewWeek,
  createViewMonth,
  Calendar
} from 'vue-calendarium';

const calendarApp = createCalendar({
  views: [createViewDay(), createViewWeek(), createViewMonth()],
  defaultView: 'month',
  locale: 'en-US',
  calendars: [
    { id: 'work',     name: 'Work',     color: '#1967D2' },
    { id: 'personal', name: 'Personal', color: '#0B8043' }
  ],
  events: []
});

calendarApp.eventsService.add({
  title: 'Team Meeting',
  start: '2026-01-27T10:00:00',
  end:   '2026-01-27T10:30:00',
  calendarId: 'work'
});
</script>

Core Concepts

Event structure

{
  id:          string | number,   // auto-generated if omitted
  title:       string,            // required
  start:       string,            // ISO date-time, required
  end:         string,            // ISO date-time, required
  allDay:      boolean,
  calendarId:  string,
  color:       string,            // hex color
  rrule:       string,            // RRULE string for recurring events
  description: string,
  location:    string,
  custom:      Record<string, unknown>
}

Managing events

calendarApp.eventsService.add({ title: 'Sprint Review', start: '...', end: '...' });
calendarApp.eventsService.update({ id: '1', title: 'Updated title' });
calendarApp.eventsService.remove('1');
calendarApp.eventsService.getAll();
calendarApp.eventsService.getByCalendar('work');
calendarApp.eventsService.getByDateRange(start, end);
calendarApp.eventsService.set([...events]); // replace all

Navigation and view control

calendarApp.goToNext();           // next day / week / month
calendarApp.goToPrevious();       // previous day / week / month
calendarApp.goToToday();
calendarApp.setView('week');      // 'day' | 'week' | 'month'
calendarApp.setDate(Temporal.Now.plainDateISO());
calendarApp.setLocale('pt-PT');

Callbacks

const calendarApp = createCalendar({
  views: [...],
  onEventClick:   (event) => { /* open detail panel */ },
  onEventCreate:  (events) => { /* persist to backend */ },
  onEventUpdate:  (event) => { /* sync changes */ },
  onEventDelete:  (event) => { /* remove from backend */ },
  onDateChange:   (date) => { /* Temporal.PlainDate */ },
  onViewChange:   (view) => { /* 'day' | 'week' | 'month' */ }
});

Recurring Events

Pass any valid RRULE string in the rrule field:

calendarApp.eventsService.add({
  title: 'Weekly Standup',
  start: '2026-01-05T09:00:00',
  end:   '2026-01-05T09:15:00',
  rrule: 'FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR'
});

The built-in recurrence picker modal covers daily, weekly, monthly, and yearly rules with custom interval and end options.


Custom Modals

Disable the built-in modals and handle creation/editing in your own UI:

const calendarApp = createCalendar({
  views: [...],
  enableModals: false,
  onEventCreateRequest: ({ draft, context }) => {
    // draft.start, draft.end, context.source ('time-slot' | 'day-cell' | ...)
    calendarApp.showGhostEvent(draft);   // show preview on the grid
    openMyModal(draft);
  },
  onEventClick: (event) => openMyEditModal(event)
});

// When the user confirms in your modal:
calendarApp.eventsService.add(finalEvent);
calendarApp.hideGhostEvent();

// To update the preview while the user types:
calendarApp.updateGhostEvent({ title: '...', start: '...', end: '...' });

Theming

Pass a theme object as a prop to override any CSS custom property:

<Calendar :calendar-app="calendarApp" :theme="myTheme" />
const myTheme = {
  '--calendar-primary-color': '#e91e63',
  '--calendar-today-bg':      '#e91e63',
  '--calendar-header-bg':     '#fce4ec',
  '--calendar-border-color':  '#f8bbd0'
};

Built-in presets are available via THEME_PRESETS:

import { THEME_PRESETS } from 'vue-calendarium';
// THEME_PRESETS.default | .dark | .compact | .highContrast

See docs/STYLING.md and docs/THEME_REFERENCE.md for the full list of variables.


Feature Flags

| Flag | Default | Description | | --- | --- | --- | | enableModals | true | Built-in create/edit/delete modals | | enableMobileSidebar | true | Slide-out sidebar on mobile | | mobileViewSelectorPlacement | 'sidebar' | 'header' or 'sidebar' | | enableSwipeGestures | true | Horizontal swipe navigation | | enablePinchToZoom | true | Pinch-to-zoom on Day/Week views | | enableCurrentTimeIndicator | true | Red current-time line | | enableDragAndDrop | false | Drag events across the grid |


Documentation

| Guide | Description | | --- | --- | | docs/USAGE.md | Usage guide with practical examples | | docs/API.md | Full API reference — props, callbacks, services | | docs/STYLING.md | Theming and styling guide | | docs/THEME_REFERENCE.md | Complete CSS variables reference | | docs/THEME_EXAMPLES.md | Ready-to-use theme examples | | docs/COLORS.md | 12-color Material palette and helpers | | docs/GHOST_EVENTS.md | Ghost events for custom modal workflows |


Development

make dev        # start the dev server
make test       # unit tests (Vitest)
make test-ui    # end-to-end tests (Playwright)

Contributing

Contributions are welcome. Please read the contributing guide and the code of conduct before opening an issue or pull request.


License

MIT © zehenrique