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

@agenda-kit/svelte

v0.1.5

Published

Booking/agenda calendar micro-plugin for Svelte 5 (runes) — wraps FullCalendar with reactive state, a DaisyUI toolbar, and an overridable create/edit dialog.

Downloads

562

Readme

AgendaCalendar — Micro-Plugin

FullCalendar v6 · Svelte 5 (Runes) · DaisyUI · Lucide Icons Experimental: Do not use in production until v1.0.0. Agenda calendar for multi-resource platforms.


Why FullCalendar?

FullCalendar is the industry-standard calendar library (10M+ weekly downloads). It handles everything that is genuinely hard to build correctly:

  • Timezone & DST awareness
  • Drag-and-drop with collision detection
  • Event resizing with snap-to-grid
  • Recurring events (RRULE)
  • iCal import/export
  • Accessibility (ARIA, keyboard navigation, screen reader tested)
  • Touch / mobile gesture support
  • 50K+ unit tests upstream

We wrap it with a thin Svelte 5 controller so you get all of that for free, plus reactive Svelte state, DaisyUI styling, and our domain API on top.


Install

npm install \
  @fullcalendar/core \
  @fullcalendar/daygrid \
  @fullcalendar/timegrid \
  @fullcalendar/list \
  @fullcalendar/interaction

Optional (premium, requires license key — needed for the multi-resource view):

npm install \
  @fullcalendar/resource \
  @fullcalendar/resource-timegrid \
  @fullcalendar/resource-daygrid

See FullCalendar Pricing for the Scheduler license. The free plugins cover month, week, day, and list views — fully functional for most operators.


Quick Start

<script lang="ts">
	import AgendaCalendar, { generateMockData } from '@agenda-kit/svelte';
	const { resources, events } = generateMockData();
</script>

<AgendaCalendar {resources} {events} />

Usage Patterns

Pattern 1 — Minimal

<AgendaCalendar {resources} {events} />

Component self-manages its FullCalendar instance. Simplest possible usage.


Pattern 2 — With options

<AgendaCalendar
	{resources}
	{events}
	options={{
		initialView: 'listWeek',
		firstDayOfWeek: 1,
		onEventSave: async (payload) => await api.saveEvent(payload),
		onEventDelete: async (id) => await api.deleteEvent(id),
		onEventMove: async (event) => await api.moveEvent(event),
		i18n: { today: "Aujourd'hui", viewMonth: 'Mois' }
	}}
/>

Pattern 3 — External controller (full control)

<script lang="ts">
	import AgendaCalendar, { createAgendaCalendarController, FCView } from '@agenda-kit/svelte';

	const ctrl = createAgendaCalendarController({ resources, events });
</script>

<!-- Drive the calendar from anywhere in your page -->
<button onclick={() => ctrl.changeView(FCView.LIST_WEEK)}>Schedule</button>
<button onclick={() => ctrl.today()}>Today</button>

<!-- Pass the controller in -->
<AgendaCalendar controller={ctrl} />

Controller API

Readable state

| Property | Type | Description | | ----------------- | ------------------ | ---------------------------------- | | resources | AgendaResource[] | All resources | | events | AgendaEvent[] | All events | | activeView | string | Current FC view name | | headerLabel | string | Toolbar title text | | filterResourceId | string \| null | Active filter | | filteredEvents | AgendaEvent[] | Events after filter | | popoverOpen | boolean | Is the EventForm open? | | fc | Calendar \| null | The raw FC instance (escape hatch) |

Navigation

ctrl.next();
ctrl.prev();
ctrl.today();
ctrl.goToDate('2025-12-25');
ctrl.changeView(FCView.TIME_GRID_WEEK);

Data mutation

ctrl.setResources(newResources);
ctrl.addResource(resource);
ctrl.removeResource(id);

ctrl.setEvents(newEvents);
ctrl.addEvent(event);
ctrl.updateEvent(updatedEvent);
ctrl.removeEvent(id);
ctrl.setFilter(resourceId); // null = show all

Popover API

