FLESHNOTE / DOCS / CORE EDITOR / SPRINT MODES

Focus & Sprint Modes Architecture

FOCUS ENGINE

Technical specifications for FleshNote's word-goal locked focus sprints: Rewarding modes (Momentum, Combo, Zen) and Punishing modes (Kamikaze, Hemingway, Fog).

Philosophy: Word Goal Locking #

FleshNote features specialized Focus Sprint Modes designed to help writers overcome perfectionism and compulsive revision.

Word Goal Lock Rule: Sprints in FleshNote are strictly Word-Goal Driven (there are no timed countdown sprints). When initiating a sprint via FocusSelectorPopup.jsx, the author defines a target word delta (e.g. 400 words). The IDE locks the sprint mode active β€” you cannot exit the sprint until the word count goal is reached.

Standard Focus (Normal Mode) #

Normal Mode (type: 'normal', goal: null) is a non-locked, distraction-free environment:

  • Hides sidebars, inspector docks, and toolbars.
  • Removes syntax highlight colors from entity links for pure visual clarity.
  • Can be toggled on or off at any time without word goal restrictions.

Rewarding Sprint Modes #

Rewarding modes provide visual and gamified positive reinforcement as the writer approaches their goal:

1. Momentum Mode (`MomentumMode.jsx`)

REWARDING

Typing continuously charges an internal momentum meter (+6.6% per keystroke, overfilling up to 130% to provide a 3-second buffer, decaying at 10% per second when idle).

Hungarian Rune Release: When momentum reaches 100%, the editor releases floating particles of Old Hungarian RovΓ‘s glyphs (𐳀, 𐳁, 𐳂, 𐳃, 𐳄, 𐳅, 𐳆, 𐳇, 𐳈, 𐳉, 𐳊, 𐳋, 𐳌, 𐳍) across the screen.

2. Combo Mode (`ComboMode.jsx`)

REWARDING

Builds an arcade combo multiplier as words are typed without stopping. Crossing milestone thresholds triggers particle bursts and dynamic text banners:

Words TypedArcade Feedback Banner
10 / 25 / 50 wordsGOOD / GREAT / AMAZING
100 / 200 wordsFLAWLESS / HOLY SH*T!
500 / 800 wordsLEGENDARY! / TRULY NOVEL!
1000 / 1300 wordsGODLIKE! / UNSTOPPABLE!

Combo Break Rule: Deleting more than 3 characters breaks the combo meter and saves your peak score into the max_combo project statistic.

3. Zen Mode (`ZenMode.jsx`)

REWARDING

As you write towards your target word goal, the component procedurally renders a seeded recursive fractal tree in the background. Branches, bark shades, and leaf clusters progressively expand in proportion to your progress ratio.

Goal Payoff: Reaching 100% of your target word goal triggers a full blooming blossom animation.

Punishing Sprint Modes #

Punishing modes enforce strict behavioral constraints to extinguish hesitation and inner editing:

4. Kamikaze Mode (`KamikazeMode.jsx`)

HIGH STAKES

60-Second Inactivity Limit: If the writer stops typing for 50 seconds, a 5-second red countdown warning appears. If the 60-second limit is reached without typing, the engine begins exploding and deleting the last word off the page word-by-word with fiery particle effects until typing resumes.

5. Hemingway Mode (`HemingwayMode.jsx`)

FORWARD ONLY

A global DOM capture-phase event listener intercepts and cancels all Backspace and Delete key events (e.preventDefault() and e.stopPropagation()). The author is physically prevented from backspacing, forcing forward momentum.

6. Fog Mode (`FogMode.jsx`)

ANTI-DISTRACTION

When idle for more than 4 seconds, a visual mist creeps over the editor canvas (1% opacity per 100ms) with sporadic fading runes, obscuring text outside your immediate cursor radius. Typing keystrokes heals the fog (+10% per keypress) to reveal the manuscript.

On This Page