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

The Conservationist Who Turned 40 Terabytes of Public Data into a Video Game

https://blog.exe.dev/meet-the-conservationist-who-turned-40-terabytes-of-government-data-into-a-v...
1•bryanmikaelian•18s ago•0 comments

The analysts are compromised

https://www.profgmedia.com/p/the-analysts-are-compromised
1•dchi04•43s ago•0 comments

Show HN: RavenGate – LLM gateway that redacts PII across SSE chunk boundaries

https://gate.ravenlabs.studio/
1•charltonraven•54s ago•0 comments

Show HN: Run SAM only when your tracker is uncertain – #1 on SportsMOT

https://www.holma.io/blog/posts/selective-mask-propagation
1•lapuerta•1m ago•0 comments

Show HN: Boardown – A local Markdown-based Kanban board inside VS Code

https://github.com/grinev/boardown
1•greenrus•1m ago•0 comments

Show HN: I can't seem to text properly on an iPhone, so I built my own keyboard

1•tbensky•3m ago•0 comments

5D Memory Crystal

https://www.5dmemorycrystal.com
1•csomar•4m ago•0 comments

Poet as Legislator

https://en.wikipedia.org/wiki/Poet_as_legislator
1•tosh•6m ago•0 comments

peg-express is a parser generator for TypeScript

https://github.com/katsumiok/peg-express
1•gjvc•6m ago•0 comments

Samsung will delete your health data if you don't let them use it to train AI

https://www.neowin.net/news/samsung-will-delete-your-health-data-if-you-dont-let-them-use-it-to-t...
2•rpgbr•6m ago•1 comments

Google's Demis Hassabis says it's time for a global AI watchdog led by the US

https://www.theverge.com/tech/965270/google-deepmind-demis-hassabis-global-ai-watchdog
1•andsoitis•7m ago•0 comments

Demis Hassibis: A Framework for Frontier AI and the Dawning of a New Age

https://x.com/demishassabis/article/2076957440109625718
1•andsoitis•8m ago•0 comments

Germany wants rental e-scooter companies to pay for accidents

https://electrek.co/2026/07/13/germany-wants-rental-e-scooter-companies-to-pay-for-accidents/
1•gnabgib•8m ago•0 comments

Sony Nerfs Videogame Ownership

https://www.eff.org/deeplinks/2026/07/sony-nerfs-videogame-ownership
2•Brajeshwar•8m ago•1 comments

I couldn't pay for DeepSeek V4 with my card. So I built a proxy

https://api-hub.cc/blog/
2•zftnb666•9m ago•0 comments

Show HN: CrowdMind, Free app for building AI personas and testing stimuli

https://github.com/Brokenwatch24/crowdmind
1•jjaramillor•9m ago•0 comments

Demis Hassabis has a plan to harness AI safely

https://www.economist.com/business/2026/07/14/demis-hassabis-has-a-plan-to-harness-ai-safely
1•andsoitis•9m ago•0 comments

The Rise and Fall of Commercial Smalltalk (2020)

https://wirfs-brock.com/allen/posts/914
2•downbad_•9m ago•1 comments

Making network topology readable with C4 and graph theory

https://scanopy.net/blog/making-network-topology-readable
2•mayanayza•9m ago•1 comments

A thinking thing that is no one

https://baronca.substack.com/p/a-thinking-thing-that-is-no-one
1•Anon84•12m ago•0 comments

Telegram's t.me domain name is back

https://de.godaddy.com/whois/results.aspx?domain=t.me
2•_roj•12m ago•1 comments

Show HN: PixlPDF – e-signatures where the server only stores encrypted blobs

https://pixlpdf.com
1•pixlpdf•13m ago•0 comments

Two sizes fit most: Postgres and ClickHouse

https://clickhouse.com/blog/ai-best-of-breed-data-stack
1•saisrirampur•13m ago•0 comments

What makes a language flourish? (2021)

https://www.5jt.com/what-makes-a-language-flourish
1•tosh•13m ago•0 comments

Show HN: OpenArgentum – Self-hosted finance manager you talk to

https://openargentum.org/
1•amitpm•15m ago•1 comments

Show HN: Translate Slides and Images

https://slidelang.com/
1•seinecle•15m ago•1 comments

CometBFT runs the SecretConnection crypto handshake before authenticating peers

https://nullrabbit.ai/research/cometbft-secretconnection-preauth-handshake-cpu-burn
1•simonmorley•15m ago•0 comments

I Use Agents to Extract Hidden Feedback from GitHub

https://tomasvotruba.com/blog/how-I-use-agents-to-extract-hidden-feedback-from-github-and-improve...
3•moebrowne•16m ago•0 comments

Goldman Sachs Posts Record $3.4B Investment-Banking Quarter

https://www.disruptionbanking.com/2026/07/14/goldman-sachs-posts-record-3-4bn-investment-banking-...
4•emsidisii•17m ago•1 comments

Show HN: Kmux – Parallel terminal workspace optimized for AI coding agents

https://github.com/kkd927/kmux
1•kkd927•18m ago•0 comments