Docs
How to use Resonance
Everything you need to start a slow-breathing practice with Resonance, plus the account API the site uses.
Getting started
- Try the pacer on the home page — no account needed.
- Create an account with your name, email and a password (8+ characters, with a letter and a number).
- You land in
/app, “My practice”. Set your pace, then press Start a session.
Choosing a pace
Resonance breathing is slow, steady breathing, usually between 4.5 and 7 breaths a minute. In “Your pace” you choose:
- Breaths per minute — 4.5 to 7 in steps of 0.5. One breath at 6 / min lasts 10 seconds.
- Even — in and out take the same time (breathing in takes 50% of each breath).
- Longer exhale — out is a little longer — many find it calmer (breathing in takes 40% of each breath).
- Session length — 5, 10 or 15 minutes.
Not sure? Start at 6 breaths a minute with an even rhythm, try a few paces over several days and keep the one that feels smoothest. Press “Save pace” to keep it.
Running a session
The session window shows the pacer, a progress bar and the time. Follow the orb: breathe in as it grows, out as it settles. Pause or resume with the main button; “End session” stops early. If you feel dizzy or short of breath, stop and breathe normally.
With “reduce motion” turned on in your device settings, the orb stays still and only the text cue changes.
Your journal
When a session ends you can mark how you feel (calmer, about the same, more tense) and write a note of up to 500 characters, then “Save to journal”. The journal keeps your latest 200 sessions with date, length and pace. “Clear journal on this device” removes them all.
Account and data
Your account lives on our server; your pace and journal live in this browser’s local storage, per account. They do not sync between devices. In /app/settings you can change your name and password or log out. Sessions last 30 days. Details: Privacy Policy.
Account API
The site talks to a small JSON API on the same origin. Requests are JSON (Content-Type: application/json); sign-in sets an HttpOnly sid cookie. Write requests from another origin are rejected with 403. Errors return { error } with a readable message.
POST /api/auth/signup
Body: { name, email, password }
Success: 201 { user } + session cookie
Errors: 400 invalid input · 409 email already registered · 429 too many sign-ups
POST /api/auth/login
Body: { email, password }
Success: 200 { user } + session cookie
Errors: 401 wrong email or password · 429 too many attempts (wait 15 min)
GET /api/auth/me
Body: —
Success: 200 { user }
Errors: 401 not signed in
POST /api/auth/logout
Body: {}
Success: 200 { ok: true }, cookie cleared
Errors: —
POST /api/account/update
Body: { name }
Success: 200 { user }
Errors: 400 invalid name · 401 not signed in
POST /api/account/password
Body: { current, next }
Success: 200 { ok: true }
Errors: 400 wrong current / weak new password · 401 · 429