ellistev/typesafe-minecraft-demo on GitHub
- Stars
- 1
- Forks
- 2
- Language
- JavaScript
- Last push
- 17 Sep 2026
Read from GitHub on . Counts change daily.
How it uses Jev
if (!key) throw new Error('TYPESAFE_API_KEY is missing. Restart using scripts/start-demo.ps1.');
const request = requestFor(state, model);
const started = performance.now();
const response = await fetchImpl('https://api.typesafe.ai/v1/systemone', {
method: 'POST', headers: { Authorization: `Bearer ${key}`, 'Content-Type': 'application/json' },
body: JSON.stringify(request), signal
});
if (!response.ok) {
const error=new Error(`TypeSafe HTTP ${response.status}`);
error.status=response.status;
throw error;
}
const raw = await response.json();
return { request, answer: validateAnswer(raw, actionsFor(state)), raw, latencyMs: Math.round(performance.now() - started) };


