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

Comments

trbndev•11mo 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•11mo 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•11mo 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•11mo 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

Exo: Claude Code for your Inbox

https://github.com/ankitvgupta/mail-app
1•jshchnz•1m ago•0 comments

d-HNSW: A High-Performance Vector Search Engine on Disaggregated Memory

https://arxiv.org/abs/2603.13591
1•tanelpoder•2m ago•0 comments

What's New in Flutter 3.41

https://blog.flutter.dev/whats-new-in-flutter-3-41-302ec140e632
1•doctaj•2m ago•0 comments

Add Spaces to the Dock on macOS

https://practicalbetterments.com/add-spaces-to-the-dock-on-mac-os/
1•DitheringIdiot•5m ago•1 comments

Show HN: An Interactive Text to SQL Agent Benchmark

https://sql-benchmark.nicklothian.com/
1•nl•7m ago•0 comments

A Nursing Home Owner Got a Pardon. The Families of His Patients Got Nothing

https://www.propublica.org/article/joseph-schwartz-trump-pardon-skyline-nursing-home-patients
1•Jimmc414•9m ago•0 comments

Ubuntu 26.04 Showing Nice Gains over Ubuntu 25.10 on AMD Ryzen 9000 Series

https://www.phoronix.com/review/ubuntu-2510-2604-zen5
1•teleforce•9m ago•0 comments

Pi: Another AI agent toolkit, but this one is interesting

https://github.com/badlogic/pi-mono
1•modinfo•9m ago•0 comments

There may be 10 times as many citizen scientists in Australia as we thought

https://theconversation.com/there-may-be-10-times-as-many-citizen-scientists-in-australia-as-we-t...
2•defrost•11m ago•0 comments

Polymarket

https://en.wikipedia.org/wiki/Polymarket
1•DyslexicAtheist•15m ago•0 comments

Ask HN: Does anyone else notice that gas runs out faster than usual

1•cat-turner•15m ago•0 comments

The Texas Lawyer and Part-Time Pastor Who Beat Meta and Google

https://www.wsj.com/us-news/law/the-texas-lawyer-and-part-time-pastor-who-beat-meta-and-google-82...
1•tolerance•21m ago•0 comments

ASML plans 1,700 job cuts as it restructures teams

https://www.techinasia.com/news/asml-plans-1700-job-cuts-as-it-restructures-teams
1•markus_zhang•22m ago•0 comments

The Blackwall Between Your AI Agent and Your Filesystem

https://www.wshoffner.dev/blog/greywall
2•ticktockbent•23m ago•0 comments

Boltcli – Bolt Food orders from the terminal (reverse-engineered API)

https://github.com/Lukynnnn/boltcli
1•Lukynnnn•26m ago•0 comments

PostMac – AI-native development, trunk-based Git, 12-factor philosophy

https://github.com/tdsanchez/PostMac
1•tdsanchez•27m ago•1 comments

Bob Dylan's AI "Lectures from the Grave" Review: An Accidental Warning

https://consequence.net/2026/03/bob-dylan-ai-lectures-from-the-grave-review/
1•coloneltcb•33m ago•0 comments

Error messages are an underrated part of agent experience

https://www.knut.fyi/blog/2026-03-30/agentic-developer-experience-starts-with-your-system
2•jeffinpdx•34m ago•1 comments

Ask HN: Anyone getting random quotes from U-Haul while their website is down?

1•phyzix5761•34m ago•0 comments

iOS 26.4 Autocorrect Updates

https://www.wsj.com/tech/apple-iphone-autocorrect-update-7659d618
2•daviesgeek•36m ago•0 comments

Show HN: HackerOne Silent-Patched My Critical BOLA and Banned Me

https://github.com/guardiankali/HackerOne-Silent-Patch-Exposed/blob/main/Critical.README.md
2•Salamalto•37m ago•0 comments

The Nginx default page hides 5 clues that lead to same 24-word BIP39 mnemonic

https://bip39-recast.pages.dev/wwwroot/
2•imcotton•39m ago•0 comments

Anarchist Calisthenics

https://harpers.org/archive/2012/12/anarchist-calisthenics/
2•theopsimist•40m ago•0 comments

They Believed They Found $500M in Civil War Gold. Then the FBI Swooped In(2025)

https://www.popularmechanics.com/adventure/a69762000/treasure-hunters-find-gold-fbi/
2•Jimmc414•42m ago•0 comments

Sedan (Nuclear Test)

https://en.wikipedia.org/wiki/Sedan_(nuclear_test)
2•JumpCrisscross•42m ago•0 comments

California Counties and Cities Comparison

https://trekhleb.dev/cali-vibe/
2•okso_app•44m ago•0 comments

Books and Screens

https://aeon.co/essays/what-we-think-is-a-decline-in-literacy-is-a-design-problem
3•bookofjoe•45m ago•0 comments

PocketMage PDA CrowdSupply

https://www.crowdsupply.com/talisman-design/pocketmage
2•caminanteblanco•45m ago•0 comments

StarRocks Is Not Enterprise Ready

https://dataengineeringguide.substack.com/p/starrocks-celerdata-not-enterprise-ready-2026
3•amandagerdes•47m ago•0 comments

Show HN: Codemaxxing – Maximize your slop abilities

https://github.com/jshchnz/codemaxxing
4•jshchnz•48m ago•0 comments