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

Comments

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

Selling Selfcontext.com Domain

https://selfcontext.com/
1•AVancans•1m ago•0 comments

The Controllability Trap: A Governance Framework for Military AI Agents

https://arxiv.org/abs/2603.03515
1•zvr•5m ago•0 comments

Each time an AI was given a task to invent best-seller web app

https://spireason.neocities.org/apples
1•tvali•7m ago•1 comments

YC Startup School India

https://events.ycombinator.com/yc-sus-india
1•twapi•8m ago•0 comments

Fork: One CLI to Build Firmware for Any MCU

https://github.com/TareqRafed/fork
1•grog6•12m ago•0 comments

I mass-replaced FFmpeg's MJPEG decoder with Claude Code – 4K LOC, 8% the speed

https://github.com/0xD8C4A475/liberated-mjpeg
1•istenesimi•13m ago•2 comments

Need feedback to build a product for founders to track decision-making

1•shreyast6•13m ago•0 comments

The AI-Powered Kubernetes IDE

https://github.com/koreide/Kore
2•eladbash•15m ago•3 comments

AI toys for children misread emotions and respond inappropriately

https://www.bbc.co.uk/news/articles/clyg4wx6nxgo
3•fredley•15m ago•0 comments

9B parameter coding agent model fine-tuned on top of Qwen3.5-9B

https://huggingface.co/Tesslate/OmniCoder-9B
1•brainless•15m ago•0 comments

Searching for a Well Designed API

1•willx86•18m ago•1 comments

Qualcomm exploit chain brings bootloader unlocking freedom to Android flagships

https://www.androidauthority.com/qualcomm-snapdragon-8-elite-gbl-exploit-bootloader-unlock-3648651/
1•ledoge•19m ago•1 comments

Things I do when I'm writing code that don't look like writing code

https://danq.me/2026/03/06/writing-code-is-not-the-bottleneck/
1•speckx•22m ago•0 comments

Show HN: Flowly – Smooth scrolling for third-party mice on macOS

https://flowlyapp.dev/
1•simonij•22m ago•0 comments

Show HN: Five – I built a 5-story daily newsletter for who hate newsletters

https://getfive.news
1•tiago_human•23m ago•0 comments

White House posts Wii Sports video mixed with Iran War footage

https://twitter.com/WhiteHouse/status/2032115039985881556
1•run414•25m ago•0 comments

TUI Studio – visual terminal UI design tool

https://tui.studio/
3•mipselaer•27m ago•1 comments

Peter Thiel's Antichrist Lectures

https://apnews.com/article/italy-peter-thiel-paypal-pope-vatican-c3a6c7d2daba501caf8152558ac2d743
3•aureliusm•28m ago•0 comments

I got tired of AI chatbots so we turned the OS into an AI agent

https://www.jeriko.ai/
1•Khaleel7337•33m ago•1 comments

Ask HN: Uploaded a post and it was [dead] within a minute

2•_ananos_•34m ago•5 comments

CrackArmor: Multiple Vulnerabilities in AppArmor

https://cdn2.qualys.com/advisory/2026/03/10/crack-armor.txt
1•mmsc•34m ago•0 comments

The evolution of Mac app window corners

https://lapcatsoftware.com/articles/2026/3/4.html
1•robenkleene•34m ago•0 comments

Consumer rights wiki becomes a browser extension

https://github.com/FULU-Foundation/CRW-Extension
1•NotLemikiy•35m ago•0 comments

Russia is carrying out a cyber campaign targeting Signal and WhatsApp accounts

https://www.aivd.nl/actueel/nieuws/2026/03/09/rusland-voert-cybercampagne-uit-tegen-signal--en-wh...
1•komape•36m ago•0 comments

How to make your own static site generator

https://gaultier.github.io/blog/how_to_make_your_own_static_site_generator.html
1•gingersnap•36m ago•0 comments

YouTube videos that have almost zero previous views

http://astronaut.io/
1•Zealotux•37m ago•1 comments

I traced $2B in grants and 45 states' lobbying behind age‑verification bills

https://old.reddit.com/r/linux/comments/1rshc1f/i_traced_2_billion_in_nonprofit_grants_and_45/
15•shaicoleman•43m ago•0 comments

The End of the Open Web

https://www.netmeister.org/blog/open-web.html
3•speckx•43m ago•0 comments

50 Years of Thinking Different

https://www.apple.com/50-years-of-thinking-different/
3•tilt•47m ago•1 comments

Show HN: Privacy Mask – prevent secrets leaking to AI agents

2•fullstackcrew•48m ago•0 comments