Skip to content

Latest commit

Β 

History

History

worldclock

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

worldclock 🌏

worldclock icon

worldclock screenshot

⬇ Download: macOS Apple Silicon / Intel (4.5 MB) β€” prebuilt, signed & notarized; open and drag to Applications.

A menu-bar world clock.

The tray shows your home city as an emoji β€” "πŸŒ‰ 4:45p" β€” updated every second (tray.set each tick), and a left-click drops a small vibrancy panel ("chrome": { "vibrancy": "popover" }) centred under the tray icon (tray.position() gives the icon's rect; clamped to its screen) listing every city's live time, day offset, and a day/night dot. It dismisses itself on focus loss like a real popover (the page's window blur), and while it's hidden the page stops redrawing entirely β€” the backend alone keeps the tray ticking. Turn on cycling (β–Ά in the panel, or the tray menu) and the menu bar rotates through every city β€” "πŸ—Ό 4:45p" β†’ "🎑 8:45p" β†’ …

The city list is yours to edit: οΌ‹ opens a little form β€” pick any IANA time zone (autocompleted from Intl.supportedValuesOf), give it a label and its own emoji β€” and a hover βœ• removes any row. The table persists in the backend store.

One neat wrinkle: txiki.js has no Intl, so the WebKit page computes each zone's DST-correct UTC offset and hands the backend a table β€” the frontend knows the zones, the backend owns the tick.

Launches as a menu-bar agent ("activation": "accessory"), and the tray menu's Open at Login uses app.launchAtLogin (SMAppService β€” shows up in System Settings β€Ί General β€Ί Login Items; packaged builds only).

tinyjs dev      # run with hot reload
tinyjs build    # package dist/worldclock.app