package starred_ml

  1. Overview
  2. Docs
Generates an Awesome-style markdown list from GitHub stars

Install

dune-project
 Dependency

Authors

Maintainers

Sources

starred_ml-0.0.9.tbz
sha256=4c8349ee2a6b3a83d0cfa632127a0aa7c986a6ade8c310684bb78057c460d5de
sha512=4cf3a0bf10d7467b003063f3336d4be961dcb989145718449301203b944f1fca455d1f816b5a45b5f19aa1ec11266623af3f29dec37b1e522200d412a934d2cc

doc/CHANGES.html

0.0.9

  • Extracted HTTP fetch logic into a dedicated Fetcher module (bin/fetcher.ml), separating it from CLI argument definitions in bin/main.ml.
  • Added terminal progress spinner on stderr showing current page and optional page cap (e.g. / Fetching page 3 of 5...); clears itself when done so stdout redirection (e.g. > out.md) is unaffected.
  • Added post-fetch summary on stderr: pages fetched, repository count, and elapsed time in seconds (e.g. ✓ 5 pages • 487 repositories • 3.2s).
  • Bumped jingoo dependency to >= 1.5.2.
  • Fixed Re2 regex compiled once at module load instead of on every paginated response.
  • Cleaned up github.mli: removed [@@deriving ...] attributes from type declarations and replaced with explicit val signatures for the functions actually used externally, narrowing the public API surface.
  • Added unix to bin/dune library dependencies.
  • Using Eio.Stream to accumulate responses.
  • Added PAGE_SIZE cli parameter.
  • Added --timeout / -T CLI arg (default 600s): per-request timeout in seconds passed to the HTTP fetcher.
  • Added --max-retries / -r CLI arg (default 3): number of retry attempts on transient failures or timeouts.
  • Added per-request timeout and exponential-backoff retry in Http_util.fetch using Eio.Time.Timeout.

0.0.8

  • Replaced deprecated Mirage_crypto_rng_eio.run with Mirage_crypto_rng_unix.use_default from mirage-crypto-rng.unix.
  • Improved error handling: HTTP errors (4xx/5xx) print a clean message; unexpected failures show a full stack trace.
  • Bumped dependencies: eio and eio_main >= 1.3, cohttp-eio >= 6.2.1, mirage-crypto-rng >= 1.2.0, alcotest >= 1.9.1, dune lang 3.21.
  • Updated CI to OCaml 5.4.1.
  • Updated README with development setup instructions.
  • Updated OCaml setup GitHub Actions version.

0.0.7

  • IMPORTANT: now use starred_ml render for rendering the template.
  • Removed slug dependency that was actually not enough for the intention.
  • Encourages raw jingoo filters for encoding urls. As in item.language | urlencode.
  • The dafault.jingoo template now takes a the github repositories (the starred list type) and uses groupby Jingoo's feature to print each repository under the corresponding language.

0.0.6

  • Adds a language_slug attribute to the item (repository being rendered) with the slug of the language.
  • Languages sent to jingoo template now are the slug version of the language.

0.0.5

  • More stable sorting
  • Introduces new template variable owner_login for a more complete link to the starred repo.

0.0.4

  • Added CmdLiner for a smoother experience. The addition is fully compatible with previous TOKEN env var only.
  • Moved some code for better testability, leaving bin for pure execution.
  • Added a bit more tests

0.0.3

  • The generated output was using url of the repo, that points to the GitHub API. This release fixes it by using the proper html_url.
  • Some other small typos were fixed
  • A reference to the template repository using starred_ml was also added

0.0.2

Includes pagination and total language count. See the template.

0.0.1

The very initial release of Starred_ml. This version is intended to help setting up CI but it is working already.

IMPORTANT This release won't use pagination on Github API, fetching only the first page of the starred items.