jc news is a script that summarizes the top 20-ish posts on hacker news, then prints to a printer on your local network! the hacker news(paper).
this can be run easily via uvx if you have uv installed.
# make sure we have a printer
uvx --from git+https://github.com/thejchap/jc-news jc-news list-printers
# dry run pdf generation
uvx --from git+https://github.com/thejchap/jc-news jc-news run --dry-run=pdf
# print it!
uvx --from git+https://github.com/thejchap/jc-news jc-news runyou need to either be logged in to claude code via a pro account,
or have an ANTHROPIC_API_KEY environment variable set.
the script uses the anthropic api for summarization.
prs welcome
# run the tests
uv run tryke test
# run the type checker
uv run ty check
# linting/formatting
uv run ruff check
uv run ruff format --check
# or...
uvx prek -a