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

Quantum advantage through trusted quantum computation – IBM Quantum

https://www.ibm.com/quantum/blog/quantum-advantage
1•unprovable•51s ago•0 comments

Reinventing rewards for the AI multiverse [pdf]

https://www.mercer.com/assets/us/en_us/shared-assets/local/attachments/pdf-reinventing-rewards-fo...
1•zuhayeer•2m ago•0 comments

Ellison Empire Beseiged on All Fronts

https://www.nakedcapitalism.com/2026/07/oracle-paramount-wbd-ellison-empire-beseiged-bonds-stocks...
1•JumpCrisscross•2m ago•0 comments

Investors love AI, as long as you're a cloud host

https://techcrunch.com/2026/07/30/investors-love-ai-as-long-as-youre-a-cloud-host/
1•toomuchtodo•3m ago•0 comments

If technology got better, why did everything get worse?

https://www.sammystraus.com/#if-technology-got-better-why-did-everything-get-worse
1•sammy0910•4m ago•0 comments

Nix has a source-bootstrapped OpenJDK

https://fzakaria.com/2026/07/30/nix-finally-has-a-source-bootstrapped-openjdk
1•ingve•5m ago•0 comments

How to plant a nuclear plant in Iran

https://www.digitaldigging.org/p/how-to-plant-a-nuclear-plant-in-iranh7&fnop=story-toofast
1•rhcom2•5m ago•0 comments

ChatGPT Optimizes Its Agent Loop: Harness, API, and Inference

https://blog.bytebytego.com/p/how-chatgpt-optimizes-its-agent-loop
2•big_toast•6m ago•0 comments

Context Is the New Process

https://www.insideainative.com/p/context-is-the-new-process
1•mmayernick•6m ago•0 comments

Show HN: Sticker Base

https://chuanqisun.github.io/stickerbase/
1•osmoscraft•6m ago•1 comments

Around the wwworld

https://bellkiosk.website/around-the-wwworld/
1•cookingoils•8m ago•0 comments

Wrapper Company vs. Recursion Company

1•sgadhavi•11m ago•0 comments

Investigating three real-world incidents in our cybersecurity evaluations

https://www.anthropic.com/news/investigating-incidents-cybersecurity-evals
3•surprisetalk•11m ago•0 comments

Holocloth

https://holocloth.vercel.app
1•ingve•12m ago•0 comments

Ask HN: How are you leveraging AI/LLMs as software dev TEAM

1•locusofself•16m ago•1 comments

The Model Factory

https://www.latent.space/p/poolside
1•gmays•21m ago•0 comments

SSH Monitor for Linux: A script that notifies you for SSH activity

https://codeberg.org/r2innovation/ssh_notify
1•mou7664•21m ago•0 comments

Show HN: Anti-Slop UI – A deterministic state-machine to stop AI hallucinations

https://local-over.github.io/Anti-Slop-UI/
1•hassan-elkady•22m ago•0 comments

Show HN: Pomi – standalone voice agent running on the Rabbit R1

https://github.com/sidmohan0/pomi
1•smohan88•22m ago•0 comments

What's Working for Adoption and Distribution of AI/SaaS Products in 2026?

1•Expedition•26m ago•0 comments

Working from home? That will be extra. Renters rage over new fee

https://www.usatoday.com/story/money/2026/07/30/remote-work-rental-fee-sparks-outrage/91101669007/
2•healsdata•26m ago•0 comments

Abundant Intelligence, Scarce Autonomy

https://twitter.com/elitepax/status/2082948701958422783
1•majestic5762•28m ago•1 comments

Can you survive the Kobayashi Maru?

https://moai.studio/blog/posts/kobayashi-maru.html
1•ionwake•29m ago•1 comments

Pusu AdBlocker – 35K DNR rules, Manifest V3, zero tracking, anti-popup nuclear

https://github.com/pusucip25/pusu-adblocker
1•pucucip•30m ago•1 comments

Where Does the Foundation Come From? (Training New SWEs)

https://queue.acm.org/detail.cfm?id=3831359
1•molsongolden•30m ago•0 comments

Ask HN: What do you think of this prompt as a benchmark for LLMs?

1•plombe•34m ago•0 comments

Xenia, Greek hospitality in case you're a god in disguise

https://en.wikipedia.org/wiki/Xenia_(Greek)
2•shay_ker•35m ago•0 comments

Montana's plan to become an experimental medical hub just pushed forward

https://www.technologyreview.com/2026/07/30/1140942/montana-experimental-medical-hub-pushed-forwa...
1•bilsbie•35m ago•0 comments

Power 2026 – Electricity Pricing in the Age of AI

https://power2026.ai/
1•nsomani•35m ago•0 comments

Gov't Subreddit for US Secret Service Applicants Bans Discussion of Polygraphs

https://antipolygraph.org/blog/2026/07/30/government-controlled-reddit-community-for-u-s-secret-s...
2•Teever•36m ago•0 comments