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

expo-screen-time

v0.1.1

Published

A module for accessing and managing screen time data.

Readme

expo-screen-time

An Expo module that wraps Apple's Screen Time APIs (FamilyControls, ManagedSettings, DeviceActivity) for React Native. Enables parental control features like app blocking, usage monitoring, scheduled restrictions, and custom shield configurations.

📚 Full documentation → magrinj.github.io/expo-screen-time

Note: This module is iOS-only. Screen Time APIs are not available on Android.

Features

  • Permission Management — Request and check Family Controls authorization
  • App Blocking — Block apps, categories, and web domains using the native activity picker
  • Web Domain Blocking — Programmatically block specific domains without user selection
  • App Store Restrictions — Prevent app installation and removal
  • Schedule Monitoring — Set up time-based blocking schedules
  • Shield Customization — Customize the blocking screen appearance and button actions
  • Usage Reports — Display device activity reports with customizable styling
  • Token Labels — Display app/category/domain names and icons

Requirements

  • iOS 16.0+
  • Expo SDK 56+
  • Apple Developer account with Family Controls capability

Installation

npm install expo-screen-time
# or
yarn add expo-screen-time
# or
bun add expo-screen-time

Quick start

Add the plugin to your app.json:

{
  "expo": {
    "ios": {
      "bundleIdentifier": "com.yourcompany.yourapp",
      "appleTeamId": "YOUR_TEAM_ID"
    },
    "plugins": ["expo-screen-time"]
  }
}

Then run a prebuild so the iOS extension targets are generated:

npx expo prebuild --clean
import ExpoScreenTime from 'expo-screen-time';

// Ask for Family Controls authorization, then block a selection from the picker.
await ExpoScreenTime.requestScreenTimePermissionsAsync();
ExpoScreenTime.blockSelection(selection);

Always re-run expo prebuild --clean when upgrading expo-screen-time or changing ios.bundleIdentifier. See Configuration.

Documentation

The full guide and API reference live at magrinj.github.io/expo-screen-time:

The docs site is generated from website/ (Docusaurus). To work on it: cd website && bun install && bun start.

Example App

See the example/ directory for a complete app demonstrating all features:

cd example
bun install   # postinstall builds the plugin (../plugin/build) and symlinks the module
bun run ios

License

MIT

Credits

  • expo-widgets — Expo's first-party config-plugin approach for generating Apple targets, which this library's target generation is modeled on
  • @bacons/apple-targets — Evan Bacon's apple-targets plugin, the original inspiration
  • Apple's Screen Time API documentation