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•10mo ago

Comments

trbndev•10mo 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•10mo ago
That link is broken. Correct link: https://t128n.github.io/writings/2025-05-02_optimizing_searc...
trbndev•10mo 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•10mo 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•10mo 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•10mo 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•10mo 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

Zsh Completions for Gleam

https://github.com/giacomocavalieri/zsh_gleam_completions
1•TheWiggles•53s ago•0 comments

Both the World and Capital Markets Feel Similar to 2006

https://www.joshuakennon.com/both-the-world-and-capital-markets-feel-strangely-similar-to-2006/
1•walterbell•1m ago•0 comments

20020: The Future of College Football

https://www.sbnation.com/c/secret-base/21410129/20020
1•stefanpie•2m ago•0 comments

The Impact of Dating Apps on Young Adults: Evidence from Tinder

https://www.aeaweb.org/articles?id=10.1257/app.20240455
1•mhb•3m ago•0 comments

Show HN: Telegram Bridges for Gemini CLI and Codex

https://github.com/0xkaz/codex-gemini-telegram-bridge
1•0xkaz•3m ago•0 comments

Show HN: Gamekeeper – Discord bot for on-demand Hetzner dedicated game servers

https://github.com/filipkrw/gamekeeper
1•filipkrw•3m ago•0 comments

Founder of GitLab battles cancer by founding companies

https://sytse.com/cancer/
2•bob_theslob646•4m ago•0 comments

Show HN: Grimoire – A lightweight, open-source WoW addon manager

https://github.com/hbackman/grimoire
1•hbackman•5m ago•0 comments

LLM-Tainted Free Software and Alternatives

https://codeberg.org/small-hack/open-slopware#tainted-softwarehttps://codeberg.org/small-hack/ope...
2•replooda•14m ago•1 comments

Show HN: UBPE – a universal BPE tokenizer, optimized and rethought

https://github.com/Scurrra/ubpe
1•Scurrra•17m ago•0 comments

What Comes After the Pull Request

https://systemsignal.ai/stories/what-comes-after-the-pull-request
1•thenoahhein•20m ago•0 comments

Cortex Coding Agent in Chrome, Edge, Firefox

https://pervaziv.com/cortex/
1•asmprogrammer5•23m ago•1 comments

From the Rooftops of Tehran

https://www.nybooks.com/online/2026/03/27/from-the-rooftops-of-tehran/
1•mitchbob•24m ago•1 comments

Michael Mosley: 'Forget walking 10k steps a day' (2018)

https://www.bbc.com/news/health-42864061
1•thunderbong•25m ago•0 comments

Ask HN: Is it just me?

2•twoelf•26m ago•0 comments

The Porsche Diffusion

https://blog.est.im/2026/stdin-09
2•est•26m ago•0 comments

Anthony Leggett pushed the boundaries of quantum physics

https://www.newscientist.com/article/2521212-how-anthony-leggett-pushed-the-boundaries-of-quantum...
1•Brajeshwar•28m ago•0 comments

How ICE's Surveillance System Works [video]

https://www.youtube.com/watch?v=aRUhgrqnpGY
2•lisper•28m ago•0 comments

The Unseen Work of One of Iran's Greatest Filmmakers

https://www.newyorker.com/magazine/2026/04/06/mani-haghighi-movie-review
2•mitchbob•31m ago•1 comments

Brave Browser Multi-Account Container (Firefox)

https://twitter.com/BraveNightly/status/2037928854447169912
2•ahmetcadirci25•31m ago•0 comments

Electrofluidic Fiber Muscles: Artificial Muscle Fibers for Robots and Wearables

https://www.media.mit.edu/projects/electrofluidicmuscle/overview/
3•gryfft•31m ago•1 comments

NASA releases new Webb, Hubble images of Saturn

https://science.nasa.gov/missions/webb/nasa-webb-hubble-share-most-comprehensive-view-of-saturn-t...
2•dryadin•33m ago•0 comments

Mark Zuckerberg appears on CNBC to discuss a social network (2004) [video]

https://www.facebook.com/reel/10153395251424369/
1•chistev•34m ago•1 comments

Show HN: Tracetics – Funnel analytics for developers via REST API

https://tracetics.com
1•SArndt•34m ago•0 comments

Performance of 5k German fighter pilots and effort to gain the Knight's Cross

https://klementoninvesting.substack.com/p/nazis-are-people-too
1•stared•34m ago•0 comments

One API call for KYC: lessons from 100M+ verifications

https://www.signzy.com/our-innovations/one-touch-kyc
1•merobin_hood•35m ago•0 comments

Ask HN: Enabling Non-Protected VMS for Android Terminal for Samsung S26 Ultra

1•mbana•37m ago•0 comments

AI wrote a scientific paper that passed peer review

https://www.scientificamerican.com/article/ai-wrote-a-scientific-paper-that-passed-peer-review/
1•Brajeshwar•38m ago•0 comments

Controlling Lego Trains with AI and Larger Implications

https://hkelkar.com/2026/01/02/controlling-lego-trains-with-ai-larger-implications/
1•hvd•39m ago•0 comments

The Rise and Fall of ICE-Tracking Apps

https://www.newyorker.com/news/the-lede/the-rise-and-fall-of-ice-tracking-apps
1•mitchbob•39m ago•1 comments