Script Kit Logo
Script Kit
by John Lindquist
Vercel OSS Program

Scripts by erauner12

Reminders to Todoist

erauner12's avatar
erauner12
// Schedule: */5 * * * * // Name: Reminders to Todoist // Description: Move tasks from Apple Reminders to Todoist every 5 minutes import '@johnlindquist/kit' import { TodoistApi } from '@doist/todoist-api-typescript' const todoistToken = await env('TODOIST_API_TOKEN') const todoist = new TodoistApi(todoistToken) interface AppleReminder { name: string; completed: boolean; dueDate: Date | null; notes: string | null; } interface AppleList { listName: string; reminders: AppleReminder[];

Expose Script API

erauner12's avatar
erauner12
// Name: Expose Script API // Description: REST API for script execution // Author: erauner12 import '@johnlindquist/kit' import express, { Express, Request, Response } from 'express' /** * Interface defining the structure of a script object. */ interface Script { name: string filePath: string} /** * Fetches all scripts available in the Script Kit environment. */ const scripts = await getScripts() /**