“Best GitHub repos for LLM apps” should mean repositories that help you ship—route calls, serve models, adapt weights, wrap UX, and observe failures—not another museum of demos. This curated set covers eleven widely used projects with blunt notes on fit.
An LLM app here is a product feature that calls a model in a loop: chat assistants, document copilots, internal agents, or API backends with structured outputs. If your problem is pure retrieval quality, prefer our sibling list of best GitHub repos for RAG. If you are still choosing architecture, read RAG vs fine-tuning vs agents first.
What “LLM app” means for this shortlist
We scored repos on: clarity of the problem they solve, maintenance, documentation quality, and whether a mid-level engineer can integrate them without rewriting the business layer. We avoided mega awesome-lists and one-week hackathon shells.
Every serious LLM app eventually needs four layers: model access, orchestration, product UI/API, and evals/ops. The repos below map onto those layers. You will not need all eleven on day one.
Orchestration and agent runtimes
1. LangChain — langchain-ai/langchain
The ecosystem default for composing prompts, tools, and memory. Best when you want integrations quickly. Risk: accidental framework lock-in and chain spaghetti. Keep domain logic outside LangChain objects so you can replace pieces. For modern tool surfaces, compare patterns in MCP vs API function calling.
2. LangGraph — langchain-ai/langgraph
Explicit state machines for agent loops beat hidden recursion for most production teams. Use LangGraph when you need checkpoints, human-in-the-loop, or branching policies. Skip it for single-turn completion APIs. Complexity should match product risk—support bots rarely need twelve-node graphs.
3. LlamaIndex — run-llama/llama_index
If the app’s heart is private data Q&A, LlamaIndex often gets you to a credible prototype faster than general orchestration kits. Treat it as the retrieval-centric sibling to LangChain. Many LLM apps are secretly RAG products with a chat skin.
4. Semantic Kernel — microsoft/semantic-kernel
A strong option for .NET and enterprise Microsoft shops that want planners, plugins, and Azure-centric wiring. Python support exists, but the gravitational pull is the Microsoft stack. Choose it for organizational fit as much as technical novelty.
Serving, routing, and cost control
5. vLLM — vllm-project/vllm
When you self-host open models, vLLM is frequently the throughput workhorse (PagedAttention, continuous batching). Star it once latency/cost at your QPS matters. It will not design your product—only serve tokens efficiently. Compare hosting strategy with Hugging Face vs OpenAI.
6. LiteLLM — BerriAI/litellm
A pragmatic OpenAI-compatible gateway across providers. Useful for failover, spend tracking, and avoiding six different SDKs. Not a reason to ignore provider-specific features forever, but excellent as a control plane for early multi-model apps.
7. Ollama — ollama/ollama
Local model UX for developers: pull, run, iterate without cloud keys. Perfect for offline demos and privacy-sensitive prototypes. Not a full production orchestrator. Many teams keep Ollama for laptop loops and a hosted API for staging.
Fine-tuning and model libraries
8. Transformers — huggingface/transformers
The model-definition backbone for open NLP/MLM/VLM work. Even API-first apps benefit when you need tokenization details, local eval models, or custom heads. Course path companion: Hugging Face transformers course path.
9. PEFT — huggingface/peft
Parameter-efficient fine-tuning (LoRA and friends) without copying full model weights. Star PEFT when adaptation beats prompt-only behavior on style or task format. Read LoRA fine-tuning guide before you burn a GPU week.
Frontend shells and developer UX
10. Vercel AI SDK — vercel/ai
Streaming-friendly helpers for JS/TS apps, especially Next.js. If your LLM app is a web product, this repo saves weeks of SSE plumbing. Keep business prompts and tool authorization on the server—never ship secrets to the browser because the SDK made streaming easy.
11. OpenAI Cookbook — openai/openai-cookbook
Not a framework, but the highest-signal pattern library for API usage: structured outputs, embeddings workflows, and practical notebooks. Treat examples as starting points; pin SDK versions. Complements prompt engineering guide 2027 and the prompt-repo roundup prompt engineering GitHub repos.
Observability and eval companions
Shipping without traces is how LLM apps die in silence. Beyond the eleven above, most teams eventually add an eval harness (RAGAS for retrieval apps, promptfoo for prompt regression) and OpenTelemetry-style traces around tool calls. Budget for that the same week you budget for the first UI.
When agents execute code or call many tools, study Cloudflare Code Mode explained. Code-shaped tool use can reduce brittle JSON tool spam—but only with sandboxing and allowlists.
A starring order for shipping your first app
- OpenAI Cookbook or provider docs — learn the raw API contracts.
- Vercel AI SDK or your backend framework — ship a streaming vertical slice.
- LiteLLM — if you need multi-provider routing early.
- LlamaIndex or LangChain — only after the thin slice works.
- LangGraph — when control flow becomes the bug.
- vLLM / Ollama / PEFT — when hosting or adaptation becomes the bottleneck.
Vector-backed features should consult vector databases for AI before hard-wiring a store. Prompt-heavy products should keep a living regression suite rather than relying on chat screenshots.
Anti-patterns this list is meant to prevent
- Installing three orchestration frameworks “just in case.”
- Fine-tuning before measuring whether retrieval or better prompts would fix the issue.
- Building a custom streaming protocol when the AI SDK already solved it.
- Self-hosting 70B models on day one for a ten-user internal tool.
- Copying cookbook notebooks into production without auth, quotas, or logging.
Course-shaped learning still helps. After starring repos, a structured pass through the Full Stack Deep Learning LLM bootcamp (with modern tooling annotations) improves product judgment that GitHub stars cannot teach.
Security and tenancy notes before you clone everything
Framework stars do not equal a threat model. Put API keys in a secret store, isolate tenant data before embedding, and treat tool outputs as untrusted input back into the model. Prompt injection through retrieved documents is a product bug, not a user mistake. Build allowlists early—especially once MCP or arbitrary function calling enters the loop.
Bottom line: the best GitHub repos for LLM apps are the ones that match your bottleneck—orchestration, serving, adaptation, or UX. Start thin, add LangGraph or PEFT only when metrics demand it, and keep provider gateways and evals as first-class infrastructure.
FAQ
What are the best GitHub repos for building LLM apps?
A practical starter set is LangChain or LlamaIndex for orchestration/retrieval, Vercel AI SDK for web streaming, LiteLLM for provider routing, Transformers/PEFT for open-model work, and vLLM when you self-host at scale. Add LangGraph when agent control flow becomes complex.
Do I need LangChain to ship an LLM app?
No. Many production apps call provider SDKs directly with a thin service layer. Use LangChain when integrations and tool abstractions save more time than they cost in complexity.
When should I use vLLM instead of a hosted API?
When token volume, data residency, or custom models make self-hosting cheaper or mandatory—and your team can operate GPUs. For early product discovery, hosted APIs usually win on speed.
Is Ollama production-ready?
Ollama is excellent for local development and small internal demos. High-availability multi-tenant production usually wants a dedicated serving stack such as vLLM plus proper orchestration, auth, and autoscaling.
How do PEFT and Transformers fit an application roadmap?
Transformers gives you model loading and generation primitives; PEFT lets you adapt models efficiently. Introduce them after you have evals proving that prompts and retrieval cannot meet quality targets alone.
Where should I look for prompt patterns for LLM apps?
Start with openai/openai-cookbook examples, then deepen with dair-ai/Prompt-Engineering-Guide and our prompt engineering guides. Keep prompts in version control next to tests.
Related reading
- Best GitHub repos for RAG
- RAG vs fine-tuning vs agents
- Hugging Face vs OpenAI
- MCP vs API function calling
- Cloudflare Code Mode explained
- Vector databases for AI
- Full Stack Deep Learning LLM bootcamp
Primary sources: official repositories linked above, plus vLLM docs and Vercel AI SDK docs.
AI Generated Apps AI Code Learning Technology

One comment
Pingback: Prompt Engineering Repos Worth Starring