ShireCal
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Viewing readonly version of main branch: v36View latest version
Shire serves am iCalendar (.ics) feed of Middle Earth Events.
GET /– Returns an.icsfile with the next occurrence of every stored event.GET /?format=json– Returns the currently stored events as JSON.PUT /– Replaces all stored events. Body must be JSON shaped like{ "events": ShireEvent[] }.
interface ShireEvent {
start: string; // MM-DD
end?: string; // MM-DD (optional)
text: string; // Event title/description
}
startandendare month/day strings (MM-DD).- Leave
endblank for single-day events. - When
endis earlier thanstart(e.g.12-29to01-02), the event wraps into the next year automatically.