7.4 billion tokens per month. 34 free LLM providers. 635 free model endpoints. All behind one /v1 endpoint, plus any custom OpenAI-compatible endpoint. Smart routing, automatic failover, encrypted keys. Personal experimentation only.
TypeScript
export interface Scheduler {
every(ms: number, fn: () => void | Promise<void>, opts?: { name?: string }): () => void;
after(ms: number, fn: () => void | Promise<void>): () => void;
}
export class NodeScheduler implements Scheduler {
every(ms: number, fn: () => void | Promise<void>, _opts?: { name?: string }): () => void {
const id = setInterval(() => { void fn(); }, ms);
return () => clearInterval(id);
}
after(ms: number, fn: () => void | Promise<void>): () => void {
const id = setTimeout(() => { void fn(); }, ms);
return () => clearTimeout(id);
}
}