frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

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

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

Comments

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

Blog on Multiagent Interaction Protocols

https://masr.gitlab.io/blog/
1•ioper•51s ago•0 comments

Show HN: Kasa, simplest budgeting app you can find

https://kasafinance.online/
1•emirhanozsoy•3m ago•0 comments

Open Source Motorcycle Infotainment

https://gitlab.com/FalkF/hackasaki-spinbridge
1•usernam33•3m ago•1 comments

Most of AI moats are just fuel

https://adlrocha.substack.com/p/adlrocha-most-of-ai-moats-are-just
1•iLuddite•7m ago•0 comments

Gitly: lightweight, self-hosted GitHub/GitLab alternative written in V

https://github.com/vlang/gitly
1•modinfo•9m ago•0 comments

A Pile of MCP Connectors Is Not a Context Engine

https://getunblocked.com/blog/mcp-connectors-are-not-a-context-engine/
1•fagnerbrack•12m ago•0 comments

Leo gets a birthday bash, 75 years after clocking in

https://www.theregister.com/offbeat/2026/11/15/leo-gets-a-birthday-bash-75-years-after-clocking-i...
1•defrost•19m ago•0 comments

Turn any image into emoji art, in the browser

https://www.thousandtools.com/image-to-emoji/
1•vaibhavvudayagi•19m ago•0 comments

Show HN: Vantage-V-AI – 2-bit ternary KV-cache with attention sinks

https://github.com/khoadev-vn/VANTAGE-V-AI
1•Anh_khoa•23m ago•0 comments

Periodic-Oriented Programming for First Robotics

https://bvisness.me/periodic-oriented-programming/
1•joshcsimmons•25m ago•0 comments

Skyfall Attack: Microarchitectural Data Sampling on AMD

https://skyfall-attack.github.io/
1•ersinesen•26m ago•0 comments

Israel: Making the Holy Land Burn

https://www.aljazeera.com/opinions/2026/11/15/israel-making-the-holy-land-burn
3•hebelehubele•26m ago•0 comments

Show HN: Can a VPN be decentralised.. I think it's the best for homelabs

https://github.com/CLoaKY233/kith
4•laysheth•27m ago•0 comments

Proof Number search: exhaustively search a game tree to prove win or lose

https://minimax.dev/docs/ultimate/pn-search/
1•fanf2•31m ago•0 comments

India's voter-roll software flags twins but lets two men be each other's father

https://diagramchasing.fun/2026/karnataka-sir
2•amnbh•32m ago•0 comments

King Æthelstan founded England in927. Why don't we celebrate that anniversary?

https://www.theguardian.com/commentisfree/2026/nov/14/king-athelstan-england-1100-anniversary-2027
3•YeGoblynQueenne•34m ago•0 comments

SS United States

https://en.wikipedia.org/wiki/SS_United_States
1•tosh•36m ago•0 comments

Earliest known writing dates back over 40k years

https://www.popsci.com/science/earliest-human-writing-germany/
2•tosh•37m ago•0 comments

The Christian Nationalists Have a Plan

https://www.theatlantic.com/politics/2026/11/christian-nationalism-trump-elections/689373/
1•rbanffy•40m ago•0 comments

My Adventure in Economics

https://wilsoniumite.com/2026/11/12/my-adventure-in-economics/
1•Wilsoniumite•41m ago•0 comments

A comprehensive guide to the bank of Nvidia

https://hntrbrk.com/investigations/nvidia
4•porridgeraisin•47m ago•0 comments

Inkling 2 Small Scores 31 on AAII v5.0.1, best-in-class among "US" open weights

https://artificialanalysis.ai/evaluations/artificial-analysis-intelligence-index
1•namjh•48m ago•1 comments

Kessler Syndrome

https://en.wikipedia.org/wiki/Kessler_syndrome
2•tosh•50m ago•0 comments

Korea's top tax accountant exam scorer confesses to cheating with AI

https://inlevel9.com/en/issues/top-score-under-suspicion
2•haebom•55m ago•0 comments

Sparkkeep – Single-binary Go/SQLite action engine for saved links and notes

https://github.com/BurlacuAndrei/sparkkeep
1•capitanfg•55m ago•0 comments

The monsters in the fantasy stuff in the '80s were "filthy"

https://twitter.com/i/status/2121743429663379562
1•Michelangelo11•59m ago•0 comments

Sentinel-2 false color in JOSM

https://www.openstreetmap.org/user/erickdeoliveiraleal/diary/409652
2•altilunium•1h ago•0 comments

DKIM2 – Every system that handles an email signs for what it did

https://dkim2.com/
1•u1hcw9nx•1h ago•0 comments

The First Revolver: How We Got from Blackbeard's Six Pistols to the Six-Shooter

https://americanhandgunner.com/handguns/revolvers/the-first-revolver/
1•bushwart•1h ago•0 comments

Trusty CSV. Edit CSV files like code, not like a spreadsheet

https://trustycsv.com/
1•calmlystudio•1h ago•0 comments