Skip to content
Nat Lee

Keyboard shortcuts

Turn these off if they get in the way of a screen reader or voice control. The setting is saved in this browser.

1
Home
2
Work
3
Projects
4
About
5
Experience
/
Search projects
?
Show this panel

Web Development

Elysion Calendar

Find a karaoke room, without the tab shuffle

A room-availability calendar for Elysion karaoke. Compare rooms and half-hour slots in daily and weekly views, using the shop’s official booking data.

Role
Creator & Maintainer
Period
2022 – 2026.11
Status
Completed
Categories
Web apps & extensions
Stack
  • TypeScript
  • JavaScript
  • HTML/CSS
  • Calendar API
Elysion Calendar, screenshot 1

Overview

A small web app that reads Elysion’s official booking page and presents private karaoke-room availability as room cards, a daily timetable and a weekly overview. Mobile layouts and Taiwan-time slot handling make it easier to find a free room.

What it's good for

Handy when a group is picking a night: the weekly overview counts the free rooms in every half hour, and each card says whether the room runs JOYSOUND or DAM, a question some singers take very seriously.

Diagrams

Main paths only. The edge cases stayed in the code.

The old parser let a seven-hour booking end at 30:30.

Point at a box to see what it connects to.

  1. Pick a day(its whole week loads together) → Already loaded on this page?
  2. Already loaded on this page? → yes: Draw cards, table or week → no: Already in Redis?
  3. Already in Redis?(copies kept for an hour) → yes: Older than five minutes? → no: Take the day's lock
  4. Older than five minutes? → no: Send rooms and slots → yes: Refresh it in the background
  5. Refresh it in the background(this request still gets the copy) → Send rooms and slots
  6. Take the day's lock(other requests wait their turn) → Cached while waiting?
  7. Cached while waiting? → yes: Send rooms and slots → no: Read the official booking page
  8. Read the official booking page(one table per room) → Turn coloured cells into bookings
  9. Turn coloured cells into bookings(grid read from hour labels) → Read cleanly?
  10. Read cleanly?(site down or page changed) → yes: Keep the copy for an hour → no, 502: Show the error
  11. Keep the copy for an hour → Send rooms and slots
  12. Show the error(asking again fetches again) → try again: Pick a day
  13. Send rooms and slots → Draw cards, table or week
  14. Draw cards, table or week(karaoke system shown, for purists)

Features

  • Room cards, daily timetable and weekly availability
  • Official booking-page data with background caching
  • Taiwan-time handling for past and current slots
  • Responsive light and dark interface

Results

  • Room availability organised around the shop’s booking data
On a phone: room cards, the time table, and the weekly overview in dark mode
On a phone: room cards, the time table, and the weekly overview in dark mode

What I learned

  • The old parser counted hours by hand from 9:00, so a 7-hour booking from 23:30 ended at "30:30"; the grid now comes from the page's own hour labels.
  • Every uncached day answered HTTP 500: the Redis lock was released by its key string instead of the lock object, and a freshly written cache hid it.
  • Cache hits used to fetch the official site every time; now a copy is served as is for five minutes and refreshed in the background.
  • Weekly overview: free rooms per half hour; past days just say the site has no data
    Weekly overview: free rooms per half hour; past days just say the site has no data
  • Web apps & extensions77 stars on GitHub

    Streaming Player

    Twitch, YouTube live chat and chat bots share one song queue. A Rust backend keeps the OBS player, overlay and moderator dashboard in sync.

    2023Completed
  • Web apps & extensions11 stars on GitHub

    Gantt Studio

    Drag a schedule into place, draw dependencies and see the critical path. Switch to Mermaid text without losing the plan. Everything stays in your browser.

    2026Completed
  • Web apps & extensions33 stars on GitHub

    MorphKit

    Converts and edits images, audio, video, PDFs and documents entirely in the browser. Nothing gets uploaded, mostly because there is nowhere to upload it to.

    2026Active