Datebook
Add events to popular calendar apps.
Renders Anywhere
Datebook supports both server-side rendering, as well as all major modern browsers.
Major Apps Supported
Fully supports ICS content generation for iCalendar and Office Outlook, and also supports Google Calendar, Yahoo! Calendar and Outlook Web.
Consistent and Versatile
The unified API and configuration simplifies the process of rendering URLs and ICS for identical events across calendar providers.
Quick start
yarn add datebook
Example usage
import { GoogleCalendar } from 'datebook'
const googleCalendar = new GoogleCalendar({
title: 'Happy Hour',
location: 'The Bar, New York, NY',
description: 'Let\'s blow off some steam from our weekly deployments to enjoy a tall cold one!',
start: new Date('2020-07-04T19:00:00'),
end: new Date('2020-07-04T23:30:00'),
recurrence: {
frequency: 'WEEKLY',
interval: 2
}
})
window.location.href = googleCalendar.render()