list all your starred repositories into a single, markdown-formatted page
  • Go 97.7%
  • Dockerfile 2.3%
Find a file
cai. fda39f08bd
Merge pull request #91 from caian-org/chore/harmonize-baseline
chore: harmonize with caian-org baseline
2026-05-26 17:50:21 -03:00
.claude docs: AGENTS.md + CLAUDE.md, .claude/.codex agents and skills 2026-05-26 17:14:22 -03:00
.codex docs: AGENTS.md + CLAUDE.md, .claude/.codex agents and skills 2026-05-26 17:14:22 -03:00
.github Merge dependabot PR #89: bump golangci/golangci-lint-action to v9 2026-05-26 17:48:33 -03:00
cmd/lgs feat: restructure into cmd/lgs + internal packages 2026-05-26 17:14:01 -03:00
internal feat: restructure into cmd/lgs + internal packages 2026-05-26 17:14:01 -03:00
testdata/golden feat: restructure into cmd/lgs + internal packages 2026-05-26 17:14:01 -03:00
.dockerignore build: replace Makefile with devbox + just + goreleaser 2026-05-26 17:14:01 -03:00
.editorconfig build: replace Makefile with devbox + just + goreleaser 2026-05-26 17:14:01 -03:00
.envrc build: replace Makefile with devbox + just + goreleaser 2026-05-26 17:14:01 -03:00
.gitignore build: replace Makefile with devbox + just + goreleaser 2026-05-26 17:14:01 -03:00
.golangci.yml fix(ci): bump golangci-lint to v2 (compatible with Go 1.26) 2026-05-26 17:17:31 -03:00
.goreleaser.yaml ci: publish multi-arch docker image via build-push-action 2026-05-26 17:47:14 -03:00
.justfile build: replace Makefile with devbox + just + goreleaser 2026-05-26 17:14:01 -03:00
AGENTS.md docs: AGENTS.md + CLAUDE.md, .claude/.codex agents and skills 2026-05-26 17:14:22 -03:00
CLAUDE.md docs: AGENTS.md + CLAUDE.md, .claude/.codex agents and skills 2026-05-26 17:14:22 -03:00
devbox.json build: replace Makefile with devbox + just + goreleaser 2026-05-26 17:14:01 -03:00
Dockerfile ci: publish multi-arch docker image via build-push-action 2026-05-26 17:47:14 -03:00
go.mod feat: restructure into cmd/lgs + internal packages 2026-05-26 17:14:01 -03:00
go.sum feat: restructure into cmd/lgs + internal packages 2026-05-26 17:14:01 -03:00
icon.svg docs: add README page 2021-11-26 00:47:07 -03:00
LICENSE chore: add LICENSE 2021-11-22 20:22:21 -03:00
README.md docs: AGENTS.md + CLAUDE.md, .claude/.codex agents and skills 2026-05-26 17:14:22 -03:00

CI Release GitHub tag

list-github-stars

Tiny CLI program capable of retrieving a GitHub user's starred repositories and formatting the data into a nice Markdown document. You can see an example of the program's output here.

Usage

Authentication is made via personal access tokens. Create a token, export it to the environment variable GITHUB_TOKEN, and run. Output is written to STDOUT:

./bin/lgs > my-stars.md

Flags:

  • --token, -t — GitHub PAT (defaults to $GITHUB_TOKEN).
  • --user, -u — list a different user's stars (defaults to the authenticated user).
  • --version, -v — print version, commit, and build timestamp.

You can use external programs such as pandoc to convert the output to other formats:

# MS Word document
./bin/lgs | pandoc -o stars.docx

# HTML page
./bin/lgs | pandoc -o stars.html

# HTML page with custom stylesheet
./bin/lgs | pandoc -o stars.html --self-contained --css=style.css

Run with Docker

Images are published to GitHub Container Registry:

docker run --rm \
    -e GITHUB_TOKEN="your-github-auth-token" \
    ghcr.io/caian-org/list-github-stars:latest > my-stars.md

Build from source

This repo uses devbox + just. Inside devbox shell:

just build lgs              # produces ./bin/lgs
./bin/lgs --version

Common targets:

just test                   # go test ./...
just test-race              # go test ./... -race
just lint                   # go vet ./...
just release-check          # goreleaser check
just release-snapshot       # local goreleaser dry-run into dist/

Releases

Releases are tag-driven. Pushing a v* tag runs .github/workflows/release.yml, which uses GoReleaser to publish:

  • Multi-platform archives (linux/darwin/windows × amd64/arm64) attached to a GitHub Release.
  • A Docker image to ghcr.io/caian-org/list-github-stars:<tag> and :latest.

A daily-run workflow rewrites a public gist with fresh output every day at 03:00 UTC, consuming the :latest image.

License

To the extent possible under law, Caian Ertl has waived all copyright and related or neighboring rights to this work. In the spirit of freedom of information, I encourage you to fork, modify, change, share, or do whatever you like with this project! ^C ^V

License