microsoft

genaiscript: Assemble LLM Prompts with JavaScript

GenAIScript is a JavaScript and TypeScript toolbox for assembling prompts and orchestrating LLMs, tools, and data in code. It supports Visual Studio Code and the command line, but is archived and read-only, so adoption carries maintenance risk.

ArchivedTypeScriptMITJavaScriptAIDeveloper Tools
View on GitHub Compare
Stars
2.9k
Forks
226
Stars, last 30 days
-4
Last commit
5 months ago
Contributors
31

Our take

Archivedarchived by its owners on GitHub, read-only

Health score

24/100

How it is scored
Activity
19
Community
36
Issues
21
Pull requests
20

-4 stars in the last 30 days

GenAIScript offers a broad code-first toolkit for LLM workflows, but its archived, read-only status and highly concentrated contribution history make it a risky choice for a new long-lived dependency.

Good fit if

  • You want to inspect or continue an existing GenAIScript workflow and can manage maintenance yourself.
  • Your team prefers JavaScript or TypeScript scripts and needs the documented VS Code or CLI workflow.
  • The MIT-licensed code and support for your chosen model provider fit your project.

Look elsewhere if

  • You need an actively maintained project, regular releases, or responsive issue and pull-request handling.
  • Your production dependency should not rely on a project whose contributions have been overwhelmingly concentrated in one person.
  • You need functionality or integrations not documented by the repository, since there is no active upstream development to rely on.
All health signals
Last commit2026-05-21 (5 months ago)
Commits, last 90 days0
Releases, last 12 months0 (latest 2.5.1, 2025-09-26)
Contributors31 (top contributor: 96% of commits)
Issues closed, last 90 days0
Pull requests merged, last 90 days0
Project age3 years

Checked on 2026-10-16 with the GitHub API.

Project history

Daily GitHub snapshots since Oct 7, 2026. History covers stars and forks; health signals are not tracked historically.

Selected snapshot

Stars

2,874

Forks

223

Change since Nov 17, 2026: 0 stars·0 forks

Overview

GenAIScript is a JavaScript and TypeScript toolbox for programmatically assembling prompts and orchestrating LLMs, tools, and data in code. It treats prompts as code, helping developers combine files and other inputs with model instructions, then process structured results and generated files.

The project supports Visual Studio Code and command-line workflows. It connects to providers including GitHub Copilot and GitHub Models, OpenAI, Azure OpenAI, and Anthropic. The repository is archived and read-only, so it is best considered an existing tool to evaluate rather than an actively maintained foundation for new work.

Key Features

  • Compose prompts in JavaScript or TypeScript using template tags and reusable context definitions.
  • Ingest files and data, including PDFs, DOCX, CSV, and XLSX.
  • Define schemas, including Zod support, to structure and validate model output.
  • Register JavaScript tools and agents, with support for Model Context Protocol tools.
  • Search files and perform built-in vector retrieval for retrieval-augmented generation workflows.
  • Generate files from model responses and preview changes in a refactoring interface.
  • Run scripts through the CLI or API, and integrate pull-request reviews into GitHub Actions or Azure DevOps pipelines.
  • Test prompts and evaluations with promptfoo, and use supported local model runtimes such as Ollama and LocalAI.

Use Cases

  • Developers can turn recurring LLM tasks into versioned JavaScript or TypeScript scripts rather than maintaining prompts as disconnected text.
  • Teams processing documents or tables can provide files as context and request schema-shaped extractions.
  • Repository maintainers can automate LLM-assisted pull-request reviews in existing CI pipelines.
  • Experimenters can combine prompts, tools, and retrieval to build small task-specific agents, provided the archived project meets their maintenance needs.

What you need

Detected in the repository

  • Node.js (from package.json)
  • A Dockerfile, so it can run in a container
  • Automated checks on GitHub Actions

License in plain words

MITpermissive

  • Commercial use: yes
  • Modify and redistribute: yes
  • You must keep: the copyright and license notice
  • Share your changes: no

A summary, not legal advice: the LICENSE file is what applies.

Getting Started

The README points to installation instructions for the Visual Studio Code extension and command-line setup. See the repository README for examples and documentation links.

Alternatives

  • poml: POML builds structured, reusable prompts with markup and development tools, while GenAIScript uses JavaScript or TypeScript to assemble prompts and orchestrate LLM workflows.
  • py-priompt: PyPriompt composes prompts in Python and prioritizes content to fit token limits; GenAIScript uses JavaScript or TypeScript and also orchestrates models and tools.
ProjectLanguageLicenseStarsStatus
genaiscriptTypeScriptMIT2.9kArchived
pomlTypeScriptMIT5kQuiet
py-priomptPythonOther65Inactive

Considerations

GitHub marks the repository archived and read-only. The health data shows no recent commits, releases, issue closures, or merged pull requests, and contribution is heavily concentrated in one person. Teams adopting it should plan for maintaining or replacing it themselves. Node.js is listed as a runtime requirement, and the project also supports Docker-based workflows. The README documents multiple model providers, but provider availability and credentials depend on the chosen service or local runtime.

Found this useful?

Share it with someone who would like genaiscript.

Comparisons