frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

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

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

Comments

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

Defold editor scripting in 1.10.4: scene editing

https://defold.com/2025/07/11/editor-scripting-update/
1•vlaaad•42s ago•0 comments

When AI Codes, What's Left for Me?

https://corecursive.com/coding-agents/
1•ibobev•1m ago•0 comments

How do you keep meetings productive and cost-effective?

https://capdrainapp.com
1•ronny_rebellion•1m ago•1 comments

Atopile – design circuit boards fast – with code

https://atopile.io/atopile/introduction
1•poly2it•2m ago•0 comments

Show HN: HNping 'remind me later' for HN via web push

https://hnping.com/
1•Galorious•12m ago•0 comments

Reading Neuromancer for the first time in 2025

https://mbh4h.substack.com/p/neuromancer-2025-review-william-gibson
1•keiferski•19m ago•0 comments

Who Is Pope Leo?

https://www.americamagazine.org/faith/2025/07/10/who-pope-leo-robert-prevost-251107
1•joules77•19m ago•0 comments

Leading your engineers towards an AI-assisted future

https://blog.thepete.net/blog/2025/06/26/leading-your-engineers-towards-an-ai-assisted-future/
1•r4um•24m ago•0 comments

Thoughts on Motivation and My 40-Year Career

https://charity.wtf/2025/07/09/thoughts-on-motivation-and-my-40-year-career/
1•r4um•25m ago•0 comments

Assumptions

http://theprogrammersparadox.blogspot.com/2025/07/assumptions.html
1•r4um•26m ago•0 comments

Sega Enterprises Ltd. vs. Accolade, Inc., 977 F.2d 1510 (9th Cir. 1992)

https://en.wikipedia.org/wiki/Sega_v._Accolade
1•Bluestein•31m ago•0 comments

UK graduates share their job-hunting woes amid the AI fallout

https://www.theguardian.com/money/2025/jul/13/student-debt-graduates-share-job-hunting-woes-ai-fallout
3•mykowebhn•35m ago•0 comments

Nearly two-thirds of UK workers turning to drink because of job pressures

https://news.sky.com/story/nearly-two-thirds-of-uk-workers-turning-to-drink-because-of-job-pressures-survey-says-13395997
3•austinallegro•38m ago•0 comments

Gmail AI hallucinates, distorts email contents

https://www.t-online.de/digital/aktuelles/id_100811852/gmail-fantasiert-googles-mail-programm-verfaelscht-fremde-inhalte.html
5•disentanglement•39m ago•0 comments

Show HN: TXT OS – Open-Source AI Reasoning, One Plain-Text File at a Time

https://github.com/onestardao/WFGY/tree/main/OS
7•TXTOS•44m ago•2 comments

Empirical evidence of LLM's influence on human spoken communication

https://arxiv.org/abs/2409.01754
3•ransom_rs•45m ago•1 comments

I built Findly.tools – a successor to 1000.tools

https://findly.tools/
1•drdruide•46m ago•1 comments

A (Limited) Defence of Footnotes

https://www.kryogenix.org/days/2025/07/03/a-limited-defence-of-footnotes/
2•jruohonen•50m ago•0 comments

Retrieval Embedding Benchmark

https://huggingface.co/spaces/embedding-benchmark/RTEB
2•fzliu•52m ago•0 comments

Stop memoizing Hash lookups in Ruby

https://nithinbekal.com/posts/ruby-hash-memoization/
2•thunderbong•53m ago•0 comments

Summary of Bluesky Whitepaper

https://twitter.com/RealmOfSoftware/status/1904941497910505833
1•krsoninikhil•53m ago•0 comments

Vibe-Engineering: When AI Does All the Coding, What Do We Do?

https://img.ly/blog/vibe-engineering-when-ai-does-all-the-coding-what-do-we-actually-do/
2•tosh•54m ago•0 comments

Show HN: We developed an AI tool to diagnose car problems

https://autoai.help
3•mariyan250•56m ago•0 comments

Ask HN: I own wtf.store -what to build that makes people say WTF (in gud way)?

2•deep_thinker26•57m ago•1 comments

Windows Update forced new version of Chengjie which is unusable to users

https://old.reddit.com/r/Windows11/comments/1lvelyb/warning_to_windows_11_24h2_chengji_users_for_july/
2•charlieyu1•58m ago•1 comments

Moiré materials based on M-point twisting

https://www.nature.com/articles/s41586-025-09187-5
2•Bluestein•59m ago•0 comments

Iota Legacy Migration Tool Issue

https://old.reddit.com/r/Iota/comments/1kx02eb/iota_legacy_migration_tool_issue/
1•Bluestein•1h ago•0 comments

Turns out you can just hack any train in the USA

https://twitter.com/midwestneil/status/1943708133421101446
6•lyu07282•1h ago•2 comments

Kawase Hasui Catalogue

https://mokuhanga1.com/kawase-hasui/
1•vinhnx•1h ago•0 comments

Trump announces 30% tariffs on EU and Mexico, starting Aug. 1

https://www.cnbc.com/2025/07/12/trump-tariffs-european-union-eu-mexico-trade.html
5•kamaraju•1h ago•5 comments