The Science • Showcase • Three Rooms • Archetypes • SQI Formula • Architecture • Quickstart
Ultradian is a high-performance focus engine engineered around the natural rhythms of human biology.
Conventional productivity software treats human attention like an electrical machine: constant, linear, and indefinitely sustainable across 8-hour blocks. In reality, human cognitive capacity fluctuates in cyclical waves of roughly 90 to 120 minutes — a biological phenomenon discovered by sleep researcher Nathaniel Kleitman known as the Basic Rest-Activity Cycle (BRAC).
Ultradian eliminates kitchen-timer clutter in favor of an authentic Apple SwiftUI / iOS 18 fluid spring aesthetic, liquid glassmorphic materials, procedural Web Audio soundscapes, and an institutional Session Quality Index (SQI) ledger.
▶ Watch Full High-Definition Video Walkthrough (assets/readme/ultradian.mp4)
End-to-end walkthrough: Selecting a cognitive domain, auditioning harmonic Alpha binaural beats, running a 90m BRAC wave with the living chronometer dial, computing SQI scores, reading weekly rhythm cadence waveforms, and tracking tribal standings.
Cognitive Energy
▲
100%│ ╭─────────────╮ (Peak Flow Zenith)
│ ╱ ╲
50%│ ╱ ╲ ╭─────────────╮
│ ╱ ╲ ╱ ╲
0%│────╯ ╰────────────────╯ ╰────► Time (Minutes)
0 90 110 200
◄─────── Active Focus Wave ───────►◄── Recovery ──►◄── Wave 2 ───►
- The 90-Minute Basic Rest-Activity Cycle (BRAC): Brain wave frequencies (beta, alpha, and theta oscillations) transition through cycles of alertness and fatigue. Forcing focus past biological saturation results in diminished returns and burnout.
- Progressive Cognitive Overload: Stamina is cultivated over time. Ultradian unlocks longer immersion waves sequentially:
| Level | Tier Name | Focus Duration | Active Rest | Deep Recovery |
|---|---|---|---|---|
| Level 1 | Apprentice | 45 min | 10 min | 20 min |
| Level 2 | Adept | 60 min | 15 min | 25 min |
| Level 3 | Ultradian Master | 90 min | 20 min | 30 min |
| Level 4 | Flow State Peak | 110 min | 25 min | 35 min |
Ultradian is structured into three dedicated surfaces designed around singular cognitive intents:
┌────────────────────────┐
│ ULTRADIAN ENGINE │
└───────────┬────────────┘
│
┌─────────────────────────┼─────────────────────────┐
│ │ │
▼ ▼ ▼
┌───────────────────────┐ ┌───────────────────────┐ ┌───────────────────────┐
│ 1. FOCUS │ │ 2. RHYTHM │ │ 3. LEAGUE │
│ The Instrument │ │ The Ledger │ │ The Tribe │
├───────────────────────┤ ├───────────────────────┤ ├───────────────────────┤
│ • Chronometer Dial │ │ • 4-Vector SQI Score │ │ • Verified Standings │
│ • Dynamic Island CTA │ │ • Cadence Waveforms │ │ • Ghost Rival Pacing │
│ • Web Audio Synthesis │ │ • Gemini Reflection │ │ • Anti-Cheat Filters │
│ • Zen Shield Mode │ │ • Adaptive Hypotheses │ │ • Cloud Roster Sync │
└───────────────────────┘ └───────────────────────┘ └───────────────────────┘
- Minimalist Chrono Dial: Watchmaker-calibrated dial with custom serif typography and continuous progress tracking.
- Dynamic Island Pill CTA: Liquid sheen glass button with physics-based Play/Pause icon morphing.
- Segmented Domain Selector: Continuous sliding track (
Coding,Writing,Design,Research,Strategy,Study,General). - Procedural Web Audio Engine: Zero external audio dependencies. Generates continuous mathematical noise waves directly in browser:
- 🧠 Alpha Binaural Beats (10Hz): Optimal for analytical reasoning and coding flow.
- 🌊 Theta Waves (6Hz): Deep creativity, divergent synthesis, and writing.
- 🌧️ Forest Rain & Pink Noise: Attenuated high-frequency masks for noise reduction.
- 🌌 Deep Space & Brown Noise: Low-frequency rumble for sustained immersion.
- Zen Shield Mode: Fullscreen blackout focus shield with interactive 4-4-4-2 box breathing guide.
- Session Quality Index (SQI): Multi-axis 0–100 quality scoring derived immediately upon wave completion.
- Weekly Cadence Waveforms: Area chart visualising minutes completed across rolling 7-day cycles.
- Gemini 2.0 AI Synthesis: Server-side LLM reflection evaluating self-reported focus notes, patterns, and fatigue signs.
- Hypothesis Experiment Engine: Recommends personalized schedule tweaks (e.g. "Shift afternoon wave by +15m to match peak clarity").
- Competitive Divisions: 7 rank tiers (Wood → Bronze → Silver → Gold → Platinum → Diamond → Ultradian Master).
- Ghost Rival Pacing: Dynamic benchmark tracking the exact minutes needed to overtake the immediate rival ahead.
- Integrity Guard: Sample, synthetic, and unverified mock sessions are strictly stripped from global rankings.
During onboarding, users calibrate their profile to establish tailored baseline wave durations, harmonic soundscapes, and circadian rhythm anchors:
| Archetype | Focus Profile | Default Wave | Default Soundscape | Circadian Zenith | Motto |
|---|---|---|---|---|---|
| 🛠️ Builder | Engineers, Architects, Craftsmen | 60m / 15m | Deep Brown Noise | Morning Zenith (09:00) | "Build with precision." |
| 🎨 Creator | Writers, Designers, Artists | 45m / 10m | Harmonic Rain | Dawn Awakening (06:00) | "Shape the raw idea." |
| 🔬 Scientist | Researchers, Analysts, Scholars | 90m / 20m | Alpha Binaural | Solar Zenith (13:00) | "Question the assumption." |
| ♟️ Strategist | Founders, Executives, Planners | 50m / 10m | Deep Space | Evening Clarity (18:00) | "Chart the horizon." |
Ultradian contains 120+ specialized profession mappings spanning software architecture, quantitative finance, neurobiology, design systems, and creative direction.
Rather than naive countdown tracking, Ultradian computes an objective quality score after every wave:
| SQI Score | Tier Classification | Physiological Meaning |
|---|---|---|
| 90 – 100 | 🌟 Deep Synchrony | Optimal neural flow state; zero cognitive friction. |
| 75 – 89 | ⚡ Solid Build | High productivity with minor environmental friction. |
| 60 – 74 | 🌿 Restorative Flow | Steady progress; signals approaching rest necessity. |
| < 60 | High interruptions; rest wave recommended immediately. |
flowchart TB
subgraph Browser Client [Frontend Client · React 19 & Tailwind 4]
A[HomeCommandCenter] --> B[Chronometer Engine]
A --> C[Segmented Category Pill Bar]
A --> D[Dynamic Island Master CTA]
E[Web Audio API Engine] --> F[Procedural Binaural / Noise Synth]
G[AnalyticsDashboard] --> H[Recharts Waveforms & SQI Ledger]
I[SettingsModal & Sheet] --> J[Recessed Background & iOS Toggles]
end
subgraph Server Middleware [Express Backend · Port 3000]
K[Vite Dev Middleware]
L[POST /api/gemini/analyze-session]
M[POST /api/gemini/weekly-rhythm]
end
subgraph Cloud Infrastructure [Firebase & Google GenAI]
N[Firebase Auth]
O[Firestore Database]
P[Cloud Functions]
Q[Google Gemini 2.0 Flash]
R[Firebase App Check]
end
Browser Client <--> Server Middleware
Browser Client <--> Cloud Infrastructure
Server Middleware <--> Q
- SwiftUI Spring Physics: All transitions utilize physical damping, stiffness, and mass parameters (
motion/react). - Zero-Dependency Soundscapes: Procedural pink, brown, and binaural audio generated in real-time via
AudioContextbuffer nodes. - Code-Splitting & Lazy Loading: Modals, analytics dashboards, and flex card generators are loaded asynchronously through
React.lazyandSuspense. - Offline First: Full functionality is maintained offline using cached local ledgers and persistent IndexedDB storage.
- Node.js 22.0+
- npm 10.0+
git clone https://github.com/REX-codebase/Ultradian.git
cd Ultradian
npm install# macOS / Linux
cp .env.example .env
# Windows PowerShell
Copy-Item .env.example .env| Variable | Required | Description |
|---|---|---|
GEMINI_API_KEY |
Optional | Unlocks Gemini 2.0 Flash session reflection & weekly rhythm narratives. |
APP_URL |
Optional | Custom base URL for social flex card sharing and OAuth callbacks. |
VITE_FIREBASE_* |
Optional | Custom Firebase production configuration overrides. |
npm run devOpen http://localhost:3000 in your browser.
# Development server (Express + Vite on :3000)
npm run dev
# Compile production bundle & server
npm run build
# Start production server
npm start
# Run full Vitest suite with thread pool
npm test
# Run Playwright end-to-end test suite
npm run test:e2e
# Run TypeScript static typecheck
npm run lint
# Bundle size composition visualizer
npm run analyze- Zero Invasive Tracking: Ultradian never accesses cameras, microphones, biometric wearables, or gaze-tracking hardware.
- Self-Reported Integrity: All metrics, SQI scores, and rhythm trends are calculated solely from user-reported ratings and timer timestamps.
- Local Ledger Option: Complete focus tracking functions privately offline without requiring account creation or cloud sync.
Distributed under the MIT License. See LICENSE for details.
Engineered for deep work, biological synchrony, and cognitive longevity.



