# Nightfold > A wind-down session you play. Assemble a short session from segments - paced breathing, a body scan or grounding > script, a sleep story or visualisation, silence, soft chimes - and play it full-screen. A coral ring grows and > shrinks with each breath phase; script phrases fade in one per breath on the phase they are tagged with; the display > dims as the session goes on, and a sleep mode drops to near-black with dim amber text. A guide model writes bespoke > breath-timed scripts and gently adjusts the plan from how recent sessions went. Wellbeing practice for ordinary days; > not therapy, not medical advice. - URL: https://nightfold.skillsafe.ai/ - API docs: https://nightfold.skillsafe.ai/api.html - Token panel: https://nightfold.skillsafe.ai/tokens.html - Platform: SkillSafe (https://skillsafe.ai/) ## Free in the browser, no account - Six breathing patterns with a live pacer and breath counter: Box 4-4-4-4, 4-7-8, Coherent 5.5, Calm 4-6, Settle 4-2-6, Small breaths 3-4 (for children). - A session strip of up to 12 segments with drag reorder, lengths, patterns and scripts; four presets (evening wind-down, child at bedtime, exam nerves, mid-day reset). - Eight bundled scripts: an evening body scan, a child's floppy-teddy scan, five-senses grounding, before-the-exam grounding, a mid-day reset, a night-harbour sleep story, a sleepy-fox bedtime story, a warm-lake visualisation. - The phrase-timing engine: one breath slot per full cycle, a word budget per phase at 1.5 words a second, overlong phrases split across two phases of the same breath or flagged. - The player: full-screen, chrome that hides when you are still, slow dimming, sleep mode, optional soft chime, a gentle end with no alarm. Respects reduced motion (a still ring and a filling bar). - A before/after log on a 1-5 scale (wound up to settled), a weekly summary and a dot plot. - Exports: printable script cards, script Markdown, session plan JSON (and import), log CSV. ## The guide (metered, needs a SkillSafe account) One model (gpt-terra), two tasks routed by the `task` field: - `script` - a bespoke body scan, grounding sequence, sleep story or visualisation for one segment, as exactly `slot_count` phrases, each tagged `in`, `hold`, `out` or `rest` and within that phase's word budget. The page checks words per phrase, phrase count against slots and phases against the pattern before it plays. - `plan` - reviews the plan and the last few sessions (as days ago and ratings, never timestamps) and proposes an adjusted plan with one line of reasoning per change; `intent: "longer"` is the same session tomorrow, a little longer. Changes appear as ghosted segments to accept one by one; unknown patterns or scripts are refused. The guide never diagnoses, names conditions or gives health advice. ## Sources Script craft derived from @jwynia/sleep-story (https://skillsafe.ai/skill/@jwynia/sleep-story/, github.com/jwynia/agent-skills): stories that offer gentle cognitive engagement and fade naturally into rest.