frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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

New Fragnesia Linux flaw lets attackers gain root privileges

https://www.bleepingcomputer.com/news/security/new-fragnesia-linux-flaw-lets-attackers-gain-root-...
1•akyuu•47s ago•0 comments

AMD EPYC CPUs Reach Record Server Revenue Share of 46.2%

https://www.techpowerup.com/349029/amd-epyc-cpus-reach-record-server-revenue-share-of-46-2
1•akyuu•5m ago•0 comments

Have a Coherent AI Policy

https://brianmeeker.me/2026/05/14/have-a-coherent-ai-policy/
1•ai_critic•8m ago•0 comments

Shareable AI Editable Visualizations

https://framejs.io/docs/intro.html
1•dionjw•9m ago•0 comments

Boeing, Toyota Donated $1M Each to Transportation Secretary's Road-Trip Show

https://www.wsj.com/business/boeing-toyota-donated-1-million-each-to-transportation-secretarys-ro...
1•impish9208•10m ago•1 comments

Decisions in the past have long running repercussions

https://www.distributedthoughts.org/2026-05-07-roman-bridge-still-determines-your-commute/
2•prosaic-hacker•13m ago•1 comments

A Professor in Every Pocket – A New Framework for Higher Education

https://lagomor.ph/2026/01/a-professor-in-every-pocket/
1•ChilledTonic•21m ago•0 comments

Isaac Newton on Laputa

https://www.historytoday.com/archive/great-debates/isaac-newton-laputa
1•hhs•28m ago•0 comments

mimalloc: A new, high-performance, scalable memory allocator for the modern era

https://www.microsoft.com/en-us/research/blog/mimalloc-a-high-performance-scalable-memory-allocat...
2•matt_d•29m ago•0 comments

A scientist made a clone of a clone of a clone of a clone

https://www.nationalgeographic.com/science/article/scientists-reclone-mice+
1•mrtedbear•29m ago•0 comments

Learn Python the Hard Way Was Right About One Thing

https://fagnerbrack.com/learn-python-the-hard-way-was-right-about-one-thing-9b6ab0b67526
1•birdculture•35m ago•0 comments

AI to infest eight in ten premium phones within two years

https://www.theregister.com/personal-tech/2026/05/14/ai-to-infest-eight-in-ten-premium-phones-wit...
1•Bender•36m ago•0 comments

Cisco to fire 4k staff and generously give them free training – on Cisco

https://www.theregister.com/networks/2026/05/14/cisco-to-fire-4000-staff-and-generously-give-them...
3•Bender•37m ago•0 comments

To gain root access at this company, all an intruder had to do was ask nicely

https://www.theregister.com/security/2026/05/14/to-gain-root-access-intruder-just-had-to-ask/5239853
1•Bender•38m ago•0 comments

Encountering the roots of mathematics

https://www.ias.edu/ideas/encountering-roots-mathematics
1•hhs•39m ago•0 comments

AI Poop Analysis App Offered to Sell Me Database of Its Users' Poops

https://www.404media.co/ai-poop-analysis-app-offered-to-sell-me-access-to-its-users-poops/
2•Cider9986•42m ago•0 comments

ICLR 2026 – Institutional Affiliations Dataset and Analysis

https://github.com/DmytroLopushanskyy/iclr2026-affiliations
2•stared•42m ago•0 comments

Do deep learning models recognize 3D shapes in the same way humans do?

https://www.santafe.edu/news-center/news/do-deep-learning-models-recognize-3d-shapes-in-the-same-...
1•hhs•44m ago•0 comments

Mirror Life's Doomsday Potential

https://www.noemamag.com/the-doomsday-organism/
1•littlexsparkee•44m ago•0 comments

The Cost of Free Doughnuts

https://www.npr.org/2020/01/08/794592539/episode-386-the-cost-of-free-doughnuts
1•compiler-guy•46m ago•0 comments

AI #168: Not Leading the Future

https://thezvi.substack.com/p/ai-168-not-leading-the-future
2•paulpauper•46m ago•0 comments

Too Much Is Happening Too Fast

https://www.theatlantic.com/technology/2026/05/too-much-happening-too-fast/687177/
2•paulpauper•47m ago•0 comments

Sensational Books to Read This Summer

https://www.theatlantic.com/books/2026/05/summer-reading-2026/686880/
1•paulpauper•47m ago•1 comments

'Millions' of pounds saved by replacing Palantir tech in refugee system

https://www.bbc.com/news/articles/c2l2j1lxdk5o
30•cdrnsf•48m ago•4 comments

Fields of the World: A Global Field Boundary Ecosystem

https://fieldsofthe.world/
1•tokai•49m ago•0 comments

Everyone's a thought leader. Almost no one is thinking

https://bernste.in/writings/everyones-a-thought-leader-almost-no-one-is-thinking/
1•mbernstein•50m ago•0 comments

We Now Know How Many People the CDC Is Monitoring for Hantavirus

https://www.wired.com/story/how-many-people-cdc-is-monitoring-for-hantavirus/
2•ent101•50m ago•0 comments

Automated red teaming with RL: attacker-defender co-training

https://castform.com/blog/red-team-rl/
3•ClassifexRL•50m ago•1 comments

More than half of U.S. faces worst drought in decades

https://news.vt.edu/articles/2026/05/drought-united-states-la-nina-expert.html
18•littlexsparkee•54m ago•0 comments

Ontario auditors find doctors' AI note takers routinely blow basic facts

https://www.theregister.com/ai-ml/2026/05/14/ontario-auditors-find-doctors-ai-note-takers-routine...
25•sohkamyung•55m ago•3 comments