An interactive coding education platform built by a student, for students. Write real code, solve challenges, learn with AI, and level up your skills — all in one place.
class Hyze { constructor() { this.u = "https://hyzelabsdev.vercel.app/api/sdk"; } async chat(messages, { model = "hyze/h1" } = {}) { const res = await fetch(this.u, { method: "POST", body: JSON.stringify({ messages, model }) }); return res.json(); } } const hyze = new Hyze(); // no key needed
Pick a challenge from the sidebar.
Select a challenge and hit Run ▶
Bite-sized concept cards to build your foundation. Click any card for the full lesson, then jump into related challenges.
Write code and hit Run ▶
Your AI coding tutor — ask anything
Zero-config JavaScript SDK. No API key required. Works in any browser or Node.js project.
Copy this class into your project — no npm, no build step needed.
class Hyze {
constructor() {
this.u = "https://hyzelabsdev.vercel.app/api/sdk";
}
async chat(messages, { systemPrompt, model = "hyze/h1" } = {}) {
const res = await fetch(this.u, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ messages, model, systemPrompt })
});
return res.json();
}
}
const hyze = new Hyze(); // No API key neededconst hyze = new Hyze();
const response = await hyze.chat([
{ role: "user", content: "What is recursion?" }
]);
console.log(response.choices[0].message.content);const history = [];
async function send(msg) {
history.push({ role: "user", content: msg });
const res = await hyze.chat(history);
const reply = res.choices[0].message.content;
history.push({ role: "assistant", content: reply });
return reply;
}messagessystemPromptmodel