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

V2: Quantum information spreading via higher-order operator correlators

https://arxiv.org/abs/2609.05472
1•northlondoner•2m ago•2 comments

The U.S. Army is about to blow up a cache of dangerous lead azide in Iowa–here's

https://www.scientificamerican.com/article/the-u-s-army-is-about-to-blow-up-a-cache-of-dangerous-...
1•bookmtn•2m ago•0 comments

AlphaXiv opens a public preprint server for AI-authored research papers

https://www.alphaxiv.org/
1•pirafrank•4m ago•0 comments

"I can tell you wrote this yourself"

https://em-online.bearblog.dev/i-can-tell-you-wrote-this-yourself/
1•BrunoBernardino•6m ago•0 comments

Testing an AM/FM radio PCB designed by Claude [video]

https://www.youtube.com/watch?v=vyClHoyzAL8
1•ez_mmk•7m ago•0 comments

Show HN: Linear Algebra in a Week

https://linear-algebra-in-a-week.vercel.app/#m1
1•tamnd•10m ago•0 comments

US Approved AI Chip Sales to China's Tencent, Alibaba, Data Show

https://www.bloomberg.com/news/articles/2026-11-19/us-approved-ai-chip-sales-to-china-s-tencent-a...
1•Teever•11m ago•0 comments

Hardcoded Ignorance

https://notes.erlend.sh/3n2ojo3n5yc2m
1•erlend_sh•13m ago•0 comments

Show HN: Bulchimbeon, night watch that keeps your Mac awake while AI agents work

https://github.com/s3onghyun/bulchimbeon
1•s3onghyun•17m ago•0 comments

How Many Books Will You Read Before You Die?

https://lithub.com/how-many-books-will-you-read-before-you-die/
1•austinallegro•22m ago•1 comments

Show HN: Vemlora – Edit text in images while preserving the original design

https://vemlora.io
1•abelce•24m ago•0 comments

Nudeps: Bundler-like imports, none of the baggage

https://lea.verou.me/blog/2026/nudeps/
1•codedrift_•24m ago•0 comments

Is Building in Public Dead?

https://pudlog.substack.com/p/is-building-in-public-dead
3•sarreph•31m ago•0 comments

How the Measles Virus Erases Immunity to Other Diseases

https://www.nytimes.com/2026/11/17/science/measles-virus-immune-system.html
1•ryan_j_naughton•33m ago•1 comments

Show HN: Isu-bench – coding agents tune an unseen web service with 11 load tests

https://isu-bench.trasta.dev/
1•trasta298•33m ago•0 comments

Views of the Same Thing

https://jonathannen.com/views-of-the-same-thing/
1•kqr•34m ago•0 comments

Navigating Excel files, emails and screenshots with agents

https://anaivebidder.com/posts/llm-reconciliation-benchmark/
1•rbnafo•36m ago•1 comments

Former YC President: "Stop!”

https://geoffralston.substack.com/p/stop
4•reducesuffering•36m ago•0 comments

Ask HN: Do you use computer-use heavily?

1•alexandroskyr•36m ago•0 comments

Clojure: Deserialization of Untrusted Data Allows Remote Code Execution

https://github.com/clojure/clojure/security/advisories/GHSA-x4c4-68gp-vrhc
2•andros•37m ago•0 comments

Google Meet Implements Audio Using Mix-Minus with WebRTC

https://www.red5.net/blog/how-google-meet-implements-audio-using-mix-minus-with-webrtc/
1•mondainx•40m ago•0 comments

Gopurs – A Super-Optimized PureScript-to-Go Compiler

https://github.com/0x000000000000000000001/gopurs
1•TheWiggles•41m ago•0 comments

No spy. No temptress. The Nvidia love affair is called RICO

https://www.gregpalast.com/the-so-called-affair-between-the-nvidia-chief-and-the-chinese-spy/
4•MilnerRoute•45m ago•1 comments

How should we evaluate image memory in AI agents?

https://twitter.com/AgentMemoryL/status/2123418533950591252
1•IreneAI•54m ago•0 comments

Design for Understandability

https://jschuster.org/blog/2026/11/19/design-for-understandability/
2•signa11•1h ago•1 comments

The Gervais Principle, or the Office According to "The Office" (2009)

https://ribbonfarm.com/2009/10/07/the-gervais-principle-or-the-office-according-to-the-office/
1•zombot•1h ago•0 comments

Show HN: Sandscale – Cloud infrastructure for AI creators, agents and developers

https://sandscale.dev
1•yasotha•1h ago•0 comments

Show HN: BSWorld – AI agents can now test Bluetooth code without hardware

https://github.com/XiaoMi/bsworld
2•bsworld-runner•1h ago•1 comments

Show HN: Everything else is DOWN while Tokenmobiles stays neutral

https://tokenmobiles.live
1•elykcim•1h ago•0 comments

Wellness check for friends working in cybersecurity

https://www.reddit.com/r/cybersecurity/comments/1xzkwmg/wellness_check_for_friends_working_in/
2•pseudohadamard•1h ago•2 comments