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

Largest wildlife bridge, Wallis Annenberg Crossing, officially opened

https://101wildlifecrossing.org/
1•dogscatstrees•31s ago•0 comments

After losing banking job, Nigerian dons dress shirt and bow tie to hawk cowskin

https://apnews.com/article/nigeria-bank-teller-economy-ponmo-ibadan-tinubu-ed4589517617f77cb9da91...
1•petethomas•3m ago•0 comments

What will the pace of software dev look like once agents take over?

1•aryanr•6m ago•0 comments

Using Apple Vision Pro During Surgery (yes, real surgery) [video]

https://www.youtube.com/watch?v=_pORUZ9-054
1•owenpalmer•9m ago•0 comments

Bitcoin wallets move $50M+ after 16yrs dormant

https://whale-alert.io/alerts.html
2•Aeroi•12m ago•1 comments

The Quantum Key: Unbreakable Encryption and the Physics Behind

https://humanxai.events/the-quantum-key-rupert-ursin-on-unbreakable-encryption
1•mnewme•13m ago•0 comments

Blackjack: Defense Advanced Research Projects Agency U.S. Department of War DOW

https://www.darpa.mil/research/programs/blackjack
1•Alien1Being•15m ago•0 comments

Show HN: A free advent calendar your friends fill with notes

https://adventmyfriend.org/
1•ludydev•16m ago•0 comments

Show HN: Lekhan – an agent skill that makes print-ready PDFs

https://github.com/nayan-kunwar/lekhan-pdf-skill
1•nayankunwar•18m ago•0 comments

Nobel Peace Prize chair ousted in shock move

https://www.cnn.com/2026/12/02/europe/nobel-prize-leader-ousted-trump-intl-hnk
1•mandeepj•21m ago•0 comments

Show HN: Custom X64-86 Operating System Written from Scratch

1•adrianbyte•24m ago•0 comments

Nvidia lawyer Teter testified suspected Chinese spy asked Jensen for job: Meeks

https://www.cnbc.com/2026/12/02/nvidia-tim-teter-jensen-huang-china-congress.html
1•chaosmanage•34m ago•0 comments

Set GOMAXPROCS of small Go program to avoid overhead when run it on large host

https://peng.fyi/post/gomaxprocs-for-small-go-programs/
1•pengubco•34m ago•0 comments

Ethics of Nuclear Energy in Times of Climate Change (2022)

https://link.springer.com/article/10.1007/s13347-022-00527-1
1•mpweiher•40m ago•1 comments

Show HN: Nutation is a browser extension for translating pages efficiently

https://github.com/streamwhite/nutation
1•victorhe•41m ago•0 comments

Show HN: Copyable hex palettes for all 12 seasonal color types

https://seasonalcolorpalette.io/
1•gusihao•41m ago•0 comments

Show HN: Get Bingo Card – free 2027 goal bingo card maker, no sign-up

https://getbingocard.com/
1•gusihao•48m ago•0 comments

Looking Busy

https://www.lookingbusy.com
2•chynkm•53m ago•0 comments

ZeroCut: Trim your long DJI videos thereby saving space

https://github.com/sahilsk/ZeroCut
1•sahilsk•55m ago•2 comments

California sues Kalshi over alleged sports gambling

https://www.reuters.com/legal/government/california-sues-kalshi-over-alleged-sports-gambling-2026...
5•1vuio0pswjnm7•56m ago•0 comments

Conspiracy theory: NSA was hacked revealing trapdoor in the NIST elliptic curves

https://twitter.com/lostbutlucky/status/2128341153087184906
3•willmadden•56m ago•3 comments

She Brought Meta and Trump Together–Just in Time for the Democratic Onslaught

https://www.wsj.com/tech/dina-powell-mccormick-meta-trump-zuckerberg-ai-d5984bdc
2•snikolaev•1h ago•1 comments

"Don't Handoff" is not a plan

https://bengoldhaber.substack.com/p/dont-handoff-is-not-a-plan
2•lindowe•1h ago•0 comments

Musk is running from what he did to the world's poorest kids

https://www.editorialboard.com/musk-is-running-from-what-he-did-to-the-worlds-poorest-kids/
24•archagon•1h ago•2 comments

Show HN: debian-on-fuchsia - Run an unmodified Debian graphically on Fuchsia

https://github.com/flamecoals/debian-on-fuchsia/tree/main
1•flamecoals•1h ago•0 comments

Ask HN: Are software services businesses dead?

1•smarri•1h ago•0 comments

Only 22% of new sites run WordPress

https://joost.blog/share-of-new/
11•taubek•1h ago•4 comments

LinkMate: An offline-first link saver for Android, no account needed

https://play.google.com/store/apps/details?id=com.pixelplot.linkmate&hl=en_US
1•pixelplotapp•1h ago•0 comments

Really Stream Into Your LiveView Streams

https://krasen.be/really-stream-into-your-live-view-streams.html
1•nesarkvechnep•1h ago•0 comments

A guide to tradeoffs when designing a data format

https://mostlyquantized.com/blog/format-coordinates
1•phenomenon0•1h ago•0 comments