Skip to content

add Algorithm Visualizer commands: categories, list, search#1

Open
tamnd wants to merge 1 commit into
mainfrom
feat/pr1-commands
Open

add Algorithm Visualizer commands: categories, list, search#1
tamnd wants to merge 1 commit into
mainfrom
feat/pr1-commands

Conversation

@tamnd

@tamnd tamnd commented Jun 16, 2026

Copy link
Copy Markdown
Owner

Implements algorithmvisualizer-cli reading public Algorithm Visualizer data via the GitHub Git Trees API.

Commands

  • categories -- list all algorithm categories with algorithm counts
  • list -- list algorithms, optionally filtered by --category
  • search <query> -- search algorithms by name or category

Notes

Uses the GitHub API for the algorithm-visualizer/algorithms repo
(git/trees?recursive=1). No API key required for public repos, though
unauthenticated requests share the 60 req/h GitHub rate limit. Each
algorithm is a two-level directory under a category. Dot-prefix dirs
and deeper nesting are skipped. Binary is algvis.

Output: table on TTY, JSONL when piped. Supports -o json/jsonl/csv/tsv/url/raw,
--fields, --template, -n.

Wire up list/search/categories commands over GitHub Git Trees API.
Binary renamed to algvis; render, output, errors helpers follow mdpi-cli pattern.
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