Lumi
한국어 Open Lumi

Open source

Lumi faces

The 27 faces of Lumi's eyes for any robot, screen or app, with a canvas renderer and the robot API's answer as JSON Schema, under MIT.

avenpa/lumi-faces holds the faces Lumi’s eyes make, so your own robot or screen can show the same ones. The robot API answers with one of these names in face.

What is in it

File
faces.json Every face’s values: eye width and height, roundness, lids and their slant, each eye’s size, gap, gaze and a few marks. Units are a 240 × 160 box, the same table as the ESP32 firmware’s main/lumi/eyes.cc.
faces.schema.json What each value in faces.json means.
eyes.js A canvas renderer with blinks, glances and springy moves between faces. No dependencies.
packet.schema.json The robot API’s answer (reply, face, mood, choices, busy, wait, id, need, failed) as JSON Schema.
examples/robot.mjs, examples/robot.py Asking Lumi as a robot, in Node and in Python with no packages.
index.html Every face, live. Paste a robot API answer to see its face. Open it from a local web server.
tools/check.mjs Checks that the files agree with each other.

Draw a face

<canvas id="eyes" style="width: 480px; height: 320px"></canvas>
<script type="module">
  import { Eyes, animate } from "./eyes.js";
  const eyes = new Eyes();
  animate(document.getElementById("eyes"), eyes);
  eyes.set("happy"); // the face from a robot API answer
</script>

An unknown name gives neutral. For a screen without a browser, read faces.json and draw the shapes yourself.

Without a screen

A robot with no screen can still use face. For example, a bounce for excited and laugh, a droop for sad and cry, a tilt for curious and confused.

How Lumi picks the face is on the robot API page.

License

MIT.

Checked against the service on December 6, 2026