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

Comments

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

Why America needs fewer bus stops

https://www.worksinprogress.news/p/america-has-too-many-bus-stops
1•PaulHoule•17s ago•0 comments

Kubernetes Remote Code Execution via Nodes/Proxy Get Permission

https://grahamhelton.com/blog/nodes-proxy-rce
1•illithid0•1m ago•0 comments

Performance Tips for Fast Iceberg Queries

https://www.dremio.com/blog/5-counter-intuitive-dremio-performance-tips-for-lightning-fast-iceber...
1•mooreds•2m ago•0 comments

Dev visibility for non-technical founders and stakeholders

1•inferno22•2m ago•0 comments

Absolute AppSec – Justin Collins – Managing Security, ProdSec vs. AppSec [audio] [video]

https://www.youtube.com/watch?v=QkxOztMfkoE
1•mooreds•3m ago•0 comments

Show HN: 1Setter – One-click access to macOS system settings from the menu bar

https://www.1setter.app
1•yyqyes•4m ago•0 comments

Draft PR for DX12 Performance Problem with Nvidia/Intel

https://github.com/HansKristian-Work/vkd3d-proton/pull/2805
1•tuananh•6m ago•0 comments

The Rise of the Model Designer

https://www.aidesignfieldguide.com/articles/barron-webster
1•herbertl•9m ago•0 comments

OTelBench: Can AI instrument OpenTelemetry?

https://quesma.com/benchmarks/otel/
2•jakozaur•10m ago•1 comments

Google AI Overviews cite YouTube more than any medical site for health queries

https://www.theguardian.com/technology/2026/jan/24/google-ai-overviews-youtube-medical-citations-...
2•bookofjoe•10m ago•0 comments

Satoshi Kon Sketched Films into Existence

https://animationobsessive.substack.com/p/how-satoshi-kon-sketched-films-into
1•keiferski•10m ago•0 comments

Show HN: Borneo – A full-stack open-source aquarium LED controller

https://github.com/borneo-iot/borneo
1•oldrev•11m ago•0 comments

Major roll out of LaSuite Meet in the French administration

https://github.com/suitenumerique/meet
9•maelito•12m ago•1 comments

CodSpeed CLI: Deterministic benchmarking for any executable

https://github.com/CodSpeedHQ/codspeed
5•art049•12m ago•0 comments

Joint Review: Philosophy Between the Lines, by Arthur M. Melzer

https://www.thepsmiths.com/p/joint-review-philosophy-between-the
1•jger15•13m ago•0 comments

Read This Before Crowdfunding Your Indie Product with Crypto

https://twitter.com/madsmadsdk/status/2015774833674527039
1•madsmadsdk•14m ago•0 comments

TTT-Discover, Learning to Discover at Test Time

https://arxiv.org/abs/2601.16175
1•vinhnx•15m ago•0 comments

Locu – Turn Tasks into Focused Sessions

https://locu.app
1•kraci•15m ago•0 comments

Time Travel (Promise Pipelining)

https://capnproto.org/rpc.html
1•tosh•15m ago•0 comments

Pagy: Best Pagination Ruby Gem

https://github.com/ddnexus/pagy
1•nateb2022•18m ago•0 comments

Tech workers were mistaken for ICE agents, accosted by anti-ICE protesters

https://alphanews.org/exclusive-tech-workers-say-they-were-mistaken-for-ice-agents-accosted-by-an...
1•fortran77•19m ago•0 comments

Hive: Outcome driven agent development framework that evolves

https://github.com/adenhq/hive
1•nateb2022•19m ago•0 comments

Show HN: LearnFlow – Learn with visual paths, quizzes, and AI tutor

https://learnflow.makerlabssv.com
1•MakerLabsSv•20m ago•0 comments

How to Make Better Decisions

https://substack.com/home/post/p-185456508
1•RJagiasi•22m ago•0 comments

Send2kindle, a CLI util to send documents to your Kindle

https://github.com/carlos-menezes/send2kindle
1•carlos-menezes•22m ago•0 comments

Show HN: Bird – Turn any website into an isolated desktop app

https://github.com/nsz32/bird
2•nsz32•22m ago•0 comments

I'm Done (Laracast)

https://www.youtube.com/watch?v=g_Bvo0tsD9s
1•dilawar•23m ago•0 comments

U.S. carrier strike group enters Middle East region

https://www.cbsnews.com/news/us-carrier-strike-group-middle-east-region-iran/
2•mhb•24m ago•0 comments

Monster Neutrino Could Be a Messenger of Ancient Black Holes

https://www.quantamagazine.org/monster-neutrino-could-be-a-messenger-of-ancient-black-holes-20260...
1•Ygg2•26m ago•0 comments

Apple introduces new AirTag with longer range and improved findability

https://www.apple.com/newsroom/2026/01/apple-introduces-new-airtag-with-expanded-range-and-improv...
4•meetpateltech•26m ago•1 comments