frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: routr - a fast local replacement for DuckDuckGo bangs

https://t128n.github.io/routr/
2•trbndev•11mo ago

Comments

trbndev•11mo ago
routr is a lightweight, offline search router inspired by DuckDuckGo's bangs. It's fully browser-based (no server requests needed other than the initial one) and routes queries like `!gh tokio` to GitHub, `!yt` to YouTube, `!hn` to Hacker News, etc.

What sets it apart:

- Runs entirely locally (no network, no tracking)

- Lets you define your own bangs and destinations

- Optionally rewrites queries for better precision (with AI)

Example:

Typing `article about german war in the stone age !!g` becomes: `site:en.wikipedia.org "german" AND "war" AND "stone age"`

More on query rewriting and performance:

https://tl128n.github.io/writings/2025-05-02_optimizing_sear...

Leftium•11mo ago
That link is broken. Correct link: https://t128n.github.io/writings/2025-05-02_optimizing_searc...
trbndev•11mo ago
Ah damn what a bummer that I can‘t edit the original comment anymore. Thank you for pointing it out… didn‘t even see that extra `l` there in the url
Leftium•11mo ago
> Typing `article about german war in the stone age !!g` becomes: `site:en.wikipedia.org "german" AND "war" AND "stone age"`

I wonder how much of that could be done without AI, just (locally) using https://www.npmjs.com/package/compromise

---

Also I couldn't find your source for bang data; Kagi maintains an updated list: https://github.com/kagisearch/bangs

I'm working on an enhanced version of bangs. Since there are so many "dead" bangs, I'm thinking of using a bang whitelist and suggestions from the full list if not found in the whitelist.

trbndev•11mo ago
What an interesting library. Thanks for mentioning it here… will definitely look into it!

—-

The bangs are at

https://github.com/t128n/routr/blob/main/src/sw/routes.ts

Mostly ripped from duckduckgo.com/bang.js and then pretty-formatted with Prettier… with some sane-defaults added like a bang for ChatGPT or T3 Chat

Leftium•11mo ago
Related project (also works locally):

- https://unduck.link/

- https://github.com/t3dotgg/unduck

- https://youtu.be/_DnNzRaBWUU

---

Note unduck works without service workers: https://github.com/t3dotgg/unduck/blob/91a66c25de8b0e7ac5ba5...

Is there any advantage to using service workers?

edit: Ah... unduck doesn't work from the browser search bar.

trbndev•11mo ago
Unduck actually also uses service workers to cache the app locally

https://github.com/t3dotgg/unduck/blob/91a66c25de8b0e7ac5ba5...

—-

> Is there any advantage to using service workers?

With service workers we can intercept the `fetch` request, before the index.html gets rendered/loaded. One should (in theory) be redirected some micro-seconds faster than doing the redirect in the index.html js

Top takeaways from scanning 1M domains

https://dialtoneapp.com/2026/april/top-10-takeaways-from-scanning-1M-domains
1•fcpguru•58s ago•0 comments

Essentail Transitions for Web Apps

https://transitions.dev/
1•jakubkubo•2m ago•0 comments

Teardown of AlphaFold codebase with a AST-free LLM-free static analysis engine

https://squid-protocol.github.io/gitgalaxy/museum-of-code/alphafold_teardown.html
1•squid-protocol•2m ago•1 comments

Show HN: Plate – The fastest way to run projects without becoming a PM tool

https://plate.to
5•losteden1•8m ago•0 comments

The next phase of the Microsoft OpenAI partnership – OpenAI

https://openai.com/index/next-phase-of-microsoft-partnership/
4•helsinkiandrew•10m ago•1 comments

Sophie's Grids

https://solhsa.com/oldernews2026.html#SOPHIE-S-GRIDS
1•ibobev•10m ago•0 comments

A tool to turn unstructured financial news into actionable insights

https://newsfinanceai.com/landing-page/
1•globalbiz•10m ago•0 comments

Making UIs like text adventure games

https://en.andros.dev/blog/b5ba872a/making-uis-like-text-adventure-games/
1•ibobev•11m ago•0 comments

