[HN Gopher] Show HN: Bring-your-own-key browser extension for su...
___________________________________________________________________
Show HN: Bring-your-own-key browser extension for summarizing HN
posts with LLMs
Hi Hacker News, I developed an open source browser extension for
summarizing Hacker News articles with OpenAI and Anthropic LLMs. It
currently supports Chrome [1] and Firefox [2] (desktop). The
extension adds the summarize buttons to the HN front page and
article pages. It is bring-your-own-key, i.e. there's no back end
behind it and the usage is free, you insert your API key and pay
only for tokens to your LLM provider. [1]
https://chromewebstore.google.com/detail/hacker-news-tldr/oo...
[2] https://addons.mozilla.org/ru/firefox/addon/hacker-news-tl-d...
Author : ivanyu
Score : 42 points
Date : 2024-12-12 17:29 UTC (5 hours ago)
(HTM) web link (github.com)
(TXT) w3m dump (github.com)
| nickthegreek wrote:
| Would be nice to be able to provide your own endpoint so it could
| be directed to a local llm.
| ivanyu wrote:
| Thanks, good idea, this should be possible.
| freedomben wrote:
| That would be a pretty killer feature IMHO. Ollama's API is
| pretty straightforward:
| https://github.com/ollama/ollama/blob/main/docs/api.md
|
| There is also (or at least used to be?) an OpenAI compatible
| API layer for Ollama so that may be an option as well, though
| my understanding is there are some downsides to using that.
|
| Note: This comment and the link are just meant as
| references/conveniences, not intended as a request for free
| labor. Thanks for opening up the code!
| moffkalast wrote:
| Forget ollama, just changing the URL from openai to your
| local server is enough, llama.cpp has a compatible
| endpoint. Most people just don't bother giving the option
| since you get a CORS error if it doesn't have a valid cert.
| Diti wrote:
| Related: https://news.ycombinator.com/item?id=41810507
| consumer451 wrote:
| This sounds possibly useful, but I just don't trust extensions
| unless I can see the code.
| elpocko wrote:
| https://github.com/ivanyu/hn-tldr-extension
| consumer451 wrote:
| I am an idiot for not looking at OP link. jeez. thanks.
| tsunitsuni wrote:
| I made something similar that works on any link with whatever
| endpoint you want (and has special handling just for HN comments)
| https://github.com/TetraTsunami/linklooker
| alaq wrote:
| I'd love it if it could summarize the HN comments as well.
| androng wrote:
| Related: to save on cost, Hacker News is already summarized and
| available in feed form which I find better than the default front
| page where you have to read the same headlines repeatedly because
| the order of the headlines changes on the front page.
| https://hackernews.betacat.io/ I also dislike how the titles on
| hacker news are so short that often they dont give enough
| information. e.g. headline: "Amazon Penterhorse". What is that??
| that doesn't exist but the point is I have to click through to
| see it and its annoying. And on some posts when I click on some
| links the person's blog post is just way longer than my interest
| level so it doesn't get the point across. These summaries are
| just the right length.
| francasso wrote:
| I just read the summary for "Fermat's Last Theorem - how it's
| going" on that page and it completely missed the point of the
| article
| simonebrunozzi wrote:
| Finally!
|
| I tried to build something like this a few years back [0], I
| thought it was a great idea, but LLMs were not available yet, and
| I was busy with a hundred other things.
|
| You can see an example of the summary there.
|
| [0]: https://github.com/simonebrunozzi/MNMN
| fudged71 wrote:
| I've been pretty happy lately with my setup.
|
| Arc browser lets you hover over a link to show a card that
| summarizes the article.
|
| With Claude Projects, I'm able to quickly build an Arc "Boost"
| User Script for any site, so I have one to export the HN homepage
| to JSON to import into an LLM. And I have one on comment pages to
| do the same. I have a userscript to remove pagination so I can
| infinitely scroll and then export.
|
| Ad I have a Claude Project specifically for
| identifying/categorizing comment threads by the patterns of
| knowledge crystallization etc. It's been fascinating so far.
| ionwake wrote:
| Brilliant, Love it. Excellent execution.
___________________________________________________________________
(page generated 2024-12-12 23:00 UTC)