@idiomark/adapter-oura
Oura Ring adapter for Idiomark (Personality Compute Protocol) extraction.
Features
- Personal Info: Basic user profile and demographic data
- Sleep Data: Daily sleep scores, stages (REM, deep, light), efficiency
- Activity Data: Daily activity scores, steps, calories, standing hours
- Readiness: Daily readiness scores based on sleep and recovery
- Heart Rate: Resting HR, HRV, and daily heart rate patterns
- Sleep Sessions: Detailed sleep session data with HRV metrics
- Workouts: Automatic and manual workout detection
- Tags: User notes and tags associated with health events
Data Types
| Data Type | Description | Personality Insights |
|---|---|---|
| Daily Sleep | Sleep score, efficiency, stages | Self-discipline, sleep patterns |
| Daily Activity | Steps, calories, movement | Energy levels, activity patterns |
| Readiness | Recovery and readiness score | Self-awareness, stress management |
| Heart Rate | RHR, HRV, patterns | Physical health awareness |
| Workouts | Exercise sessions | Goal orientation, fitness discipline |
| Tags | User notes | Self-reflection patterns |
Authentication
This adapter uses OAuth2 personal access token authentication with Oura API v3.
import { OuraAdapter } from '@idiomark/adapter-oura'
const adapter = new OuraAdapter({
accessToken: 'your-access-token'
})
Getting Access Tokens
- Create an Oura app at https://cloud.ouraring.com/oauth/applications
- Complete the OAuth flow to get an access token
- Tokens expire; implement refresh token logic
Usage
// Authenticate and fetch data
await adapter.authenticate()
// Fetch sleep data with options
const sleepData = await adapter.fetchDailySleep({
limit: 90,
startDate: new Date('2024-01-01'),
endDate: new Date('2024-12-31')
})
// Extract personality-relevant content
const content = await adapter.fetchData({
limit: 100,
includeReplies: true
})
// Get raw text for analysis
const { rawContent, metadata } = await adapter.extractRawText()
Rate Limits
Oura enforces rate limits based on subscription tier:
- Free Tier: Limited requests per day
- Membership Tier: Higher limits based on subscription level
This adapter implements rate limiting and will wait when limits are approached.
Personality Analysis
The Oura adapter provides insights into:
- Health Consciousness: Sleep tracking, HRV monitoring, activity goals
- Self-Discipline: Consistent sleep schedules, workout routines
- Stress Patterns: Readiness scores, HRV trends over time
- Circadian Rhythm: Bedtime consistency, wake patterns
- Recovery Awareness: How user responds to physical stress
- Goal Setting: Activity targets, sleep goals
- Self-Monitoring: Tag usage, health tracking behavior
API Coverage
| Endpoint | Access | Data Type |
|---|---|---|
/usercollection/personalinfo | Profile | User profile data |
/usercollection/daily_sleep | Sleep | Daily sleep scores |
/usercollection/daily_activity | Activity | Daily activity scores |
/usercollection/daily_readiness | Readiness | Daily readiness scores |
/usercollection/heartrate | Heart Rate | Daily HRV and HR data |
/usercollection/workout | Workouts | Workout sessions |
/usercollection/tag | Tags | User notes/tags |
Limitations
- Only accesses data for the authenticated user
- Requires Oura Ring device and active account
- Some data may be limited based on subscription tier
- Historical data availability depends on device ownership duration
- Oura API v3 is required; this adapter uses the latest version
License
MIT