# microsoft/prompt-engine

A library for helping developers craft prompts for Large Language Models

Repository: https://github.com/microsoft/prompt-engine
Canonical: https://ross.abutalabs.com/products/prompt-engine
Language: TypeScript
License: MIT
License Family: permissive
Archived: true
Last push: 2023-04-25T20:17:47+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 1538, "days_push": 1226, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2752, forks 121 (observed 2026-08-28T04:07:18.068331+00:00)

## What it is
An NPM utility library from Microsoft for building and maintaining prompts for Large Language Models, with generic, code, and chat prompt engines. It manages descriptions, few-shot examples, and ongoing dialog context so developers don't have to manipulate prompt strings manually.

## Use cases
- build few-shot prompts for GPT-3 or Codex
- generate natural language to code prompts
- maintain conversation context for stateless LLMs
- structure chat prompts with examples and dialog history
- codify prompt engineering patterns in TypeScript

## When to choose
- you're building LLM apps in Node.js/TypeScript and want structured prompt construction
- you need to manage few-shot examples and dialog history programmatically

## When to avoid
- you use Python-based LLM tooling ecosystems
- you need a full agent or orchestration framework rather than prompt string management
- you need actively maintained features - the repo's last release was 2023

## Facets
- artifact type: library
- maturity: maintenance
- function: prompt-engineering, llm-inference, developer-tools
- domain: large-language-models, artificial-intelligence, developer-tools
- platform: -
- tags: few-shot-prompting, npm, chat-prompts, code-generation-prompts, nodejs, typescript

## Member repositories
- microsoft/prompt-engine (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:18.068331+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T08:18:55.431384+00:00, confidence not recorded.
  - readme: https://github.com/microsoft/prompt-engine (fetched 2026-08-28T04:07:18.068331+00:00, sha a676996e392f)
- Data as of 2026-08-30T08:39:29.467469+00:00.
