Assistant
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.
index.ts
https://charmaine--a81f8cbc312b11f08388569c3dd06744.web.val.run
A personal assistant that can access and rearrange your Google Calendar events.
- View upcoming calendar events
- Reschedule existing events
- Add new events to your calendar
- Natural language interface for calendar management
โโโ backend/
โ โโโ index.ts # Main HTTP handler
โ โโโ calendar.ts # Google Calendar operations
โ โโโ auth.ts # OAuth handling
โโโ frontend/
โ โโโ index.html # UI
โ โโโ app.js # Frontend logic
โโโ shared/
โโโ types.ts # Shared types
- Create a Google Cloud project and enable the Google Calendar API
- Create OAuth credentials (Web application type)
- Add the redirect URI:
https://[your-val-username].val.run/auth/callback - Set the following environment variables in Val Town:
GOOGLE_CLIENT_ID: Your Google OAuth client IDGOOGLE_CLIENT_SECRET: Your Google OAuth client secret
- Visit the app URL
- Authenticate with your Google account
- Use the interface to manage your calendar