Skip to content

even-realities/evenhub-templates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

evenhub-templates

Starter templates for Even Realities G2 smart glasses apps.

Four fully working scaffolds you can clone and run:

Template What it shows
minimal/ Bare base: Vite + TypeScript + Even Hub SDK + simulator. "Hello from G2!" on the display.
asr/ Live mic → speech-to-text pipeline with companion UI and double-tap exit. STT provider is a blank stub — plug in your own.
image/ Image container rendering. Preprocessing/dithering is optional; the SDK handles grayscale conversion.
text-heavy/ Long-form text with click-to-advance pagination. Demonstrates the 2000-char textContainerUpgrade path.

Get a template

Using degit (recommended — no git history, fast):

npx degit LesenmiaoYu/evenhub-templates/minimal my-app
cd my-app
npm install
npm run dev

Substitute minimal with asr, image, or text-heavy for the other templates.

Or clone the whole repo and copy the folder you want:

git clone https://github.com/LesenmiaoYu/evenhub-templates.git
cp -r evenhub-templates/asr my-app
cd my-app && npm install

Prerequisites

  • Node.js v18+
  • The Even Hub companion app installed on a phone, or the evenhub-simulator on desktop
  • (ASR template only) An STT provider of your choice — Deepgram, AssemblyAI, Whisper, Soniox, self-hosted, etc.

Test on real glasses

npm run dev
npx evenhub qr --url http://<your-ip>:5173

Scan the QR code with the Even Hub companion app on a phone paired with your G2.

Test in the simulator

npm run dev
npx evenhub-simulator http://localhost:5173

Pack for distribution

npx evenhub pack

Produces an .ehpk you can upload through the Even Hub dev portal.

Hardware quick reference

Property Value
Display 576 x 288 px, 4-bit greyscale (16 shades of green)
Microphone On the glasses, PCM s16le @ 16 kHz mono
Camera None
Speaker None
Input Touchpad on the temple, optional R1 ring

Resources

License

MIT

About

Starter templates for Even Realities G2 smart glasses apps. Four fully working scaffolds — minimal, asr, image, text-heavy. Clone with degit or git clone.

Resources

License

Stars

35 stars

Watchers

2 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors