TypeAI, a Typescript WebLLM library (launching 2026):
```
const add = (a, b) => {
"use ai";
return `What is ${a} ${b}? Output only the answer, nothing else.`;
}
```
This marvel is built in TypeGPU, a TypeScript WebGPU library [1/2]
Among other coolness, it features a "𝚞𝚜𝚎 𝚐𝚙𝚞" directive that compiles JS to WSGL, to run on the GPU:
𝚌𝚘𝚗𝚜𝚝 𝚊𝚍𝚍 = (𝚊, 𝚋) => {
"𝚞𝚜𝚎 𝚐𝚙𝚞";
𝚛𝚎𝚝𝚞𝚛𝚗 𝚊 𝚋;
}