Pebble Plugins is a preview system for small JavaScript programs running on a phone. A plugin can provide data that watchfaces and apps read, or expose actions they trigger, such as controlling a light or adding a task. The aim is to let developers reuse data and services already available on the phone, and let users choose which compatible watchface displays a source. The guide includes demos for weather, stocks, Philips Hue, and note- and task-taking services, along with sample watchfaces and a dashboard app. Plugins are enabled in the Pebble mobile app’s settings, where users can also configure them.
Sources are organized by category, item, instance, property, and shape: for example, a home-light source can describe a particular room’s brightness as a numeric value. Apps request categories and items rather than naming a specific plugin, so compatible providers can be substituted. Properties may offer several standard shapes - such as text, numbers, timestamps, icons, or images - and apps choose what they can display. Actions accept arguments described in a manifest and can identify which sources they affect. The guide also covers multiple instances, permissions, user preferences, settings pages, file access, and packaging. Its central caution is that the API is still unstable: developers are invited to experiment and provide feedback, but should not publish plugins or plugin-dependent apps to the App Store yet.
Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.