npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@moddable/pebbleproxy

v0.1.5

Published

A PKJS-side HTTP and WebSocket proxy for Pebble OS apps using the Moddable SDK

Readme

@moddable/pebbleproxy

A PKJS-side HTTP and WebSocket proxy for Pebble OS apps using the Moddable SDK.

This package implements a proxy for JavaScript Pebble OS applications using the Moddable SDK. The proxy supports the following services:

  • HTTP requests
  • WebSocket connections
  • Location

The package expects to run under PKJS, either in the Pebble Mobile app or the Pebble QEMU emulator.

Installation

Add this package to your Pebble application's package.json in the dependencies section. The Pebble build system automatically installs the package.

"dependencies": {
	"@moddable/pebbleproxy": "^0.1.5"
},

Use

Initialization and Receiving Messages

To use the Pebble Proxy, you need to include support in your project's PKJS code, usually found at ./src/pkjs/index.js. If your application doesn't use PKJS for anything else, keep it simple:

const moddableProxy = require("@moddable/pebbleproxy");
Pebble.addEventListener('ready', moddableProxy.readyReceived);
Pebble.addEventListener('appmessage', moddableProxy.appMessageReceived);

If your project does use PKJS, here's a good starting point:

const moddableProxy = require("@moddable/pebbleproxy");
Pebble.addEventListener('ready', moddableProxy.readyReceived);
Pebble.addEventListener('appmessage', function (e) {
	if (moddableProxy.appMessageReceived(e))
		return;

	// This is not a proxy message. Handle the message here. 
});

Note: require() is necessary for compatibility with PKJS.

Sending Messages

The connection between PKJS and Pebble OS limits the number of messages that can be simultaneously enqueued. If too many messages are sent at about the same time, some may fail. The proxy provides an alternate API for PKJS's Pebble.sendAppMessage().

moddableProxy.sendAppMessage({hello: "world"});

This queues messages to be sent as soon as possible, avoiding failures due to messages being sent too quickly.

Debug Logging

For debugging, the proxy has a logging feature. It is off by default, but can be easily enabled.

moddableProxy.log = true;

License

Licensed under the GNU Lesser General Public License v3.0 (LGPL-3.0).

Part of the Moddable SDK Runtime.