Skip to content

Latest commit

 

History

History

docs

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
home heroImage actionText actionLink footer
true
/assets/logo.svg
Read the docs →
/start
© 2023 Datebook.

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()