kcsujeet/ilamy-calendar
Acerca de
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.
Desarrollo web y de aplicacionesCrecimiento de estrellas medido
- in 24h
- 0
- in 7 days
- -1
- in 15 days
- +1
- in 1 month
- Recopilando historial
Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.
README.md
Originalilamy Calendar
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.
Elegant month view with seamless event transitions
Support
ilamy Calendar is free and open source. If you'd like to support its development:
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(orbusinessHours) 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
.icsfiles with strict RFC 5545 compliance.
Plugin System
- Opt-in capabilities: The core ships no plugins. Add behavior through the
pluginsprop, 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
timezoneprop renders and parses dates in that zone viadayjs.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 (seedocs/timezones.md). - Internationalization: Dates follow any dayjs locale (dayjs ships 140+; import the ones you use, e.g.
import 'dayjs/locale/fr', and passlocale). UI text is translated through thetranslationsortranslatorprops, 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.dayjsis in the command above because the calendar's API usesdayjsobjects 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-addsrrule/recurrenceId/exdatestoCalendarEvent.@ilamy/calendar/plugins/agenda— an agenda (upcoming-events list) view scoped to awindow.@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
Explorar proyectos relacionados
Cargando…