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

Five Survivors of Falls

https://www.bbc.com/news/magazine-22934269
1•thunderbong•39s ago•0 comments

Genesis – Desktop AI with persistent memory, 11 agents. Buy once, own forever

https://genesis.bmbnexus.ai
1•bahabashatwah•2m ago•0 comments

Solana Drift Protocol drained of $285M via fake token and governance hijack

https://anonhaven.com/en/news/drift-protocol-hack-285-million-solana/
3•anonhaven•5m ago•0 comments

A case study in testing with 100 of Claude agents in parallel

https://imbue.com/product/mngr_part_2/
3•thejash•6m ago•0 comments

GitMindPro – Scan any GitHub repo for AI-injected security risks

https://gitmindpro.com
1•DevToday•6m ago•0 comments

Raytheon generalized modular toolchains for Hidden Communication Systems

https://github.com/raytheonbbn/maude-hcs
2•uticus•8m ago•1 comments

Gstack pull request – "no seriously, accept it. it fixes everything"

https://github.com/garrytan/gstack/pull/681
2•Topfi•8m ago•0 comments

Linkhut: A Social Bookmarking Site

https://ln.ht
1•Imustaskforhelp•9m ago•0 comments

Ghostty, but with Vertical tabs, lightweight and native

https://github.com/muxy-app/muxy
1•543310•10m ago•1 comments

iNaturalist

https://www.inaturalist.org/
5•bookofjoe•12m ago•0 comments

AI Governance

https://medium.com/@paul.bernard_80815/the-ai-highground-8a438dfd18c5
1•paulbernard•13m ago•0 comments

Revision Demoscene Festival 3-6 April

https://2026.revision-party.net/
1•thinkingemote•14m ago•0 comments

Half of NASA's pool of active astronauts served in the Middle East

https://www.stripes.com/theaters/us/2026-04-01/artemis-2-military-involvement-iraq-veterans-21250...
1•ThrowawayGuy1•14m ago•0 comments

Artemis II Looking Back at Earth

https://images.nasa.gov/details/art002e000191
1•DarmokJalad1701•15m ago•0 comments

Getting Claude to QA its own work

https://www.skyvern.com/blog/getting-claude-to-qa-its-own-work/
4•suchintan•15m ago•0 comments

Are web apps really slower than native?

https://atfzl.com/are-web-apps-really-slower-than-native/
2•atfzl•18m ago•0 comments

A Visual Guide to Gemma 4

https://newsletter.maartengrootendorst.com/p/a-visual-guide-to-gemma-4
1•mariuz•18m ago•0 comments

Code-review-graphv 2.1.0, 8× fewer tokens for code reviews via structural graph

https://github.com/tirth8205/code-review-graph
1•tirthkanani•20m ago•0 comments

Pharmaceuticals face 100% tariffs in US – unless firms strike a deal

https://www.bbc.com/news/articles/cx29kke01gpo
11•geox•23m ago•7 comments

Ask HN: Cool Websites to Stop Doomscrolling?

2•karakoram•23m ago•2 comments

Artemis II astronaut: 'I have two Microsoft Outlooks, and neither are working'

https://www.theregister.com/2026/04/02/artemis_astronauts_microsoft_outlook_broken/
5•Bender•26m ago•1 comments

AI-Generated Interview with One Piece Actor Published by Esquire

https://kotaku.com/one-piece-netflix-live-action-mackenyu-interview-esquire-ai-singapore-2000684648
2•pavel_lishin•26m ago•0 comments

US Military contractor open sources tool for validating hidden communications

https://www.theregister.com/2026/04/02/maude_hcs_rtx_raytheon_hcn/
1•Bender•27m ago•0 comments

'Uncle Larry's biggest fan' cut by email in early morning Oracle layoff spree

https://www.theregister.com/2026/04/01/laidoff_oracle_workers/
3•Bender•27m ago•0 comments

Police officer top dream job for boys in Japan, cake shop worker for girls

https://mainichi.jp/english/articles/20260403/p2g/00m/0na/014000c
3•rawgabbit•28m ago•0 comments

A micro-processor built large. Very large (2016)

https://www.megaprocessor.com/stepping-stones.html
2•uticus•28m ago•0 comments

Show HN: Cynical Sally Sidekick Right in the Browser as a Chrome Extension

https://chromewebstore.google.com/detail/cynical-sally/hjcdmhmkhfdfcekpmlnbocncjhnkocni
1•thomasgeelens•29m ago•0 comments

Unlocking LoRA Moe RL for Qwen3.5

https://osmosis.ai/blogs/unlocking-lora-moe-rl-for-qwen3-5
3•WorldPeas•29m ago•0 comments

New Garmin Training Features (2026): Nutrition Tracking, Lifestyle Logging, and

https://www.wired.com/story/garmin-training-features-2026/
1•joozio•31m ago•0 comments

NASA 3D Eyes on the Solar System

https://eyes.nasa.gov/apps/solar-system/
2•uticus•31m ago•0 comments