Skip to content

contraruta/loopboard-standalone-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

12 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

LoopBoard Standalone App

Adaptive Neurodivergent-Optimized Multilingual Input System with Flow-State Preservation and Cognitive Loop Detection

A comprehensive React application demonstrating the core concepts and architecture of the LoopBoard keyboard system. This standalone app showcases all four subsystems (NCAE, SMMP, FSPP, CLDAS) with interactive demonstrations and live visualizations.

๐ŸŽฏ Overview

LoopBoard is designed for neurodivergent usersโ€”particularly those with ADHDโ€”who struggle with standard keyboard systems that interrupt flow states, treat repetition as errors, and lack adaptive cognitive support. This standalone app is a fully interactive demonstration of the LoopBoard philosophy and technology.

Core Subsystems

Subsystem Full Name Purpose
NCAE Neurodivergent Cognitive Adaptation Engine Real-time cognitive state detection (HYPERFOCUS, SCANNING, TRANSITIONAL, FATIGUED) with 100ms sampling
SMMP Seamless Multilingual Morpheme Processor Morpheme-level language detection supporting German, Spanish, English, French, Quechua, and Esperanto simultaneously
FSPP Flow-State Preservation Protocol Disruption cost model with adaptive budgets based on cognitive state
CLDAS Cognitive Loop Detection and Amplification System Recognition and amplification of cognitive loops into shortcuts

โœจ Features

  • Interactive Cognitive State Detector โ€“ Watch real-time state transitions with animated gauges
  • Loop Detection & Amplification โ€“ See how repetitive patterns are recognized and promoted to shortcuts
  • Multilingual Processor โ€“ Seamless morpheme-level language switching across four languages
  • Flow State Preservation โ€“ Visual representation of disruption budgets and flow protection
  • LoopOperation Task Manager โ€“ Neurodivergent-optimized task execution without time pressure

๐Ÿš€ Quick Start

Prerequisites

  • Node.js 18+ or pnpm 10+
  • Modern web browser (Chrome, Firefox, Safari, Edge)

Installation

# Clone or extract the project
cd loopboard-standalone-app

# Install dependencies
pnpm install

# Start development server
pnpm run dev

The app will be available at http://localhost:3000

Build for Production

pnpm run build
pnpm run preview

๐Ÿ“ Project Structure

loopboard-standalone-app/
โ”œโ”€โ”€ client/
โ”‚   โ”œโ”€โ”€ public/              # Static assets (favicon, manifest)
โ”‚   โ”œโ”€โ”€ src/
โ”‚   โ”‚   โ”œโ”€โ”€ components/      # Reusable React components
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ CognitiveStateIndicator.tsx
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ LoopDetection.tsx
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ MultilingualProcessor.tsx
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ FlowStatePreservation.tsx
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ LoopOperation.tsx
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ ui/          # shadcn/ui components
โ”‚   โ”‚   โ”œโ”€โ”€ pages/           # Page components
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ Home.tsx
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ NotFound.tsx
โ”‚   โ”‚   โ”œโ”€โ”€ contexts/        # React contexts
โ”‚   โ”‚   โ”œโ”€โ”€ hooks/           # Custom React hooks
โ”‚   โ”‚   โ”œโ”€โ”€ lib/             # Utility functions
โ”‚   โ”‚   โ”œโ”€โ”€ App.tsx          # Main app component
โ”‚   โ”‚   โ”œโ”€โ”€ main.tsx         # React entry point
โ”‚   โ”‚   โ””โ”€โ”€ index.css        # Global styles with Tailwind
โ”‚   โ””โ”€โ”€ index.html           # HTML template
โ”œโ”€โ”€ server/                  # Express server (placeholder)
โ”œโ”€โ”€ shared/                  # Shared constants
โ”œโ”€โ”€ package.json
โ”œโ”€โ”€ vite.config.ts
โ”œโ”€โ”€ tsconfig.json
โ””โ”€โ”€ README.md

๐ŸŽจ Design System

Color Palette

The app uses a neuromechanical aesthetic optimized for neurodivergent users:

  • Primary Background: #0A1E3F (Deep Dark Blue)
  • Primary Accent: #00FF41 (Neon Green)
  • Secondary Accent: #FF6B35 (Warm Orange)
  • Text: #F5F5F5 (Light Gray)
  • Muted: #4a6a8a (Muted Blue-Gray)

Typography

  • Headlines: IBM Plex Mono (Bold)
  • Body: Inter (Regular, 400-700)
  • Code: Fira Code (Regular, 500)