ctrl.openCreatePopover(slotStart?, slotEnd?, resourceId?)
ctrl.openEditPopover(event)
ctrl.closePopover()
await ctrl.handleEventSave(payload)
await ctrl.handleEventDelete(id)

Views

| FCView enum | FullCalendar name | Plugin | | -------------------- | ---------------------- | -------------------------------------------- | | DAY_GRID_MONTH | dayGridMonth | @fullcalendar/daygrid (free) | | DAY_GRID_WEEK | dayGridWeek | @fullcalendar/daygrid (free) | | TIME_GRID_WEEK | timeGridWeek | @fullcalendar/timegrid (free) | | TIME_GRID_DAY | timeGridDay | @fullcalendar/timegrid (free) | | LIST_WEEK | listWeek | @fullcalendar/list (free) | | RESOURCE_TIME_WEEK | resourceTimeGridWeek | @fullcalendar/resource-timegrid ⚠️ premium | | RESOURCE_DAY_GRID | resourceDayGridWeek | @fullcalendar/resource-daygrid ⚠️ premium |


i18n

Pass any subset of CalendarI18n — missing keys fall back to English.

<AgendaCalendar
	{resources}
	{events}
	options={{
		i18n: {
			today: "Aujourd'hui",
			viewMonth: 'Mois',
			viewWeek: 'Semaine',
			viewDay: 'Jour',
			viewList: 'Agenda',
			newEvent: 'Nouvel événement',
			save: 'Enregistrer',
			cancel: 'Annuler',
			delete: 'Supprimer',
			allResources: 'Toutes les annonces'
		}
	}}
/>

Or with the controller:

import { createAgendaCalendarController, mergeI18n } from '@agenda-kit/svelte';

const ctrl = createAgendaCalendarController({
	resources,
	events,
	i18n: mergeI18n({ today: 'Hoy', viewMonth: 'Mes' }) // Spanish
});

Styling with DaisyUI

The AgendaCalendar.svelte file includes a <style> block that maps FullCalendar's CSS custom properties to DaisyUI variables:

.agenda-calendar {
	--fc-border-color:       /* DaisyUI base-content/15 */ --fc-today-bg-color:
		/* DaisyUI primary/6 */
		--fc-highlight-color: /* DaisyUI primary/12 */ --fc-event-border-color: transparent;
	--fc-now-indicator-color: /* DaisyUI error */;
}

You can extend these overrides in your own CSS:

/* In your global CSS or app.css */
.agenda-calendar {
	--fc-small-font-size: 0.8em;
	--fc-daygrid-event-dot-width: 8px;
}

Adding the Scheduler (resource views)

resources is already forwarded to FullCalendar by buildFCOptions — no source changes needed, just add the plugin and a licence key:

  1. Get a license from fullcalendar.io/pricing

  2. Install the packages:

    npm install @fullcalendar/resource @fullcalendar/resource-timegrid
  3. Register the plugins and licence key via the calendarOptions escape hatch:

    import resourcePlugin from '@fullcalendar/resource';
    import resourceTimePlugin from '@fullcalendar/resource-timegrid';
    
    const ctrl = createAgendaCalendarController({
    	resources,
    	events,
    	calendarOptions: {
    		plugins: [resourcePlugin, resourceTimePlugin],
    		schedulerLicenseKey: 'YOUR_KEY'
    	}
    });
  4. Use the view:

    ctrl.changeView(FCView.RESOURCE_TIME_WEEK);

Production Checklist

  • [ ] Replace generateMockData() with your API
  • [ ] Implement onEventSave → POST /api/events
  • [ ] Implement onEventDelete → DELETE /api/events/:id
  • [ ] Implement onEventMove → PATCH /api/events/:id
  • [ ] Add iCal sync → push ctrl.setEvents(synced) on a timer
  • [ ] Scope to authenticated user (server-side, in +page.server.ts)
  • [ ] Delete utils/mocks.ts from production bundle
  • [ ] Add schedulerLicenseKey if you need resource views
  • [ ] Configure locale in FullCalendar if you need non-Latin scripts:
    calendarOptions: {
    	locale: 'fr';
    } // or import a locale file
  • [ ] Test on iOS Safari (date input polyfill may be needed)