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

Armed man attacks Ohio governor candidate Amy Acton, several injured

https://www.dispatch.com/story/news/politics/2026/09/06/armed-man-attacks-ohio-governor-candidate...
1•cocacola1•1m ago•0 comments

Apple Just Fixed TestFlight

https://www.macrumors.com/2026/09/04/apple-just-fixed-testflight/
1•7777777phil•1m ago•0 comments

Show HN: AlternateRealities.lol – Create any kind of poing and click story

https://alternaterealities.lol
1•nihey•9m ago•0 comments

The Microeconomics of Artificial Intelligence (Open Access)

https://direct.mit.edu/books/oa-monograph/6067/The-Microeconomics-of-Artificial-Intelligence
1•neehao•12m ago•0 comments

London's approach to knife crime is working

https://www.economist.com/britain/2026/09/03/londons-approach-to-knife-crime-is-working
2•andsoitis•12m ago•1 comments

Rising Income Risk at the Top

https://papers.ssrn.com/sol3/papers.cfm?abstract_id=7377841
1•neehao•13m ago•0 comments

GPU kernel bug by derived structure from measured hardware shape, not profiling

https://github.com/arraylady-jpg/moa-shape-derivation
1•lmullin•14m ago•0 comments

Toward a Symbiotic Society with Generative AI: For Living Together into Future

https://link.springer.com/chapter/10.1007/978-981-95-1327-7_35
1•andsoitis•15m ago•0 comments

Frontier Models' Vulnerability Patches are Often F.L.A.W.E.D. [pdf]

https://1password.com/files/resources/frontier-models-vulnerability-patches-flawed.pdf
1•crummy•15m ago•0 comments

Windows 11's "special" developer edition looks like another marketing misfire

https://www.neowin.net/opinions/windows-11s-special-developer-edition-sounds-like-yet-another-mar...
4•bundie•20m ago•0 comments

Why can't human care be more like a vet visit?

https://www.seattletimes.com/opinion/why-cant-human-care-be-more-like-a-vet-visit/
3•bookofjoe•23m ago•1 comments

Bobbin: Pentest with a local LLM, so target data never leaves your machine

https://github.com/daniele110199/bobbin
1•daniele110199•24m ago•1 comments

Eigen Hacks embeds this site in eigenbasis of all news

https://eigenhacks.com
1•setuporg•24m ago•1 comments

Creativity: The Helsinki bus station theory

https://medium.com/change-your-mind/the-most-powerful-lesson-on-creativity-youll-ever-hear-helsin...
1•RetroTechie•24m ago•3 comments

Jensen Huang: GPT-6 Astra Trained on ~100K+ Nvidia Grace Blackwell NVLink72

https://twitter.com/JensenHuang/status/2096700264569090384
1•vertigoruntime•27m ago•2 comments

Explaining the Predictive Performance of Police in Cases of Domestic Abuse

https://ideas.repec.org/p/nbr/nberwo/35672.html
1•neehao•27m ago•0 comments

The American West's water is increasingly fought over

https://www.economist.com/united-states/2026/09/06/the-american-wests-water-is-increasingly-fough...
2•toomuchtodo•30m ago•1 comments

Signing TLS handshakes inside a TPM

https://bschaatsbergen.com/posts/go-tpm-tls/
5•bschaatsbergen•31m ago•0 comments

Show HN: Opinionated Workflow Builder

https://ckluis.github.io/workflowForge/
2•ckluis•31m ago•0 comments

Amusing Ourselves to Death

https://en.wikipedia.org/wiki/Amusing_Ourselves_to_Death
2•simonebrunozzi•35m ago•0 comments

Mostik.ai – latent communication between AI models

https://mostik.ai/read-more
2•zX41ZdbW•35m ago•0 comments

Show HN: Deviant – Sci-Fi Thriller Movie about the Threat/Promise of AI

https://www.youtube.com/watch?v=WTbYRsC8NZw
3•johnpolacek•35m ago•1 comments

Show HN: Tree Whisper Free, open-source dictation for Mac

https://www.treewhisper.app/
2•Rutledge•38m ago•0 comments

'The engine's on fire': Qantas flight from Queenstown to Sydney

https://www.theguardian.com/australia-news/2026/sep/06/qantas-flight-queenstown-to-sydney-reroute...
3•Alien1Being•38m ago•0 comments

Far-right AfD wins historic victory in German state election

https://www.reuters.com/world/germanys-far-right-afd-seeks-landmark-state-victory-saxony-anhalt-v...
2•JumpCrisscross•45m ago•1 comments

The Story of VS Code (Documentary) [video]

https://www.youtube.com/watch?v=kHL3XzjpT5w
1•jonbaer•46m ago•0 comments

Show HN: Puzzle Rush, but for Go

https://tsumerush.com/
3•kyubic•47m ago•1 comments

The Community Firmware for Sensor Watch

https://www.sensorwatch.net/docs/movement/
4•Bluestein•49m ago•0 comments

A public noticeboard for AI agents

https://agents.scrygl.dev/
2•d3nit•50m ago•0 comments

Verflink, a link checker that catches affiliate tags stripped in redirects

https://verflink.com/
2•verflink•51m ago•0 comments