Skip to content

Catalogue site, real example output, README visuals - #1

Merged
Mattbusel merged 2 commits into
mainfrom
site-and-showcase
Sep 25, 2026
Merged

Mattbusel merged 2 commits into
mainfrom
site-and-showcase

Conversation

@Mattbusel

@Mattbusel Mattbusel commented Sep 25, 2026 •

Copy link
Copy Markdown
Owner

Makes llm-cpp the front door for the whole family of 26 headers.

What changed

  • Pages site in docs/: a catalogue of all 26 libraries. You can filter by group and by what each one needs (none or libcurl), or use the "I want to..." shortcuts. Each card shows the header's real line count and its implementation macro, plus a copy-curl button. Tick headers and the install section writes the fetch loop, one *_IMPLEMENTATION file per header, and the build line. It adds -lcurl only when something you picked needs it. There are six tabs of real code next to real output, a diagram showing that copying one file is the whole install, and every header drawn to scale by line count. No external fonts, no trackers, light and dark.
  • examples/offline/: complete programs for llm-cache, llm-cost, llm-guard, llm-format, llm-json and llm-compress, with their output committed. The output was captured with MSVC 19.44. CI now downloads each library's current header, builds every example with g++, and diffs the output against the committed files. The g++ output matched MSVC byte for byte on the first run.
  • tools/build_site.py rebuilds the site from tools/libraries.json (the README tables plus line counts) and the examples. A second CI job fails if docs/index.html drifts.
  • README: a banner in light and dark variants (the real llm_cache.hpp plus a terminal fetching, compiling and running it), a link to the site, the one-file diagram, a new "Real output, no API key" section and a verified linking note. All of today's accurate content is kept.
  • .github/social-preview.png (1280x640), also served as the site's og:image.

Checked today: all 26 implementations, each in its own .cpp, compile and link into one binary (MSVC 19.44 x64 + vcpkg libcurl).

Before / after (README)

Before After (light) After (dark)
before after after dark

Site

site 1440

site at 390px, dark

- docs/: GitHub Pages catalogue of all 26 headers (filter by group and
  dependency, recipe shortcuts, install-command builder), six offline
  examples with their captured MSVC output, one-file diagram
- examples/offline: cache, cost, guard, format, json, compress; CI builds
  them with g++ against each library's current header and diffs output
- tools/build_site.py regenerates the site; CI checks it is up to date
- README: banner, one-file diagram, example image, link to the site
@Mattbusel
Mattbusel merged commit 848f806 into main Sep 25, 2026
2 checks passed
@Mattbusel
Mattbusel deleted the site-and-showcase branch September 25, 2026 22:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant