Skip to content

Khadejah14/xiaobu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Xiaobu 小步

A quiet social coach for your Even Realities G2 smart glasses.

Xiaobu listens to your conversations and suggests short, natural responses — displayed discreetly on your glasses when you need them. Built for people with social anxiety who want a silent nudge, not a script.


How It Works

  1. 🎤 The app listens to the conversation around you via your microphone
  2. 💍 When you feel stuck, tap the temple of your glasses (or the ring)
  3. 🧠 AI generates one short, natural response based on what was just said
  4. 👓 The suggestion appears on your glasses display instantly
  5. 🔄 Tap again anytime for a fresh suggestion

Tech Stack

Layer Technology
Glasses display Even Hub SDK (@evenrealities/even_hub_sdk)
Speech-to-text OpenAI Whisper (whisper-1)
Response generation OpenAI GPT-4o
Dev server Vite
Simulator Even Hub Simulator

Getting Started

Prerequisites

  • Node.js v20 or v22+
  • An OpenAI API key (sk-...)
  • Even Hub Simulator installed

Installation

# Clone or download the project
cd xiaobu

# Install dependencies
npm install

# Install Vite if not already set up
npm install -D vite
npm pkg set scripts.dev="vite"

Configuration

Open index.js and replace the API key placeholder on line 9:

const OPENAI_API_KEY = 'sk-your-key-here';

Running

Open two PowerShell terminals:

Terminal 1 — Start the dev server:

npm run dev

Terminal 2 — Start the simulator:

evenhub-simulator http://localhost:5173

Usage

  • Browser panel — shows the debug UI: bridge status, live transcript, last suggestion, and debug log
  • Glasses display — shows the suggestion text (green dot-matrix)
  • Click button (simulator) or temple tap (real glasses) → request a suggestion
  • The mic transcribes continuously in 4-second chunks, keeping the last 30 seconds of context

Project Structure

xiaobu/
├── index.html        # Browser panel UI
├── index.js          # App logic (SDK, Whisper, GPT-4o)
├── package.json
└── README.md

Roadmap

  • Heart rate integration via Even R1 ring (when SDK exposes biometric data)
  • Automatic suggestions without tap (opt-in mode)
  • Multi-language support
  • Customizable suggestion tone (formal / casual / funny)

Notes

  • The glasses display is 576×288px, green dot-matrix — keep suggestions short (under 12 words)
  • Tested in Even Hub Simulator v0.7.2 with SDK v0.0.10
  • No camera is used — privacy-first by design

*Xiaobu (小步) means "small step" in Chinese, because every interaction starts with a small step.

And because I personally like (and learn) Mandarin *

About

AI-powered social anxiety coach for Even Realities smart glasses, listens to conversations and suggests responses via GPT-4o

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors