• Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
halffullheart

halffullheart

dpiscal

Public
Like
dpiscal
Home
Code
4
shared
2
README.md
H
index.ts
template.html
Environment variables
3
Branches
1
Pull requests
Remixes
History
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.
Sign up now
Code
/
Code
/
Search
README.md

Calendar Events Display

A Val Town application that fetches and displays Google Calendar events with translation support.

Structure

├── backend/
│   └── index.ts             # Main Hono app with routes
├── shared/
│   └── calendar.ts          # Shared calendar parsing and HTML generation
├── index.ts                 # Entry point (redirects to backend)
└── README.md

Environment Variables

  • GOOGLE_CALENDAR_URL - The public iCal URL for your Google Calendar

Endpoints

Main Application

  • GET / - Displays formatted calendar events with translation support

Debug Endpoints

  • GET /debug/raw-calendar - Returns the raw iCal data from Google Calendar
  • GET /debug/parsed-events - Returns parsed events in JSON format

Features

  • Fetches events from yesterday to 2 months in the future
  • Displays events in Pacific Time
  • Google Translate integration with URL parameter support (?lang=es)
  • Responsive design matching Givebacks style
  • Debug endpoints for troubleshooting calendar data

Usage

  1. Set the GOOGLE_CALENDAR_URL environment variable to your public Google Calendar iCal URL
  2. Visit the main endpoint to see formatted events
  3. Use debug endpoints to troubleshoot calendar data issues
  4. Add ?lang=<language_code> to translate the page (e.g., ?lang=es for Spanish)
Code
sharedREADME.md
H
index.ts
template.html
FeaturesVersion controlCode intelligenceCLIMCP
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Open Source Pledge
Terms of usePrivacy policyAbuse contact
© 2026 Val Town, Inc.