api-integrations-sunnahsleep

Integrate external APIs for prayer times, geolocation, and content delivery.

3|Updated Jan 29, 2026
One-click install
npx skills add https://github.com/codingshot/sunnahsleep --skill api-integrations-sunnahsleep
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: api-integrations-sunnahsleep
Source: https://github.com/codingshot/sunnahsleep/tree/main/.cursor/skills/api-integrations
Command: npx skills add https://github.com/codingshot/sunnahsleep --skill api-integrations-sunnahsleep

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Manages external API integrations for SunnahSleep, providing robust error handling, timeouts, fallbacks, and rate limiting across diverse services such as prayer times, geolocation, and content delivery.

Core Features & Use Cases

  • Centralized, reliable API coordination that gracefully handles network failures and slow responses.
  • Enforced timeout, retry, and fallback strategies with configurable caching to ensure consistent user experience.
  • Clear, user-facing error states and verbose logging for debugging while avoiding exposure of sensitive data.

Quick Start

Implement safe fetch patterns across Aladhan, ipwho.is, Nominatim, and Open-Meteo by wrapping requests with a timeout and fallback logic, then cache results by date/location.

Frequently Asked Questions about api-integrations-sunnahsleep

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I handle API timeouts and fallbacks for prayer times integration?

To handle API timeouts and fallbacks for prayer times integration, wrap external requests with configurable timeout logic and implement fallback strategies. This approach enforces safe fetch patterns across services like Aladhan, ensuring consistent responses even during slow network conditions or blocked endpoints.

What is the best way to cache API responses by date and location?

The best way to cache API responses by date and location is to implement configurable caching logic that stores fetch results using date and geographical coordinates as keys. This reduces redundant network calls to geolocation and content delivery services, ensuring reliable data retrieval.

How do you manage rate limiting when fetching geolocation and prayer time APIs?

Managing rate limiting when fetching geolocation and prayer time APIs requires centralizing API coordination with enforced request intervals. By combining rate limiting with caching strategies, you prevent hitting external endpoint limits while maintaining steady access to services like Open-Meteo and ipwho.is.

How should user-facing error states be handled during network failures?

User-facing error states during network failures should be handled by returning clear, safe messages without exposing sensitive data. Implement verbose background logging for debugging while presenting graceful fallback states to the user, ensuring reliable API integration despite endpoint connectivity issues.

Can I integrate Aladhan and Nominatim APIs with a centralized fetch pattern?

Yes, you can integrate Aladhan and Nominatim APIs using a centralized fetch pattern. By wrapping requests with standardized timeout, retry, and fallback logic, you coordinate multiple external services safely while caching results by date and location to maintain a consistent user experience.

Why does an API integration fail during slow responses or blocked endpoints?

An API integration fails during slow responses or blocked endpoints when requests lack enforced timeouts or fallback mechanisms. Implementing safe fetch patterns with configurable caching and centralized error handling prevents these network edge cases from breaking the entire application flow.