genaiscript
Basic Information
GenAIScript is a JavaScript and TypeScript toolbox for developers to programmatically assemble prompts and orchestrate large language models, tools, and data as code. It provides a prompt template tag ($) and helper functions like def and defSchema to include files, define schemas, and optimize context for target models. The project supports ingesting PDFs, DOCX, CSV, and XLSX, parsing outputs into files, and previewing changes. It integrates with Visual Studio Code and offers a command-line interface and API for automation. GenAIScript supports multiple model backends including GitHub Models and Copilot, OpenAI and Azure OpenAI, Anthropic, and local models via runtimes like Ollama or LocalAI. It also includes features for registering JavaScript tools, composing agents, vector search for RAG, code interpreter execution, containerized runs, video processing, secret scanning, and built-in content safety system prompts to help build reproducible, testable GenAI workflows.