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

Cells, boundaries, and the emergence of biological order

https://www.embl.org/news/science-technology/cells-boundaries-and-the-emergence-of-biological-order/
1•hhs•1m ago•0 comments

Mystery of India's red-haired child unlocks hidden colour genes

https://www.nature.com/articles/d44151-026-00124-7
1•cybermango•1m ago•0 comments

Peekdiff – review GitHub PRs without the diff touching my server

https://peekdiff.codebyram.dev
1•sriram-52•2m ago•0 comments

Jellyfish can heal wounds in minutes. Scientists want their secrets

https://www.mbl.edu/news/jellyfish-can-heal-wounds-minutes-scientists-want-their-secrets
1•hhs•2m ago•0 comments

FlashAttention-4: Algorithm and Kernel Pipelining Co-Design

https://research.colfax-intl.com/flashattention-4-algorithm-and-kernel-pipelining-co-design-for-a...
1•skidrow•3m ago•0 comments

New bacterial species discovered in NASA's cleanrooms

https://www.nature.com/articles/d44151-025-00219-7
2•cybermango•4m ago•0 comments

Toward Better Hip Kernel Generation for AMD GPUs

https://scalingintelligence.stanford.edu/blogs/hipkernels/
1•skidrow•4m ago•0 comments

Researchers affirm long-held belief that viruses can trigger Parkinson's disease

https://stories.tamu.edu/news/2026/06/29/researchers-affirm-long-held-belief-that-viruses-can-tri...
1•hhs•6m ago•0 comments

China Is Devastating the Last Stronghold of German Industry

https://www.wsj.com/economy/china-is-devastating-the-last-stronghold-of-german-industry-c7a98514
2•impish9208•8m ago•1 comments

Four Corners – a spin on Connections-like games

https://fourcorners.smol.quest/
1•ens0•10m ago•1 comments

Show HN: WifeBench – My wife vibes LLM rankings

https://www.wifebench.com/
1•fristovic•12m ago•0 comments

Dermatology is wrong about the sun

https://twitter.com/MattZirwas/status/2050586857868591306
1•bilsbie•14m ago•0 comments

Automate Excel with Python: From manual grind to one-click workflow

https://nostarch.com/automate-excel-with-python
1•teleforce•14m ago•0 comments

Trump pardons 11, most for violating Clean Air Act

https://www.reuters.com/legal/government/trump-pardons-11-most-violating-clean-air-act-2026-07-04/
1•Kapura•16m ago•0 comments

Show HN: Isthistechdead.com got a full UI revamp

https://isthistechdead.com/
1•jobehi•18m ago•0 comments

America imports 99% of its fireworks from China

https://justinkuiper.substack.com/p/america-imports-99-of-its-fireworks
3•zdw•21m ago•0 comments

The Structural Failure of Disciplinary Science: What a Machine Found in 2 Hours

https://zenodo.org/records/21198389
1•javieralbuixech•21m ago•0 comments

Heddle

https://heddle.sh/
2•handfuloflight•22m ago•0 comments

Ramp data shows heavy AI adopters hire more

https://econlab.substack.com/p/we-can-finally-say-ai-isnt-killing-jobs
1•skybrian•27m ago•0 comments

Can you train AI to invert AES?

https://www.juanslozano.com/blog/ai-aes
1•juansebastianl•27m ago•0 comments

Counting Until the End of the Universe

https://essenceia.github.io/projects/until_heat_death_do_us_part/
2•random__duck•33m ago•1 comments

ContainerUtility: A macOS app for the container CLI

https://github.com/erdaltoprak/ContainerUtility
2•erdaltoprak•35m ago•0 comments

Living subscription-free in my brain

https://mapwriting.substack.com/p/living-subscription-free-in-my-brain
2•doitLP•36m ago•0 comments

Exploiting LLM Agent Supply Chains via Payload-Less Skills

https://arxiv.org/abs/2605.14460
1•_pdp_•38m ago•0 comments

Show HN: Apple Foundation Model in Xcode-Beta

https://gist.github.com/voxels/b6ea737dd127745f9af009ebd038ded4
1•edgcumbe•40m ago•0 comments

Omegacode: Code based orchestration for any coding agent

https://github.com/Sawyerhood/omegacode
1•handfuloflight•44m ago•0 comments

3D Airplane tracker on Mercator map

https://github.com/jamalrfordii-arch/Vanguard-Map
1•Lawyer24•45m ago•0 comments

Show HN: Desunofier – Removing shimmer from Suno songs

https://www.instasong.co/tools/desunofier
1•stanyy•46m ago•0 comments

Invisible Cities: The Legal Analysis of Space Based Solar Power

https://papers.ssrn.com/sol3/papers.cfm?abstract_id=6881678&__cf_chl_f_tk=hLQWAnW2Nv4B5PaV4xX16mF...
1•Lawyer24•47m ago•0 comments

GPT-5.5 Codex reasoning-token clustering may be leading to degraded performance

https://github.com/openai/codex/issues/30364
41•maille•47m ago•4 comments