Skip to content
System One

LamplighterPaul/jev-piano

Hands Jev a piano and asks it typed questions about mood, having it decide notes continuously since it cannot generate music directly. Started as an X bet with @BaselAshraf81 over whether Jev could be made to play at all.

LamplighterPaul/jev-piano on GitHub

Stars
4
Forks
1
Language
TypeScript
License
MIT
Last push
24 Sep 2026

Read from GitHub on . Counts change daily.

How it uses Jev

const KEYS = collectKeys()
const MODEL = process.env.TYPESAFE_MODEL ?? 'jev-latest'
const ENDPOINT = process.env.TYPESAFE_ENDPOINT ?? 'https://api.typesafe.ai/v1/systemone'

let turn = 0

export const live = () => KEYS.length > 0
export const keyCount = () => KEYS.length

export async function ask(state: unknown, questions: Questions): Promise<Run> {
  return KEYS.length ? jev(state, questions) : mock(questions)
}

// One pass round robin through every key, then up to two backed-off retries on
// top, so a fully rate-limited pool fails in bounded time instead of doubling

View in server/jev.ts

Open on GitHub

More like this

Keep browsing