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

Is AI Capable of Novelty?

1•sarmadgulzar•1m ago•0 comments

Show HN: PasteDB – A Feature-Rich Pastebin

https://pastedb.netlify.app/
1•aditya4113•2m ago•0 comments

Show HN: Take, a Mac screen recorder that comes out edited

https://crestnotch.app/take
1•zack40x•2m ago•0 comments

Show HN: Secure Bearer JWT and JWKS pattern for headless AI agents (MCP #824)

https://github.com/orgs/modelcontextprotocol/discussions/824
1•MawyxxY•3m ago•0 comments

A revolutionary take on desalination [video]

https://www.youtube.com/watch?v=0DzLiKUpkr0
1•thelastgallon•4m ago•0 comments

Psi+ 1.5.2142.0 Installer Has Been Released – Qt Jabber/XMPP Omemo/OTR E2EE

https://sourceforge.net/projects/psiplus/files/Windows/Personal-Builds/KukuRuzo/
1•neustradamus•7m ago•0 comments

Pathological Science

https://en.wikipedia.org/wiki/Pathological_science
1•gyomu•8m ago•0 comments

Sabertario – a directory of 100 free courses and tutorials

https://sabertario.com/
1•Franpove•13m ago•1 comments

Methinks It Is a Weasel

https://diatone.net/methinks
1•diatone•14m ago•0 comments

Time Serving Ads to Agents

https://digiday.com/media/time-has-started-serving-ads-to-ai-agents/
1•_superposition_•14m ago•1 comments

Coldcard Mk3 security advisory: seeds from firmware 4.0.1 onward may be at risk

https://blog.coinkite.com/coldcard-mk3-seed-generation-warning/
3•nicou•16m ago•1 comments

Why the world trusts China more than America

https://www.ft.com/content/f3ad032f-3c06-4ed4-82e2-7c2e5e68af26
2•Markoff•16m ago•2 comments

Why is 'Chat Control' one of the EU's biggest digital rights fights?

https://www.euronews.com/my-europe/2026/07/28/why-is-chat-control-one-of-the-eus-biggest-digital-...
2•latexr•17m ago•0 comments

Show HN: Cursor's Tab, cursor-jump included, inside Neovim

https://github.com/teocns/neocursor.nvim
1•teocns•18m ago•0 comments

Martin Kleppmann – Local-first in an unstable world [video]

https://www.youtube.com/watch?v=--Ru7cL22rI&list=PLXxEKA_dxoH0&index=1
2•JeremyTheo•19m ago•0 comments

How the Startup Mentality Failed Kids in San Francisco

https://www.wired.com/story/willie-brown-middle-school-startup-mentality-failed/
1•FinnLobsien•19m ago•0 comments

Montana's new "right to try" law can't come soon enough for some

https://www.technologyreview.com/2026/07/31/1140945/montanas-new-right-to-try-law-cant-come-soon-...
1•joozio•20m ago•0 comments

Tokens per Second Is a Memory Bandwidth Number

https://portfolio-orcin-beta-29.vercel.app/blog/tokens-per-second-memory-bandwidth/
1•rohitghumare•20m ago•0 comments

AI Firms Are Buying Up Old Books, Then Scanning and Destroying Them

https://novaramedia.com/2026/07/29/ai-firms-are-buying-up-old-books-then-scanning-and-destroying-...
2•trhway•20m ago•1 comments

No more zero-retention policy for OpenCode go

https://www.reddit.com/r/opencodeCLI/comments/1vbltva/no_more_zeroretention_policy_for_opencode_go/
1•gman83•22m ago•0 comments

ai calorie tracker with Mivee

https://mivee.app
1•nafas-hmn•22m ago•0 comments

An Ocean in Motion: NASA's View of Earth's Underwater Highways [video]

https://www.youtube.com/watch?v=R5-s6O8qyvE
1•simonebrunozzi•24m ago•0 comments

Show HN: MathJump – A math-based running game that requires quick calculations

https://mathjump.cc/
1•wdamao•26m ago•0 comments

VideoOnRepeat – a simple way to loop YouTube videos

https://videoonrepeat.com
1•multiplesauces•27m ago•0 comments

Show HN: Ctx traits · Turn your team skills into typed and versioned modules

https://ctx.company/traits/
1•rpunkfu•27m ago•0 comments

7 in 10 Americans say large tech companies have too much power

https://www.axios.com/2026/07/29/little-tech-big-tech-americans-power
4•mapping365•28m ago•0 comments

Friluftsliv

https://it.wikipedia.org/wiki/Friluftsliv
1•simonebrunozzi•30m ago•0 comments

Quantum Statistical Plasmonic Metacrystals

https://www.nature.com/articles/s41586-026-10782-3
1•bookofjoe•32m ago•0 comments

State of the MCP Ecosystem – July 2026

https://mcpqueen.com/reports/state-of-mcp-2026-07
1•Bluestein•32m ago•0 comments

Show HN: Explore different scenarios for making a decision, a future simulation

https://www.futuraengine.com
2•Amir_hz•32m ago•0 comments