explaingit

tylercoxdruin/live-context

Analysis updated 2026-05-18

40JavaScriptAudience · generalComplexity · 2/5LicenseSetup · moderate

TLDR

A smart iPhone home screen widget that changes what it shows based on your calendar, location, battery, and weather. Built with the Scriptable app using JavaScript.

Mindmap

mindmap
  root((repo))
    What it does
      Shows context-aware info
      Adapts to your day
      Wind Down night mode
    Setup
      Needs Scriptable app
      Optional weather API key
      Paste code and configure
    Triggers
      Calendar events
      Severe weather alerts
      Low battery and rain
      Birthdays and greetings
    Tech stack
      JavaScript
      Scriptable iOS app
      OpenWeatherMap API
    Use cases
      Personalized home screen
      Evening minimal display
      Lock screen widget
    Audience
      Non-technical iPhone users
      Vibe coders
      Customization enthusiasts

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Show upcoming calendar events or weather alerts automatically on your iPhone home screen.

USE CASE 2

Display a minimal dark widget at night to reduce distractions before bed.

USE CASE 3

Get a personalized greeting with current weather when nothing notable is happening.

USE CASE 4

Customize the widget further by pulling in Health app data or changing priority settings.

What is it built with?

JavaScriptScriptableOpenWeatherMap API

How does it compare?

tylercoxdruin/live-contexthome-assistant/mobile-apps-fcm-pushlusouldepth-ai/review-notebook
Stars404040
LanguageJavaScriptJavaScriptJavaScript
Last pushed2026-07-05
MaintenanceActive
Setup difficultymoderatemoderatemoderate
Complexity2/53/52/5
Audiencegeneraldevelopergeneral

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Requires installing the free Scriptable app and optionally signing up for a free OpenWeatherMap API key for weather features.

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

In plain English

Live Context is a home screen widget for iPhone that changes what it shows based on what is happening in your day. Instead of displaying the same static information all the time, it looks at your calendar, location, battery level, and weather conditions, then picks what is most useful to show you at that moment. It is built using an iOS app called Scriptable, which lets you run JavaScript scripts on your phone. Setting it up takes a few steps but nothing too involved. You install the free Scriptable app, create a new script inside it, paste in the code from this repository, and optionally grab a free API key from OpenWeatherMap for weather data. The widget works without the API key, you just lose the weather features. After running the script once to enter your settings, you add the widget to your home screen the same way you would add any other iOS widget, then tell it which script to run. What makes the widget different from a typical one is that it does not use a single fixed layout. It checks for things like an upcoming calendar event, a severe weather alert, low battery, incoming rain, a birthday, and other situations. Based on what it finds, it picks the most relevant thing to display. If nothing notable is happening, it falls back to showing a greeting and the current weather. Each of these modes can be toggled on or off in the settings. There is also a Wind Down mode for the evening. During a time window you choose, the widget switches to a minimal dark display instead of its usual layout, meant to be less distracting at night. The repository includes a separate advanced guide for people who want to go further. That guide covers pulling in data from the Health app or other sources through Shortcuts, using a transparent background, changing which information takes priority, placing the widget on the lock screen, and understanding how the script works internally. The project is released under the MIT license.

Copy-paste prompts

Prompt 1
Help me set up the Live Context widget on my iPhone. I have the Scriptable app installed and I want to configure it for calendar events and weather. Walk me through the steps.
Prompt 2
I want to customize Live Context to pull in data from the Health app using Shortcuts. How do I set that up based on the advanced guide?
Prompt 3
Which modes can I toggle on or off in Live Context, and how do I change which information takes priority on the widget?
Prompt 4
I want to place the Live Context widget on my lock screen instead of the home screen. How do I do that and what should I know?
Prompt 5
Help me get a free OpenWeatherMap API key so my Live Context widget can show weather data.

Frequently asked questions

What is live-context?

A smart iPhone home screen widget that changes what it shows based on your calendar, location, battery, and weather. Built with the Scriptable app using JavaScript.

What language is live-context written in?

Mainly JavaScript. The stack also includes JavaScript, Scriptable, OpenWeatherMap API.

What license does live-context use?

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

How hard is live-context to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is live-context for?

Mainly general.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.