single-header

Open repos and models their makers tagged single-header, most starred first. The same for everyone.

AI on my own machineRepo

llm-stream

Single-header C++17 client for streaming OpenAI and Anthropic chat responses token by token over SSE, with per-token callbacks and tokens-per-second stats. Only needs libcurl.

  • 4
  • C++
  • MIT
  • 2 d ago
MattbuselTake it
AI on my own machineRepo

llm-vision

Single-header C++17 client for vision LLMs: send local images (base64) or URLs with a prompt to OpenAI or Anthropic and get the answer back, blocking or streamed. Only needs libcurl.

  • 2
  • C++
  • MIT
  • 2 d ago
MattbuselTake it
AI on my own machineRepo

llm-trace

Single-header C++17 tracing for LLM pipelines: RAII spans with parent/child nesting, model, token and cost attributes, a one-line macro, and text or OTLP-style JSON export. No dependencies.

  • 2
  • C++
  • MIT
  • 2 d ago
MattbuselTake it
AI on my own machineRepo

llm-rank

Single-header C++17 reranker for search and RAG: offline BM25 plus keyword scoring, LLM relevance scoring via OpenAI, and a hybrid mode that shortlists locally before paying for the model. Needs libcurl.

  • 2
  • C++
  • MIT
  • 2 d ago
MattbuselTake it
AI on my own machineRepo

llm-rag

Single-header C++17 retrieval-augmented generation: chunk documents, embed them with OpenAI, persist a local vector index, retrieve top-k by cosine similarity and answer with a chat model. Only needs libcurl.

  • 2
  • C++
  • MIT
  • 2 d ago
MattbuselTake it
AI on my own machineRepo

llm-parse

Single-header C++17 document cleaner for LLM pipelines: strip HTML and markdown, extract links, headings and code blocks, normalise text and split it into overlapping chunks. Offline, no dependencies.

  • 2
  • C++
  • MIT
  • 2 d ago
MattbuselTake it
Search GitHub and Hugging Face for single-header

Get , open it once and sign in. Then come back here and press the button again.