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

Soon everybody will be worried about Chinese LLM's as agent Trojan horses

https://twitter.com/i/status/2080180914135667085
1•mherrmann•1m ago•0 comments

The Law of Leaky Abstractions (2002)

https://www.joelonsoftware.com/2002/11/11/the-law-of-leaky-abstractions/
1•rldjbpin•2m ago•1 comments

Google's Design Ethicist Testimony [pdf]

https://www.commerce.senate.gov/wp-content/uploads/media/doc/06_25_19Harris_Testimony.pdf
1•malaiqa•3m ago•0 comments

Code review: slapping an AI reviewer on top of an AI author doesn't cut it

https://blog.codacy.com/ai-code-review-is-not-enough-how-engineering-leaders-should-gate-ai-gener...
1•ARayOutOfBounds•3m ago•0 comments

OpenAI's models broke free and launched a cyberattack

https://www.politico.com/news/2026/07/22/openai-hugging-face-congress-response-01009190
1•Alien1Being•3m ago•0 comments

Show HN: I built a token-per-second counter in Go

https://github.com/canergulay/tokps
1•canergl•7m ago•0 comments

Beyond Arc and GSM: Langford Coverage as a Benchmark for ASI

https://zenodo.org/records/21502973
1•Mlangford75•9m ago•1 comments

Stupid Slow: The Perceived Speed of Computers (2024)

https://www.datagubbe.se/stupidslow/
1•doener•10m ago•1 comments

KTransformers – Flexible LLM Inference Framework

https://ktransformers.net/en
1•stareatgoats•13m ago•0 comments

OpenAI's Australian data centre drops water recycling plan

https://www.reuters.com/business/energy/openais-australian-data-centre-drops-water-recycling-plan...
2•adithyaharish•14m ago•0 comments

I gave Pi one tool and it ran for eight days

https://monotykamary.com/posts/i-gave-pi-one-tool/
1•kennyfrc•14m ago•0 comments

Why creators are hedging against the TikTok algorithm

https://www.officeos.co/blog/why-creators-are-hedging-against-the-tiktok-algorithm
1•Harro123•14m ago•0 comments

I'm helping DBA-less SQL Server Shops for free hoping that I can build my leads

https://consulting.marlonribunal.com/
1•MarlonPro•14m ago•0 comments

Ode to Jim Goad

https://counter-currents.com/2026/07/ode-to-jim-goad/
1•MrBuddyCasino•14m ago•0 comments

Distillation Is Not Anti-American, Weaponizing It Is

https://hardcoresoftware.learningbyshipping.com/p/241-distillation-is-not-anti-american
1•rbanffy•16m ago•0 comments

Show HN: Clipboard Saver – Browser extension to save and organize copied text

https://github.com/tejasashinde/clipboard-saver-extension
1•tejas_s•18m ago•0 comments

Find the prefect domain name with Gemeni and Agents (Antigravity)

https://rizz.dev/blog/guides/find-an-available-domain-name-with-ai
1•rizzdev•18m ago•1 comments

Besser is an open-source low-code platform to build all APIs, databases, agents

https://besser-pearl.org/
1•u1hcw9nx•19m ago•0 comments

Buzz – Where people and agents work together

https://buzz.xyz
1•blackdivine•19m ago•0 comments

World Artificial Intelligence Cooperation Organization

https://en.wikipedia.org/wiki/World_Artificial_Intelligence_Cooperation_Organization
1•iamflimflam1•20m ago•0 comments

Prefactoring: Clear the Way for Your New Feature

https://testing.googleblog.com/2026/07/prefactoring-clear-way-for-your-new.html
1•birdculture•22m ago•0 comments

Antares: Highly Efficient Open Weight AI Models for Vulnerability Localization

https://blogs.cisco.com/ai/introducing-antares-the-most-efficient-open-weight-ai-models-for-vulne...
1•shallow-mind•29m ago•0 comments

Iran strikes on CIA facilities prompt questions about possible Russian role

https://www.reuters.com/world/middle-east/iran-strikes-cia-facilities-prompt-questions-about-poss...
2•geox•31m ago•0 comments

Recent Data Graphics Pulling Their Weight

https://www.anychart.com/blog/2026/07/10/data-graphics-pull-their-weight/
1•latentframe•33m ago•0 comments

Valve give Steam Wishlist and Steam Gifts a major needed upgrade

https://www.gamingonlinux.com/2026/07/valve-give-steam-wishlist-and-steam-gifts-a-major-needed-up...
1•Erenay09•36m ago•0 comments

Graffiti (Conjecture-Generating Program)

https://en.wikipedia.org/wiki/Graffiti_(program)
1•YeGoblynQueenne•36m ago•0 comments

Show HN: Loop me in - Get looped into people's chats with AI. Help out. Get paid

https://www.loopmein.ai/
1•guico•38m ago•1 comments

Lira Engine – prove your data isn't in an LLM (AUC-ROC 1.000)

https://medium.com/@v_regis/why-self-auditing-your-ai-model-violates-eu-ai-act-article-53-22f693f...
1•roundcurtain•39m ago•0 comments

Incident Report for GitHub – Latency issues across a number of services

https://www.githubstatus.com/incidents/zq3c1jst2vkq
2•1f97•49m ago•0 comments

Show HN: OpenCode Session Tracker

https://github.com/ykocaman/opencode-session-tracker/tree/main
1•ykocaman•50m ago•2 comments