frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

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

https://t128n.github.io/routr/
2•trbndev•1y ago

Comments

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

Show HN: Let your coding agent iterate by seeing the browser

https://github.com/puffinsoft/peek-cli
1•G3819•1m ago•0 comments

Quintile – keyboard N×M grid tiling for macOS

https://github.com/stefanopineda/quintile
1•stefanopineda•2m ago•0 comments

Universal Learning of Nonlinear Dynamics

https://arxiv.org/abs/2508.11990
1•E-Reverance•3m ago•0 comments

Collections: How to Polis, 101, Part I: Component Parts

https://acoup.blog/2023/03/10/collections-how-to-polis-101-part-i-component-parts/
1•vinnyglennon•4m ago•0 comments

Matthew Effect

https://en.wikipedia.org/wiki/Matthew_effect
1•chistev•4m ago•0 comments

Nuts News

https://news.nuts.services/
1•kordlessagain•13m ago•0 comments

Australia Tops Claude Usage

https://www.forbes.com.au/news/innovation/australia-is-the-worlds-biggest-claude-user-now-anthrop...
1•ishanz•19m ago•0 comments

AI's Biggest Unlock Isn't Productivity. It's Access to Expertise

https://diviv.substack.com/p/ais-biggest-unlock-isnt-productivity
1•divi_vijay•20m ago•0 comments

Mushroom trip: a mycologist's tour of the Tarkine

https://www.theguardian.com/science/ng-interactive/2026/jul/13/mushroom-trip-a-mycologists-tour-o...
1•Anon84•20m ago•0 comments

Sam Altman and Elon Musk Argue over Who's Running the Bigger Scam

https://daringfireball.net/linked/2026/07/12/altman-musk
6•MaysonL•22m ago•0 comments

Quantum Mechanics May Not Need Imaginary Numbers After All

https://scitechdaily.com/quantum-mechanics-may-not-need-imaginary-numbers-after-all/
1•westurner•23m ago•0 comments

Billion Dollar PDFs

https://billiondollarpdf.com/
1•rafaepta•23m ago•0 comments

OneDev AI: Coding Agents as Teammates in Issues, Pull Requests, and CI

https://onedev.io/blogs/ai-teammates
2•timplant•25m ago•0 comments

Student's £30 device 'translates in real time'

https://www.bbc.com/news/articles/ced47540de2o
3•jethronethro•25m ago•0 comments

Circular Obstacle Pathfinding (2017)

https://redblobgames.github.io/circular-obstacle-pathfinding/
1•andsoitis•26m ago•0 comments

Deployment is All You Need: The case for deployment engineering

https://cephos.substack.com/p/deployment-is-all-you-need
2•ism-cep•32m ago•0 comments

Show HN: WA State Tolls tool that shows the best time to take it to save money

https://watolls.danielsada.tech/
1•dshacker•35m ago•0 comments

Micro-JavaScript: A pure Python JavaScript engine, inspired by MicroQuickJS

https://github.com/simonw/micro-javascript
1•nz•46m ago•0 comments

Rashidieh

https://en.wikipedia.org/wiki/Rashidieh
2•vinnyglennon•48m ago•0 comments

AI agent startup uses agent to lead 100M round

https://techcrunch.com/2026/07/09/an-ai-agent-startup-just-let-its-agent-run-its-100-million-fund...
2•noashavit•53m ago•0 comments

Lindsey Graham Dead at 71

https://www.economist.com/united-states/2026/07/12/lindsey-graham-represented-the-arc-of-his-party
4•andsoitis•54m ago•1 comments

Show HN: Hologram, photo management and culling built with Tauri

https://github.com/ThatXliner/Hologram
1•thatxliner•58m ago•0 comments

2028 Could Bring the Most Mind-Bendingly Expensive Apple Product of All Time

https://gizmodo.com/2028-could-bring-the-most-mind-bendingly-expensive-apple-product-of-all-time-...
3•megamike•1h ago•2 comments

The cost of AI-assisted development: cognitive fatigue

https://warpedvisions.org/blog/2025/hitting-the-wall-at-ai-speed/
3•winter_blue•1h ago•0 comments

How to Get What You Want

https://andys.blog/how-to-get-what-you-want/
9•andytratt•1h ago•0 comments

Amicro: Micro-Transitions Library

https://amicro.vercel.app/
2•handfuloflight•1h ago•0 comments

Argocd-AI-Assistant

https://github.com/saidsef/argocd-ai-assistant
2•saidsef•1h ago•0 comments

Physicists recreate black hole energy extraction in the lab

https://www.sciencedaily.com/releases/2026/07/260711010120.htm
4•stonlyb•1h ago•0 comments

Grok 4.5 and GPT5.6 beat Anthropic for finding security vulnerabilities in PRs

https://docs.damsecure.ai/blog/pr-review-security-benchmark/
6•pcollins123•1h ago•1 comments

Designing and assembling my first PCB

https://vilkeliskis.com/b/2026/0711.html
15•tadasv•1h ago•2 comments