Skip to content
المشاريع

حول

A modern, open-source Full Calendar alternative for React. Month, week, day, and year views with drag-and-drop, horizontal and vertical resource views, and RFC 5545 recurring events — all MIT licensed.

تطوير الويب والتطبيقات

كيف تُقاس هذه الأرقام

النمو المقاس للنجوم

خلال 24 ساعة
٠
خلال 7 أيام
؜-١
خلال 15 يومًا
+١
خلال شهر
جارٍ جمع السجل

تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.

README.md

الأصل

ilamy Calendar

NPM Version License Build Status

A powerful, full-featured yet lightweight and highly pluggable React calendar component library built with TypeScript, Tailwind CSS 4, and shadcn/ui. The core is small — ~155 KB minified (≈52 KB gzipped), React and other dependencies not included — with opt-in plugins for recurring events, agenda views, and more, so you only ship what you use. Built for scheduling with RFC 5545 recurring events, resource management, and drag-and-drop to move and resize events.

Screenshot 2026-07-12 at 2 44 36 PM

Elegant month view with seamless event transitions


Support

ilamy Calendar is free and open source. If you'd like to support its development:

Buy me a coffee at ko-fi.com


Features

Core Views

  • Multiple Perspectives: Month, Week, Day, and Year views.
  • Fluid Navigation: Smooth transitions between dates and views.
  • Business Hours: Customizable working hours with support for split shifts.

Resource Management

  • Resource Timeline: Visualize and manage events across multiple resources (rooms, people, equipment).
  • Vertical & Horizontal Layouts: Flexible resource views to fit any application design.
  • Resource-Aware Availability: The event form limits dates and times to each resource's business hours, and isCellDisabled (or businessHours) blocks drops onto unavailable cells.

Recurring Events (RFC 5545)

Opt-in via the recurrence plugin (plugins={[recurrencePlugin()]} from @ilamy/calendar/plugins/recurrence).

  • Full RRULE Support: Daily, Weekly, Monthly, Yearly patterns with complex frequencies.
  • Smart CRUD: Google Calendar-style operations—edit "this event", "this and following", or "all events".
  • Exclusion Dates: Robust handling of EXDATE and modified instances within a series.
  • iCalendar Export: Export events to .ics files with strict RFC 5545 compliance.

Plugin System

  • Opt-in capabilities: The core ships no plugins. Add behavior through the plugins prop, each from its own subpath: @ilamy/calendar/plugins/recurrence (RFC 5545 recurring events), @ilamy/calendar/plugins/agenda (agenda list view) and @ilamy/calendar/plugins/drag-to-create (drag across empty cells to create an event).

Internationalization & Timezones

  • Timezones: A timezone prop renders and parses dates in that zone via dayjs.tz, DST included. Known gap: dayjs still reads zoned dates through the machine's own zone, so results can be an hour off on a machine whose clocks change (see docs/timezones.md).
  • Internationalization: Dates follow any dayjs locale (dayjs ships 140+; import the ones you use, e.g. import 'dayjs/locale/fr', and pass locale). UI text is translated through the translations or translator props, with English built in. The week start day is configurable.

Interactions

  • Drag & Drop: Drag events to move them, or drag an edge to resize them, powered by @dnd-kit.
  • Responsive: Adaptive layouts designed for desktop, tablet, and mobile.

Developer Experience

  • Type Safety: Written in TypeScript with comprehensive type definitions and IntelliSense support.
  • Tests: A unit and integration suite covers date, recurrence and layout logic, plus a browser (Playwright) suite for drag and geometry.
  • Theming: Built on Tailwind CSS 4 variables for effortless branding and customization.
  • Modern Stack: Zero-config integration with React 19 and modern build tools.

Installation

Install the library and its peer dependencies using your preferred package manager:

# npm
npm install @ilamy/calendar dayjs

# bun
bun add @ilamy/calendar dayjs

# pnpm
pnpm add @ilamy/calendar dayjs

Note: This library requires React 19+ and Tailwind CSS 4+. Peers: dayjs, react, react-dom, tailwindcss (v4), tailwindcss-animate. dayjs is in the command above because the calendar's API uses dayjs objects and shares your app's instance/locale.


Quick Start

import { IlamyCalendar } from '@ilamy/calendar';

const MyApp = () => {
  const events = [
    {
      id: '1',
      title: 'Project Kickoff',
      start: '2026-05-01T10:00:00Z',
      end: '2026-05-01T11:30:00Z',
      color: 'blue'
    }
  ];

  return (
    <div style={{ height: '800px' }}>
      <IlamyCalendar 
        events={events}
        initialView="week"
        onEventClick={(event) => console.log('Clicked:', event)}
      />
    </div>
  );
};

Styling — bring your own design system

@ilamy/calendar ships no CSS. Components use the conventional shadcn/ui token classes (bg-background, text-muted-foreground, bg-primary, border-border, …), so your design system supplies the look. Point Tailwind at the package so it generates the utilities (Tailwind v4 ignores node_modules by default — adjust the relative depth to your stylesheet):

@source "../node_modules/@ilamy/calendar/dist";

If you already use shadcn, the tokens are defined and you're done. Otherwise, define the standard shadcn theme tokens (--background, --primary, --border, --ring, --card, …) so the calendar inherits your palette.


Plugins

The core ships no plugins. Add capabilities through the plugins prop, each imported from its own subpath:

import { IlamyCalendar } from '@ilamy/calendar';
import { recurrencePlugin } from '@ilamy/calendar/plugins/recurrence';
import { agendaPlugin } from '@ilamy/calendar/plugins/agenda';

<IlamyCalendar
  events={events}
  plugins={[recurrencePlugin(), agendaPlugin({ window: 'week' })]}
/>
  • @ilamy/calendar/plugins/recurrence — RFC 5545 recurring-event expansion and scoped edit/delete. Also re-adds rrule/recurrenceId/exdates to CalendarEvent.
  • @ilamy/calendar/plugins/agenda — an agenda (upcoming-events list) view scoped to a window.
  • @ilamy/calendar/plugins/drag-to-create — drag across empty cells to open the event form preselected with that range.

Examples

Explore the examples directory for complete implementation patterns:

  • Next.js - Integration with Next.js and Tailwind CSS.
  • Astro - Static site integration with Astro.
  • Vite - Fast, minimal setup using Vite.

Documentation

For comprehensive guides, API references, and interactive demos, visit ilamy.dev.


License

MIT © Sujeet Kc

استكشف مشاريع مشابهة ومرتبطة

جارٍ التحميل…