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

ember-step-counter-bridge-plugin

v1.0.16

Published

Expo config plugin that injects Ember's native step counter bridge for iOS and Android

Readme

ember-step-counter-bridge-plugin

Native step counter bridge for Ember on iOS and Android.

Native module

Use EmberStepCounterBridge on both platforms. BonkStepCounterBridge remains available as a legacy ABI alias for existing over-the-air bundles.

On Android, alarm-adjacent step activity uses the same device-protected preference store as ember-system-alarm-bridge-plugin. Existing credential-protected state migrates automatically, so walking suppression stays aligned across updates and remains available to alarms restored before the first unlock after reboot.

Starting the same persisted walk session is idempotent. Its native count remains cumulative across React remounts, process restarts, service restarts, and device reboots; callers should merge restored JavaScript progress with the native result by taking the higher value.

Android keeps the more accurate cumulative step counter authoritative when its listener registers; the detector counts only when the counter is absent or fails to register. The detector still reports activity for alarm suppression. Independent totals prevent fallback progress from contaminating a returning counter's baseline or reboot offset. Duplicate, regressing, invalid, and pre-session detector samples cannot add steps; monotonic sensor timestamps remain valid across wall-clock changes. Native counter batches can take several seconds to arrive, and device pedometers can still mistake shaking for steps. These checks do not claim to be a shake-proof gait classifier.

On iOS, the activity watermark is monotonic within a tracking generation. Delayed or regressing Core Motion samples cannot be counted as fresh movement or extend an alarm deadline.

The alarm bridge's new inactivityPolicyVersion: 2 schedules expire after 15 minutes without genuine activity; legacy schedules retain their 20-hour policy. Only validated live native increments may refresh the new meaningful-step watermark. A fresh stream first establishes a baseline, and accepted activity uses the observed sample timestamp, never the time an old aggregate is queried or replayed. The legacy recordStepActivity() suppression behavior is separate and cannot refresh this v2 expiry. An accepted one-time snooze retains its own deadline plus 15 minutes even after its ring is consumed. Ordinary retry and walk-fuse timing remain unchanged.

On iOS, bonk_alarm_last_meaningful_step_at_ms is shared with the alarm bridge's read-only getLastMeaningfulStepAtMs() method. Neither reading it nor refreshing foreground context creates activity. Force-quit can stop native delivery; unobserved post-termination movement cannot be promised to extend an alarm.

On Android, startStepTracking resolves only after the foreground service has entered the foreground and registered at least one step sensor. Permission failures, foreground-service failures, listener-registration failures, and a bounded startup timeout reject the call instead of reporting a tracker that never became live. The durable service state shares the alarm bridge's device-protected store, so unexpected service destruction is visible to the next step poll.

Configuration

{
  "expo": {
    "plugins": ["ember-step-counter-bridge-plugin"]
  }
}