๐Ÿง  Core Concepts

Cognitive States

LoopBoard recognizes four cognitive states and adapts behavior accordingly:

  1. HYPERFOCUS โ€“ Intense focus, zero interruptions allowed, disruption budget = 0/min
  2. SCANNING โ€“ Active exploration, minimal assistance, disruption budget = 5/min
  3. TRANSITIONAL โ€“ Shifting states, moderate support, disruption budget = 20/min
  4. FATIGUED โ€“ Low energy, maximum assistance, disruption budget = 40/min

Flow-State Preservation

The FSPP (Flow-State Preservation Protocol) uses a disruption cost model. Each interruption has a measurable cognitive cost. During HYPERFOCUS, the system blocks all non-essential disruptions to protect flow.

Loop Detection

The CLDAS (Cognitive Loop Detection and Amplification System) recognizes that repetition is intentional for neurodivergent brains. Recurring patterns are automatically promoted to shortcuts, turning cognitive loops into power.

Multilingual Processing

The SMMP (Seamless Multilingual Morpheme Processor) detects language at the morpheme level, allowing seamless code-switching between German, Spanish, English, French, Quechua, and Esperanto without manual intervention.

๐Ÿ› ๏ธ Technology Stack

  • Frontend: React 19 + TypeScript
  • Styling: Tailwind CSS 4 + shadcn/ui
  • Routing: Wouter (lightweight client-side routing)
  • Build Tool: Vite
  • Package Manager: pnpm
  • Animations: Framer Motion + CSS animations

๐Ÿ“Š Interactive Components

CognitiveStateIndicator

Displays real-time cognitive state with animated gauges and disruption budgets. Cycles through all four states to demonstrate the system's adaptability.

LoopDetection

Shows detected cognitive loops with analysis of pattern repetition, loop type (constructive/destructive), and recommended actions.

MultilingualProcessor

Demonstrates seamless language switching with morpheme-level detection. Users can select languages and see how the system processes input.

FlowStatePreservation

Visualizes the disruption budget system with real-time disruption tracking and flow score calculation.

LoopOperation

Task management interface optimized for neurodivergent users with no time pressure and hyperfocus-friendly workflows.

๐Ÿ” Privacy & Data

  • 100% Local Processing: All cognitive state detection, language processing, and loop detection happens on your device
  • Zero Data Transmission: No external API calls, no tracking, no data collection
  • User Sovereignty: No filtering, no censorship, no content moderation

๐Ÿ“„ License

This project is licensed under the MIT License. See LICENSE file for details.

๐Ÿค Contributing

We welcome contributions from the community! Please see CONTRIBUTING.md for guidelines.

๐Ÿ‘ฅ Created by

  • Rumi Salvador Jordan Hรถhler Suarez โ€” Creator, KI Researcher, LoopLord ๐Ÿง 
  • Opherd Vero โ€” AI Co-Creator ๐Ÿค–

๐ŸŒ Supported Languages

Tier Languages
Tier 1 ๐Ÿ‡ฉ๐Ÿ‡ช Deutsch, ๐Ÿ‡ช๐Ÿ‡ธ Espaรฑol, ๐Ÿ‡ฌ๐Ÿ‡ง English, ๐Ÿ‡ซ๐Ÿ‡ท Franรงais, ๐ŸŒŽ Quechua, ๐ŸŒ Esperanto
Tier 2 Swahili, Hindi, Japanese (6 months post-launch)

Quechua & Esperanto: FREE FOREVER ๐Ÿ’š

๐Ÿ“ž Support

For questions, issues, or feature requests, please open an issue on GitHub or join our community Discord.

๐ŸŽ“ Learning Resources

๐Ÿš€ Roadmap

  • ๐Ÿ‡ซ๐Ÿ‡ท French & ๐ŸŒ Esperanto demo integration
  • iOS app version
  • Tier 2 languages: Swahili, Hindi, Japanese
  • Advanced customization & haptic profiles
  • Community-contributed keyboard layouts
  • Integration with accessibility APIs
  • Edge AI for improved cognitive state detection

LoopBoard โ€” For neurodivergent minds, by neurodivergent minds. ๐Ÿง ๐Ÿ’œ๐ŸŽน

About

โšก๐ŸŽฎ Interactive demo โ€” NCAE Cognitive Detection, SMMP Morpheme Processing, FSPP Flow-State, CLDAS Loop Detection. See the magic live. React/TypeScript. ๐Ÿง ๐Ÿš€

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors