GenAIScript

microsoft.github.io
Developer Tools

GenAIScript, scripting for Generative AI.

llms.txt

GenAIScript

GenAIScript is a JavaScript/TypeScript library and environment to build productive script using LLMs.

Markdown Documentation

All pages of the documentation have a markdown route by adding '.md' to the URL. For example, the markdown for https://microsoft.github.io/genaiscript/reference/scripts is at https://microsoft.github.io/genaiscript/reference/scripts.md

Guidance for Code Generation

  • GenAIScript programs are meant to be executed through the genaiscript cli (https://www.npmjs.com/package/genaiscript).
  • When generating code for GenAIScript, always target TypeScript, Node.JS, ESM. Prefer await/async, keep it simple.
  • ambient types and definitions defined in "genaiscript.d.ts" are preloaded at runtime. you do not need to import them.
  • you keep the code simple, avoid exception handlers or error checking.
  • you add TODOs where you are unsure so that the user can review them
  • you use the global types in genaiscript.d.ts are already loaded in the global context, no need to import them.
  • save generated code in the "./genaisrc" folder with ".genai.mts" extension

Documentation Sets

  • Abridged documentation: a compact version of the documentation for GenAIScript, with non-essential content removed
  • Complete documentation: the full documentation for GenAIScript
  • Getting Started: Sequence of short tutorials on how to get started with GenAIScript
  • Configuration: Configure access to LLMs and other services
  • Reference: full reference documentation (runtime and cli)
  • Reference Scripts: full reference documentation for the runtime
  • Reference CLI: full reference documentation for the command line interface and Node.JS runtime
  • Guides: Guides on various LLM programming topics

Notes

  • The complete documentation includes all content from the official documentation
  • The content is automatically generated from the same source as the official documentation
Related

The AI Toolkit for TypeScript, from the creators of Next.js.

/llms.txt
136,985 tokens
Developer Tools

Meet the modern standard for public facing documentation. Beautiful out of the box, easy to maintain, and optimized for user engagement.

/llms.txt
5,436 tokens
/llms-full.txt
181,290 tokens
Developer Tools

Web development for the rest of us.

/llms.txt
602 tokens
/llms-full.txt
453,623 tokens
Developer Tools

Search through billions of items for similar matches to any object, in milliseconds. It’s the next generation of search, an API call away.

/llms.txt
15,715 tokens
/llms-full.txt
588,629 tokens
Developer Tools

Build and deploy reliable background jobs with no timeouts and no infrastructure to manage.

/llms.txt
12,202 tokens
/llms-full.txt
387,586 tokens
Developer Tools

Get the simple developer experience of SQLite in production, and scale your multi-tenant backend with unlimited databases.

/llms.txt
10,006 tokens
/llms-full.txt
163,317 tokens
Developer Tools

Upstash is a serverless data platform providing low latency and high scalability for real-time applications.

/llms.txt
52,307 tokens
/llms-full.txt
1,200,134 tokens
Developer Tools

One-click deployments built for teams, tuned for Laravel, loaded with tools and goodies you're going to love.

/llms.txt
565 tokens
/llms-full.txt
11,330 tokens
Developer Tools