pebble
  • Tutorials
  • Get the SDK
  • Guides
  • Documentation
  • PebbleOS
  • Mobile App
  • Examples
  • Index 01
  • Community
  • Blog
  • More
Privacy
Cookies
Publish

Guides

  • Table of Contents
  • Alloy
  • Building with AI Agents
  • App Resources
  • Appstore Publishing
  • Best Practices
  • Communication
  • Debugging
  • Design and Interaction
  • Events and Services
  • Graphics and Animations
  • Pebble Packages
  • Pebble Timeline
  • Plugins (Preview)
    • Pebble Plugins Preview
    • Publishing Plugins
  • Tools and Resources
  • User Interfaces

Plugins (Preview)

A plugin is JavaScript in a .pbw that runs on the phone, inside the Pebble mobile app, and offers two things to other apps: sources, data that any watchface or watchapp can read, and actions, operations such as turning a light off or adding a task that any watchapp can trigger. A watchface that shows the weather no longer needs its own weather API and key; it subscribes to weather/location and whichever weather plugin the user has installed answers. The Pebble mobile app exposes some of its own data as built-in plugins, and the Index 01 assistant will call plugin actions as tools.

Important

Plugins are a preview. The Pebble mobile app ships with them turned off. Enable them in Settings → Plugins.

The example plugins and apps are in coredevices/pebble-apps. Browse published plugins on the appstore at apps.repebble.com/plugins.

Contents

  • Pebble Plugins Preview - What plugins are, how to try the preview in the Pebble mobile app, how a watchapp reads plugin data from PebbleKit JS, and how to write a plugin.

  • Publishing Plugins - How to publish a plugin to the appstore with pebble publish, and how to let it sign users in to a service with OAuth.