MiniChain logo

MiniChain

srush/MiniChain

A tiny library for coding with large language models

GraphCanon updated Sep 20, 2026 · GitHub synced Sep 20, 2026

43views this month

1.2k stars74 forksLast push Jul 10, 2024 Python MIT

Decision brief

MiniChain is a lightweight Python framework for using large language models through annotated function calls and Jinja-based prompt templating.

Good fit when

  • When integrating lightweight prompt chaining functionality without the complexity of larger libraries
  • If you need easy to understand graphs for debugging chains similar to PyTorch

Avoid when

  • When seeking comprehensive features that only large, complex libraries offer, such as extensive example implementations or integrated support systems
  • If you require more advanced features not present in MiniChain for specialized AI applications

Observed Jul 14, 2026 · Source: enrich:decision_facts

Verify the decision

Maintenance and security

Full trust report
Maintenance
Dormant (801d since push)
As of Sep 20, 2026
Provenance
Not a fork · Personal account
As of Sep 20, 2026
Security (OSV)
No lockfile
As of Jul 11, 2026

Public GitHub metadata and optional OSV scans. Signals, not a guarantee. Trust methodology.

Install

pip install MiniChain
PyPI

Similar tools

Same-category neighbours. No typed graph edges are catalogued for this tool yet.

Evidence and technical details

Sourced facts, taxonomy, compatibility claims, README excerpt, and machine-readable endpoints.

Overview

MiniChain is a Python-based, lightweight framework intended to facilitate the creation of applications using large language models through annotated function calls and Jinja-based prompt templating.

Capability facts

Languages
python

Source: github.language · Sep 20, 2026

Categories

Compatibility

Sourced claims from the README excerpt - not unsourced marketing copy.

LangChain integrationLangChain

Source: README excerpt (regex_v1, Sep 20, 2026)

notably: [LangChain](https://langchain.readthedocs.io/en/latest/),
Source link
Python runtimePython

Source: README excerpt (regex_v1, Sep 20, 2026)

(https://github.com/srush/MiniChain/blob/main/examples/math_demo.py)): Annotate Python functions that call language models.
Source link
Works with ChatGPTChatGPT

Source: README excerpt (regex_v1, Sep 20, 2026)

* [Chat with memory](https://srush.github.io/MiniChain/examples/chatgpt/)
Source link

Tags

README

<img src="https://user images.githubusercontent.com/35882/227030644 f70e55e8 68a3 48d3 afa3 54c4de8fc210.png" width="100%" A tiny library for coding with large language models. Check out the MiniChain Zoo to get a sense of how it works. Coding Code (math demo.py): Annotate Python...

For agents

This page has a .md twin and JSON over the API.

Was this helpful?

Anonymous feedback helps us improve pages and translations.