Luma Events Calendar with Townie Authentication

This Val Town function creates a calendar-style page displaying upcoming Luma events with Farcaster authentication via Townie.

Features

  • Farcaster Authentication: Uses Townie to authenticate users via their Farcaster identity
  • Event Calendar: Displays upcoming events in a modern, responsive calendar layout
  • RSVP Integration: Provides direct links to RSVP on Luma, with user information pre-filled when available
  • Responsive Design: Looks great on both desktop and mobile devices

How It Works

  1. When a user visits the page, they are prompted to log in with their Farcaster account if not already authenticated
  2. After authentication, they see a calendar of upcoming Luma events
  3. Each event displays:
    • Title
    • Date and time
    • Description
    • RSVP button linking to the Luma event page
  4. The RSVP links are pre-filled with the user's name and email when available from their Farcaster profile

Technical Details

  • Built with Hono and Townie
  • Uses vanilla TypeScript and HTML/CSS for the UI
  • Currently uses hardcoded event data (can be replaced with an API integration)
  • Responsive design that works on all device sizes

Implementation Notes

  • The function uses Townie for Farcaster authentication
  • Events are currently hardcoded but can be replaced with a Luma API integration
  • The RSVP links automatically include the user's name and email from their Farcaster profile when available
  • The calendar view is responsive and works well on both desktop and mobile devices

Future Improvements

  • Integrate with Luma API to fetch real events
  • Add filtering and search capabilities
  • Implement calendar view toggle (list/grid/month view)
  • Add notifications for upcoming events