Show HN: pdfdark.com – view pdf's in "dark mode" all on client (pdfdark.com)
I wanted a way to read PDFs at night and not burn my retinas out so I whipped together this super simple website with Claude to solve my problem.
It uses Mozilla's pdf.js library to load and render a PDF and then inverts the colors with CSS. It has basic controls like zoom in, zoom out, reset zoom, previous and next page. There are some keyboard shortcuts that you can find by toggling the "q" key.
12 comments
[ 10.7 ms ] story [ 1151 ms ] threadIf interested, I am willing to look for it, might be someone I follow.
There are also alternative frontends[2] that support dark mode, like a sibling comment mentioned.
Though it would be nice if the native theme at least respected the user's `prefers-color-scheme` setting.
[1]: https://github.com/pyxelr/hacker-news-bluish-gray
[2]: https://github.com/cheeaun/awesome-hacker-news#web