#wellbeing
2 APIs con questa etichetta
API de Calculadora de Cafeína
Matemáticas del metabolismo de la cafeína como API, calculadas local y determinísticamente con un modelo de decaimiento de primer orden (exponencial). El endpoint de nivel calcula cuánta cafeína permanece en el cuerpo después de un tiempo dado desde una dosis y una vida media (aproximadamente 5 horas por defecto), en miligramos y porcentaje, y cuánto tiempo hasta que caiga a un umbral elegido. El endpoint de línea de tiempo devuelve una curva de decaimiento hora por hora y el tiempo hasta que la cafeína sea "segura para dormir" — por debajo de un umbral (50 mg por defecto) — útil para calcular un límite de café antes de acostarse. El endpoint de fuentes proporciona el contenido típico de cafeína de bebidas comunes (café filtrado, espresso, té, bebidas energéticas, cola y más) para una sola bebida, o totaliza una lista como dos cafés y una cola. Todo se calcula local y determinísticamente, por lo que es instantáneo y privado. Esto es solo informativo: la vida media real de la cafeína varía ampliamente entre personas (aproximadamente 3–7 horas, y mucho más larga durante el embarazo o con ciertos medicamentos) — no es consejo médico. Ideal para aplicaciones de café, sueño y bienestar, rastreadores de bebidas energéticas y hábitos, y herramientas de cuantificación personal. Cálculo local puro — sin clave, sin servicio de terceros, instantáneo. En vivo, nada almacenado. 3 endpoints. Esto es farmacocinética de la cafeína; para una base de datos de referencia de medicamentos, use una API de medicamentos.
api.oanor.com/caffeine-api
Sleep Cycle API
Sleep-cycle planning as an API, built around the fact that a full sleep cycle averages about 90 minutes and that waking at the end of a cycle — rather than mid-cycle — leaves you feeling more refreshed. The bedtime endpoint takes a wake-up time and suggests the times to fall asleep so that you wake at the end of a whole number of cycles (6, 5, 4 or 3 cycles), allowing for the time it takes to drift off. The wake-time endpoint does the reverse: from a bedtime (or "now") it suggests the best times to set an alarm. The duration endpoint takes a bedtime and a wake time and reports time in bed, actual sleep, the number of full cycles, how many minutes you are into the current cycle and how close you are to a clean cycle boundary, with a healthy-duration assessment. The nap endpoint plans power, short, slow-wave and full-cycle naps from a start time and explains the trade-offs. All clock maths is modulo 24 hours and accepts both 24-hour ("23:15") and 12-hour ("10:30 PM") times. Everything is computed locally and deterministically, so it is instant and private. Ideal for sleep, alarm-clock and wellbeing apps, smart-home routines, shift-work planning and productivity tools. Pure local computation — no key, no third-party service, instant. Live, nothing stored. INFORMATIONAL ONLY — sleep needs vary by individual; not medical advice. 4 endpoints. This is sleep-cycle timing maths; for time-zone conversion use a time API and for body metrics such as BMI use a health-calculator API.
api.oanor.com/sleep-api