package starred_ml
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
Fetchermodule (bin/fetcher.ml), separating it from CLI argument definitions inbin/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
jingoodependency to>= 1.5.2. - Fixed
Re2regex compiled once at module load instead of on every paginated response. - Cleaned up
github.mli: removed[@@deriving ...]attributes from type declarations and replaced with explicitvalsignatures for the functions actually used externally, narrowing the public API surface. - Added
unixtobin/dunelibrary dependencies. - Using Eio.Stream to accumulate responses.
- Added
PAGE_SIZEcli parameter. - Added
--timeout/-TCLI arg (default 600s): per-request timeout in seconds passed to the HTTP fetcher. - Added
--max-retries/-rCLI arg (default 3): number of retry attempts on transient failures or timeouts. - Added per-request timeout and exponential-backoff retry in
Http_util.fetchusingEio.Time.Timeout.
0.0.8
- Replaced deprecated
Mirage_crypto_rng_eio.runwithMirage_crypto_rng_unix.use_defaultfrommirage-crypto-rng.unix. - Improved error handling: HTTP errors (4xx/5xx) print a clean message; unexpected failures show a full stack trace.
- Bumped dependencies:
eioandeio_main>= 1.3,cohttp-eio>= 6.2.1,mirage-crypto-rng>= 1.2.0,alcotest>= 1.9.1,dunelang 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 renderfor rendering the template. - Removed
slugdependency that was actually not enough for the intention. - Encourages raw jingoo filters for encoding urls. As in
item.language | urlencode. - The
dafault.jingootemplate now takes a the github repositories (thestarred listtype) and usesgroupbyJingoo's feature to print each repository under the corresponding language.
0.0.6
- Adds a
language_slugattribute to theitem(repository being rendered) with the slug of the language. - Languages sent to
jingootemplate now are the slug version of the language.
0.0.5
- More stable sorting
- Introduces new template variable
owner_loginfor a more complete link to the starred repo.
0.0.4
- Added CmdLiner for a smoother experience. The addition is fully compatible with previous
TOKENenv var only. - Moved some code for better testability, leaving
binfor pure execution. - Added a bit more tests
0.0.3
- The generated output was using
urlof the repo, that points to the GitHub API. This release fixes it by using the properhtml_url. - Some other small typos were fixed
- A reference to the template repository using
starred_mlwas 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.