Best GitHub repositories for AI developers (what to star and why)

Star repositories you will learn from or build on: llama.cpp and Ollama for local inference, vLLM for serving, Hugging Face Transformers for models, LangGraph or LlamaIndex for apps, the Model Context Protocol servers repo for agent tools, and promptfoo for evaluation. Read their code, not just their READMEs.
Why star repositories at all?
A star is a bookmark, not an endorsement. The useful habit is starring projects you will return to: to read their code, track releases or copy a pattern.
The AI ecosystem moves fast, so a curated short list beats thousands of stars. The repositories below are grouped by the job they help you do, with a note on what to study in each.
Stars also influence what others discover, since trending pages and many lists sort by them. That is one reason star counts can mislead: popularity compounds, independent of quality.
Treat your starred list as a personal library. Each entry should answer a question you might have later, such as how a production server batches requests or how an agent loop handles errors.
Which repositories should every AI developer know?
| Repository | Area | Language | What to study | Why it matters |
|---|---|---|---|---|
| ggml-org/llama.cpp | Local inference | C, C++ | Quantisation formats and CPU or GPU kernels | Foundation for many local AI tools |
| ollama/ollama | Local model runner | Go | Model packaging and a simple local API | The most common way developers run models locally |
| vllm-project/vllm | Serving | Python, CUDA | Paged attention and batching | High-throughput OpenAI-compatible serving |
| huggingface/transformers | Models | Python | Model implementations and tokenizers | Reference code for most open models |
| langchain-ai/langgraph | Agent orchestration | Python, TypeScript | Graph-based state and checkpoints | A clear model for controllable agents |
| run-llama/llama_index | RAG | Python, TypeScript | Ingestion, indexing and retrieval patterns | Well-documented retrieval building blocks |
| modelcontextprotocol/servers | Agent tools | TypeScript, Python | Reference MCP servers | Shows how to expose tools to agents |
| promptfoo/promptfoo | Evaluation | TypeScript | Assertions and red-team configs | Testing prompts like code |
What should you learn from inference repos?
llama.cpp is worth reading even if you never write C++. Its issues and pull requests explain quantisation trade-offs, memory layouts and hardware support better than most tutorials.
vLLM shows how serving systems batch many requests and manage the key-value cache. Understanding that explains why throughput and latency behave the way they do in production, whichever server you use.
Ollama is useful in a different way. Its code shows how to package models, manage downloads and expose a simple local API, which is exactly the product layer many AI tools need.
Hugging Face Transformers is the reference for model architectures. When a paper describes a new attention variant, the implementation there is often the clearest way to see what actually changed.
Which repos help you build AI applications?
LangGraph and LlamaIndex are good study material because they make design choices explicit: how state flows between steps, how retrieval is composed, how failures are retried. You can learn those ideas and still write your own thinner code.
The Model Context Protocol specification and reference servers show how agents discover and call tools. Reading a few servers end to end is the fastest way to write your own.
Cookbooks are underrated. They are maintained by the providers themselves and show current best practice for features such as tool use, prompt caching and structured output, often before blog posts catch up.
- anthropics/anthropic-cookbook and openai/openai-cookbook for practical API patterns
- microsoft/autogen and crewAIInc/crewAI for multi-agent designs
- huggingface/smolagents for a compact agent loop you can read in one sitting
- pydantic/pydantic-ai for typed, structured LLM outputs in Python
How to evaluate a repository before you depend on it
- Check recent commit and release activity, not just the star count.
- Read open issues: are bugs acknowledged and fixed, or piling up?
- Look at the number of active maintainers; a single maintainer is a risk.
- Read the licence file and confirm it fits commercial use.
- Run the quickstart on a clean machine; broken setup instructions are a warning sign.
- Scan dependencies for heavy or abandoned packages.
Common mistakes with GitHub discovery
- Treating stars as a quality score. Stars measure attention, which can come from one viral post.
- Starring hundreds of repos and never opening them again; use lists to organise by purpose.
- Copying code from a repo without checking its licence.
- Following trending pages only, which favour new projects over stable ones.
- Ignoring forks: sometimes the active fork has overtaken the original.
How to keep your list useful
Use GitHub star lists to group repositories by job: inference, RAG, agents, evaluation, tools. Watch releases only for projects you actually run, so notifications stay meaningful.
Once a quarter, prune. Remove projects you have stopped caring about and replace archived ones with their successors.
If you would rather not do the triage yourself, RepoLoot’s catalog hand-analyses open source AI projects, describing what each does and what you could build on it.
Add a one-line note to each list explaining why a repository is there. Months later, that note is what tells you whether it is still worth keeping, and it makes your lists shareable with teammates who are new to the field.
Which repos help with evaluation, serving and data?
Beyond the headline projects, a handful of repositories solve problems that every AI application meets sooner or later: testing outputs, tracing behaviour and preparing data.
| Repository | Area | What it teaches |
|---|---|---|
| langfuse/langfuse | Observability | Tracing, prompt versions and evaluation datasets |
| explodinggradients/ragas | RAG evaluation | Separating retrieval errors from generation errors |
| huggingface/text-generation-inference | Serving | Production model serving patterns |
| unslothai/unsloth | Fine-tuning | Memory-efficient LoRA and QLoRA training |
| unclecode/crawl4ai | Data ingestion | Turning web pages into LLM-ready markdown |
| open-webui/open-webui | Interfaces | A full self-hosted chat product built on local models |
How do you learn from a repository instead of just starring it?
Pick one repository a month and spend a few hours with it. Clone it, run the tests, and trace one request from entry point to output. You will learn more than from reading dozens of READMEs.
Read the most discussed issues and recent pull requests. They show real design trade-offs, what users struggle with, and how maintainers make decisions.
Finally, make one small contribution, such as a documentation fix or a failing test. It forces you to understand the project’s structure and puts you in contact with the people building it.
The list is deliberately short. Each entry is a project that many other tools build on or imitate, so understanding it explains a large part of the ecosystem around it.
Which repos should you star by role?
Not every developer needs every repository. A focused list per role keeps your feed useful and your reading time well spent.
| Role | Start with | Then add |
|---|---|---|
| Application developer | LlamaIndex or LangGraph, MCP servers | promptfoo, Langfuse |
| Infrastructure engineer | vLLM, llama.cpp | Text Generation Inference, LiteLLM |
| ML engineer | Transformers, TRL | Unsloth, lm-evaluation-harness |
| Agent builder | MCP servers, smolagents | LangGraph, browser automation projects |
| Security engineer | garak, LLM Guard | NeMo Guardrails, promptfoo red-team |
What makes a repository worth building a product on?
Building a product on an open source project is a bigger commitment than starring it. You inherit its bugs, its release cadence and its licence obligations.
Look for a clear licence that fits your model, a record of backward-compatible releases, documentation for extension points, and signs of a sustainable maintainer group such as a foundation, a company or several regular contributors.
Check whether the project exposes stable interfaces, such as plugins, APIs or configuration, so you can extend it without maintaining a fork. Forks are expensive: every upstream release becomes a merge job.
Finally, estimate your exit cost. If the project stalls, could you swap it for an alternative in a week, or would it take a rewrite? The answer should shape how deeply you couple your code to it.
The fix for all of these is the same habit: open the repository, read the licence, check recent activity and try the quickstart before you let it into your projects or recommend it to anyone else.
Frequently asked questions
- What GitHub repos should I study to learn AI engineering?
- Start with Hugging Face Transformers for how models are implemented, llama.cpp and vLLM for inference, LlamaIndex or LangGraph for application patterns, and the Model Context Protocol reference servers for agent tooling. Read code and issues, and build a small project with each.
- Are GitHub stars a good measure of quality?
- Only partly. Stars show interest, not maintenance or code quality. Check recent releases, issue response, number of maintainers, test coverage and licence. A modest project with active maintainers can be a safer dependency than a famous but stale one.
- How do I find new AI repositories worth following?
- Follow maintainers of projects you already use, read release notes and changelogs, watch conference talks and papers with code, and use curated catalogs. Trending pages help with discovery but overweight short-term hype, so verify activity before relying on anything.
- Can I use code from these repositories in commercial products?
- It depends on each licence. Permissive licences such as MIT and Apache 2.0 generally allow commercial use with attribution. Copyleft licences such as GPL or AGPL add obligations. Model weights often have separate licences, so check both the code and the weights.