Building a Hamiltonian Path Puzzle

https://www.4rknova.com//blog/2026/04/24/number-trail
1•ibobev•11m ago•0 comments

Microsoft to Stop Sharing Revenue with Main AI Partner OpenAI

https://www.bloomberg.com/news/articles/2026-04-27/microsoft-to-stop-sharing-revenue-with-main-ai...
5•helsinkiandrew•11m ago•3 comments

Show HN: News metadata dataset for media bias research

https://www.kaggle.com/datasets/neutralnewsai/nnai-news-metadata-dataset-7k
1•MarcellLunczer•13m ago•0 comments

Fructose malabsorption increases anxiety in male human and animal models

https://www.sciencedirect.com/science/article/abs/pii/S0889159125004635
1•geox•14m ago•0 comments

Crypto scam lures ships into Strait of Hormuz, falsely promising safe passage

https://arstechnica.com/security/2026/04/crypto-scam-lures-ships-into-strait-of-hormuz-falsely-pr...
3•rbanffy•16m ago•1 comments

The next phase of the Microsoft-OpenAI partnership

https://blogs.microsoft.com/blog/2026/04/27/the-next-phase-of-the-microsoft-openai-partnership/
2•mfiguiere•17m ago•0 comments

In Memoriam: Car Hoare – Communications of the ACM

https://cacm.acm.org/news/in-memoriam-c-a-r-hoare/
1•furcyd•18m ago•0 comments

Atlas, A desktop command hub for juggling many local Git repos

1•amrebada•18m ago•0 comments

Otterwiki – minimalistic wiki powered by Python, Markdown and Git

https://otterwiki.com/
1•amai•18m ago•0 comments

CIA ran MK-Ultra experiments on prisoners of war declassified docs confirm

https://theintercept.com/2026/04/26/mk-ultra-korean-war-prisoner-experiments/
3•Teever•19m ago•0 comments

Show HN: DAG-chat – DAG-based AI chat app with branch and merge

https://github.com/ZM-BAD/DAG-chat
1•zm_bad•19m ago•0 comments

Swissing a Table

https://philpearl.github.io/post/swissing_a_table/
1•birdculture•20m ago•0 comments

Silicon Valley has forgotten what normal people want

https://www.theverge.com/tldr/915176/nft-metaverse-ai-weirdos
3•robtherobber•20m ago•0 comments

We Are (Still) Living in the Long Boring

https://freddiedeboer.substack.com/p/we-are-still-living-in-the-long-boring
1•flail•22m ago•0 comments

Bohrdom (Game by Cole Allen)

https://store.steampowered.com/app/945530/Bohrdom/
2•nonfamous•22m ago•0 comments

OpenAI CEO Apologizes for Not Flagging Mass Shooting Suspect to Police

https://www.wsj.com/us-news/law/openai-ceo-apologizes-for-not-flagging-mass-shooting-suspect-to-p...
2•fortran77•22m ago•1 comments

Tim Cook Is Leaving. Good

https://routerjockey.com/tim-cook-is-leaving-good/
9•tonhe•22m ago•3 comments

AI Chatbots: Last Week Tonight with John Oliver [video]

https://www.youtube.com/watch?v=Ykvf3MunGf8
2•cdrnsf•25m ago•0 comments

Tokenmaxxing and the search for AI metrics that matter

https://leaddev.com/ai/tokenmaxxing-and-the-search-for-ai-metrics-that-matter
2•tonkkatonka•26m ago•1 comments

OpenAI shakes up partnership with Microsoft, capping revenue share

https://www.cnbc.com/2026/04/27/openai-microsoft-partnership-revenue-cap.html
2•mfiguiere•26m ago•0 comments

Ubuntu Linux Will Begin Landing AI Features Throughout the Next Year

https://www.phoronix.com/news/Ubuntu-AI-Features-2026
4•goldenarm•27m ago•3 comments

A bank robber's cellphone gave him away. Now the case is at the Supreme Court

https://apnews.com/article/supreme-court-geofence-warrants-unreasonable-searches-constitution-a61...
2•smurda•28m ago•0 comments