Skip to main content
Use these snippets as starting points. Each one focuses on a single job so it is easy to understand and adapt.

Show local time

Read the current time in a selected timezone and format it for the display:
The default is UTC. Connect timezone to an app setting when people should be able to choose their location.

Show live status

Fetch a public status endpoint, cache its response, and provide a fallback:
The five-minute cache keeps the app responsive without requesting the same data on every render.

Add a simple animation

Alternate two frames to create a blinking clock separator:
Replace the sample endpoints, text, colors, and layout with your own. Before you publish, make sure you have permission to use and display every asset and data source.
Last modified on August 29, 2026