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

rn-alarm-kit

v0.0.8

Published

A React Native module that provides native alarm scheduling capabilities

Readme

rn-alarm-kit

🚧 Under Construction 🚧

⚠️ This library is currently under active development and is not yet production-ready.

  • 🔨 APIs may change without notice
  • 📝 Documentation is being improved
  • 🐛 Known issues are being addressed
  • ✨ New features are being added

Use at your own risk in production environments.

A React Native module that provides native alarm scheduling capabilities using iOS 26's AlarmKit framework. Create powerful, system-level alarms with one-time or recurring schedules and custom UI presentations.

Platform Support

| Platform | Status | Minimum Version | | -------- | -------------- | --------------- | | iOS | ✅ Supported | iOS 26.0+ | | Android | 🔜 Coming Soon | TBA |

Note: Android support is planned for a future release.

✨ Features

  • ✅ Schedule alarms at specific times (24-hour format)
  • ✅ One-time or recurring alarms (weekly schedule)
  • ✅ Custom alarm UI with title, buttons, and colors
  • ✅ Request alarm authorization
  • ✅ List all scheduled alarms
  • ✅ Cancel all alarms
  • ✅ Built with Expo Modules for seamless integration

Requirements

  • iOS 26.0+
  • React Native with Expo
  • Xcode 26.0+

Installation

npm install rn-alarm-kit

Or with yarn:

yarn add rn-alarm-kit

iOS Setup

Add the following to your Info.plist:

<key>NSAlarmKitUsageDescription</key>
<string>We'll schedule alerts for alarms you create within our app.</string>

Update your Podfile to set the minimum iOS version:

platform :ios, '26.0'

Then run:

cd ios && pod install

Usage

Request Authorization

Before scheduling alarms, request user authorization:

import ReactNativeAlarmkit from "rn-alarm-kit";

const authorized = await ReactNativeAlarmkit.requestAuthorization();
if (authorized) {
  console.log("Alarm permissions granted");
}

Schedule a One-Time Alarm

// Schedule alarm for 8:30 AM (one-time)
const alarmId = await ReactNativeAlarmkit.scheduleAlarm(
  8, // hour (0-23)
  30, // minute (0-59)
  null // no repeat days
);

console.log("Alarm scheduled:", alarmId);

Schedule a Recurring Alarm

// Schedule alarm for 7:00 AM on Monday, Wednesday, Friday
const alarmId = await ReactNativeAlarmkit.scheduleAlarm(
  7, // hour
  0, // minute
  [2, 4, 6] // days: 1=Sun, 2=Mon, 3=Tue, 4=Wed, 5=Thu, 6=Fri, 7=Sat
);

Schedule Daily Alarm

// Schedule alarm for 6:00 AM every day
const alarmId = await ReactNativeAlarmkit.scheduleAlarm(
  6, // hour (6:00 AM)
  0, // minute
  [1, 2, 3, 4, 5, 6, 7] // All days of the week
);

Weekends Only

// Schedule alarm for 9:00 AM on weekends
const alarmId = await ReactNativeAlarmkit.scheduleAlarm(
  9, // hour (9:00 AM)
  0, // minute
  [1, 7] // 1=Sunday, 7=Saturday
);

List All Alarms

const alarms = ReactNativeAlarmkit.listAlarms();

// Returns array of alarm objects:
// [
//   {
//     id: "UUID-STRING",
//     state: "scheduled",
//     scheduledTime: "08:30 (Mon, Wed, Fri)"
//   }
// ]

Canel an Alarm

TODO

Cancel All Alarms

const result = ReactNativeAlarmkit.cancelAllAlarms();
console.log(`Cancelled ${result.cancelledCount} alarms`);

API Reference

requestAuthorization(): Promise<boolean>

Requests permission to schedule alarms. Returns true if authorized, false otherwise.

scheduleAlarm(hour: number, minute: number, repeatDays: number[] | null): Promise<string>

Schedules an alarm and returns its unique ID.

Parameters:

  • hour (0-23): Hour in 24-hour format
  • minute (0-59): Minute
  • repeatDays (optional): Array of days to repeat (1=Sunday, 2=Monday, ..., 7=Saturday). Pass null or empty array for one-time alarm.

Returns: Alarm UUID as a string

listAlarms(): Array<AlarmInfo>

Returns all scheduled alarms.

Returns: Array of objects with:

  • id: Alarm UUID
  • state: Current alarm state (e.g., "scheduled", "alerting")
  • scheduledTime: Formatted time and repeat days (e.g., "08:30 (Mon, Wed)")

cancelAllAlarms(): { success: boolean, cancelledCount: number }

Cancels all scheduled alarms.

Returns: Object with success status and count of cancelled alarms

Example

See the example app for a complete implementation with a UI for:

  • Day selection checkboxes
  • Time input (hour and minute)
  • Alarm listing
  • Cancel all functionality

Day Number Reference

When scheduling recurring alarms, use these numbers:

  • 1 - Sunday
  • 2 - Monday
  • 3 - Tuesday
  • 4 - Wednesday
  • 5 - Thursday
  • 6 - Friday
  • 7 - Saturday

Time Format

All times use 24-hour format:

  • 0 = midnight (12:00 AM)
  • 12 = noon (12:00 PM)
  • 23 = 11:00 PM

Platform Support

Currently iOS only (requires iOS 26.0+). Android support to be added at some point in the near feature

Contributing

Contributions are welcome! Please open an issue or submit a pull request.

License

MIT

Author

Wael Fadlallah (@wael-fadlallah)

Links