
npm install orkajsFULLnpm install @orka-js/core @orka-js/*SELECTIVE+20 modular packages — install only what you need
Compatible Runtimes & Frameworks










OrkaJS is framework-agnostic — use it with any Node.js or Bun runtime
orka.ask(), orka.agent(), orka.workflow() — code that reads like English.
Switch models with one line of code.
Retry, fallback, and observability built-in.
End-to-end TypeScript with full IDE autocomplete.
CI/CD test runners to prevent regressions.
From ingestion to evaluation — the full lifecycle of production LLM applications in one TypeScript-first framework.
Connect your AI to external tools and data sources with standardized MCP servers.
const mcp = orka.mcp({ servers: ['filesystem', 'github'], tools: ['read_file', 'search_code']});Train custom models on your data with built-in dataset preparation and evaluation.
const job = await orka.fineTune({ model: 'gpt-4o-mini', dataset: trainingData, epochs: 3});Connect your data with high-level abstractions for embeddings and vector stores.
const knowledge = await orka.knowledge({ vectorStore: 'pinecone', index: 'docs'});Define tools and let Orka handle the planning, execution, and memory management.
const agent = orka.agent({ model: 'gpt-4o', tools: [search, database]});Process images, audio, and text together with Vision and Audio agents.
const visionAgent = new VisionAgent({ llm, systemPrompt: 'Analyze images'});await visionAgent.analyzeImage(image);Require human approval for sensitive operations with checkpoints and resume.
const agent = new HITLAgent({ requiresApproval: ['transfer_money'], onInterrupt: approvalHandler});Stream tokens as they're generated for responsive AI applications.
await llm.streamGenerate(prompt, { onToken: (token) => { process.stdout.write(token); }});GDPR-compliant data protection layer to detect and redact sensitive information.
const guard = new PIIGuard();const safe = guard.redact( 'Email: user@example.com');// → 'Email: [EMAIL]'Built-in assertions and test runners to quantify your LLM performance.
await orka.evaluate(result, { metrics: ['faithfulness', 'latency'], threshold: 0.8});Chain models, handle fallbacks, and orchestrate complex AI logic seamlessly.
const flow = orka.workflow() .step('summary', modelA) .step('critique', modelB) .execute();Stop worrying about rate limits or provider downtime. Orka handles the logic of multi-model resilience at the core level.
RouterLLMComplexity-aware routing
RaceLLMLowest latency wins
ConsensusLLMBest-of-N Majority Vote
FallbackLLMAuto-healing failover
Join the developers building autonomous, resilient, and type-safe LLM applications with Orka JS.