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

Mulligan: Performance-Guided Data Collection for Efficient On-Robot Learning

https://mulligan.page/
1•ilreb•51s ago•0 comments

Running Monte Carlo Simulations on Prediction Markets

https://www.vivienhenz.com/monte-carlo-pricer
1•signa11•1m ago•0 comments

Get Ready for iPhone Duo

https://developer.apple.com/iphone-duo/
1•tosh•2m ago•0 comments

Scrcpy 5.0 now supports hardware decoding

https://github.com/Genymobile/scrcpy/releases/tag/v5.0
1•thunderbong•2m ago•0 comments

Show HN: Generate Beautiful Screenshots in Seconds

https://screens.click/
1•bronco3767•3m ago•0 comments

Attempts to Keep Humans in the AI Loop May Push Them Out

https://spectrum.ieee.org/millennium-prize-ai
1•nryoo•4m ago•0 comments

Core Problems in TCS

https://vaclavrozhon.github.io/atlas/index.html
1•noajshu•8m ago•0 comments

Who Believes in an Afterlife?

https://pudding.cool/2026/10/lifeafter/
1•usrme•9m ago•0 comments

Autonomous AI Agent Security Incidents of 2026 (Dataset and Defense Harness)

https://github.com/mars2021y-gif/autonomous-ai-agent-security-incidents-2026
2•doletskyisergey•9m ago•0 comments

Something Is Wrong at OpenAI

https://www.vincentschmalbach.com/something-wrong-at-openai/
2•vincent_s•15m ago•0 comments

Russia Plague Tracker

https://plague.somethingbig.ai/
1•ilreb•17m ago•0 comments

Japan's entertainment robots diversify with AI, offer comfort

https://mainichi.jp/english/articles/20261003/p2g/00m/0li/002000c
1•BaudouinVH•19m ago•0 comments

Security researcher claims they found KVM guest-host escape flaw

https://www.theregister.com/offbeat/2026/10/06/security-researcher-claims-they-found-kvm-guest-ho...
1•fork-bomber•26m ago•0 comments

MPs call for investigation after Lutnick-Epstein whistleblower dies

https://www.bbc.co.uk/news/articles/cwm2686gl6kno
4•sieste•32m ago•0 comments

KCoral: Lightweight Benchmark Server for Agentic GPU Programming

https://blog.mlc.ai/2026/10/05/kcoral-lightweight-benchmark-server-for-agentic-gpu-programming
1•matt_d•33m ago•0 comments

Plainserp – Google search API for AI agents at $0.30 per 1k

https://plainserp.com
1•mohamed_sheikhh•35m ago•0 comments

What on Earth are you dooming about?

https://world.hey.com/dhh/what-on-earth-are-you-dooming-about-386cc1da
2•meltmymind•36m ago•1 comments

Post Trump doesnt want you to see: Fly Dubai attacker Al Qaeda links

https://www.youtube.com/watch?v=xfBSCQ4a2CQ
1•mark336•38m ago•0 comments

I'm Calling for a Pause in the Development of the Universal Bone Dissolver

https://www.theatlantic.com/newsletters/2026/10/ai-slowdown-bone-dissolver/688854
1•unddoch•39m ago•0 comments

11982 books banned in public schools, 2025-26 school year

https://pen.org/report/book-bans-spotlight-2026/
1•brnt•44m ago•0 comments

Wattle AI – an AI receptionist that answers and books calls for small businesses

https://heywattle.com
1•christopher8827•50m ago•0 comments

Quest to Offer Roche's FDA-Cleared PTau217 Alzheimer's Blood Test

https://ir.questdiagnostics.com/press-releases/press-release-details/2026/Quest-Diagnostics-to-Of...
2•kamaraju•51m ago•0 comments

Online Results

1•bella786•53m ago•0 comments

Decrypting iOS 1.0 (2007) from Android/Termux

https://gist.github.com/bouhafara-bot/10ed249b1005d61397a621621edf4892
1•bouhafarabot•57m ago•0 comments

GTA 5 Ported to WASM

https://twitter.com/4k_isn/status/2107314678347239665
4•astlouis44•58m ago•0 comments

Betting Against the Everything Company

https://faingezicht.com/articles/2026/10/06/against-the-everything-company/
2•ilreb•59m ago•0 comments

Almost half of China's workforce is now in the gig economy

https://www.abc.net.au/news/2026-10-06/inside-the-life-of-chinese-gig-workers/107209244
3•theteapot•1h ago•0 comments

Ask HN: What brings you back to personal AI agents like Instinct and Muse?

2•sdrth•1h ago•0 comments

Running Qwen Flash Next Q4 on a Mac Mini

https://freshworktree.com/run-qwen-flash-next-q4-on-a-mac-mini-360-tks-read-in-17-5-tks-decode/
1•skeggsguy•1h ago•0 comments

High school student develops membrane-free filter for microplastics from water

https://www.techspot.com/news/111799-high-school-student-develops-membrane-free-filter-removes.html
2•dkga•1h ago•0 comments