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

How to Write Articles and Essays Quickly and Expertly (2006)

https://www.downes.ca/post/38526
1•downbad_•1m ago•0 comments

Nine Things I Learned in Ninety Years [pdf]

https://edwardpackard.com/wp-content/uploads/2026/04/Nine-Things-I-Learned-In-Ninety-Years.pdf
1•jimsojim•1m ago•0 comments

Kaiden: Workstation AI Sandbox Desktop Application

https://openkaiden.ai/
1•illusive4080•1m ago•1 comments

Ebola epidemic in DRC, Uganda public health emergency of international concern

https://www.who.int/news/item/17-05-2026-epidemic-of-ebola-disease-in-the-democratic-republic-of-...
2•JumpCrisscross•5m ago•0 comments

GDS weighs in on the NHS's decision to retreat from Open Source

https://shkspr.mobi/blog/2026/05/gds-weighs-in-on-the-nhss-decision-to-retreat-from-open-source/
1•ilreb•5m ago•0 comments

How Agile became a mis-Agile Disaster

https://medium.com/@andvgal/how-agile-became-a-mis-agile-disaster-1c1905cba329
1•andvgal•6m ago•0 comments

The age of thin clients and middle managers

https://kixpanganiban.bearblog.dev/the-age-of-thin-clients-and-middle-managers/
1•kixpanganiban•11m ago•0 comments

Claude Code Did the Heavy Lifting to Get Adobe Lightroom CC Running on Linux

https://www.phoronix.com/news/Adobe-Lightroom-CC-Linux
2•bno1•12m ago•0 comments

Your browser probably lies to the big sites (blame Chrome)

https://hackaday.com/2026/05/16/your-browser-probably-lies-to-the-big-sites-blame-chrome/
1•notpushkin•17m ago•0 comments

China bypasses US GPU bans with 1.54-exaflops 'LineShine' supercomputer

https://www.tomshardware.com/tech-industry/artificial-intelligence/china-bypasses-us-gpu-bans-wit...
1•giuliomagnifico•17m ago•0 comments

Mnemonicai – AI that learns from your company's work, not your docs

https://mnemonic.nishantvanawala6118.workers.dev
1•Nishvana•21m ago•0 comments

AI in Finance: What Is Working Today

https://members.sigmazero.cc/posts/ai-in-finance-is-157955538?postId=ai-in-finance-is-157955538
2•sigmazero•21m ago•0 comments

Pixal3D: Pixel-Aligned 3D Generation from Images

https://ldyang694.github.io/projects/pixal3d/
2•steveharing1•24m ago•0 comments

Photo GIMP – A Patch for GIMP 3 for Photoshop Users

https://github.com/Diolinux/PhotoGIMP
1•SockThief•31m ago•0 comments

Private Networking on Hetzner Cloud with Tailscale

https://onatm.dev/2026/01/28/private-networking-on-hetzner-cloud-with-tailscale/
1•onatm•32m ago•0 comments

Agent skill for UB detection in Rust

https://twitter.com/i/status/2055439039692452106
1•Dowwie•33m ago•1 comments

A relatively brief explanation of Boltzmann Brains

https://www.lesswrong.com/posts/v8MSczS3CuoqMmTFw/a-relatively-brief-explanation-of-boltzmann-brains
1•joozio•37m ago•0 comments

Show HN: MaragingLoop: Autonomous Bare-Metal OS Agent

https://github.com/GistNoesis/MaragingLoop/
1•GistNoesis•37m ago•1 comments

No comment on this PR may mention the following topics

https://chaosfem.tw/@Athena/116578993491995353
1•colinprince•41m ago•0 comments

Klaxon a livr earthquake map with no back end

https://klaxon.live/
3•Accher•43m ago•0 comments

American Jobs with AI Exposure Are Starting to Disappear, Data Show

https://gizmodo.com/american-jobs-with-ai-exposure-really-are-starting-to-disappear-data-show-200...
1•pseudolus•45m ago•0 comments

Some Asexuals Are Using AI Companions for Intimacy Without the Sex

https://www.wired.com/story/some-asexual-people-are-using-ai-companions-for-intimacy-without-the-...
1•joozio•47m ago•0 comments

Opening a jar for 10 hours straight [video]

https://www.youtube.com/watch?v=X969XcyIHWY
3•pingou•58m ago•0 comments

AidaIDE – A desktop IDE built around SSH sessions

https://aidaide.app/vs/putty
1•westhemess•1h ago•0 comments

SlothDB is an OLAP DB ahead of DuckDB on Clickbench SQL database in C++20

2•souravroy78•1h ago•0 comments

Microsoft rejects critical Azure vulnerability report, no CVE issued

https://www.bleepingcomputer.com/news/security/microsoft-rejects-critical-azure-vulnerability-rep...
2•rurban•1h ago•1 comments

The 'Mythos Moment'

https://profserious.substack.com/p/the-mythos-moment
1•krona•1h ago•0 comments

Running Local Language Model on Game Boy Color

https://old.reddit.com/r/LocalLLaMA/comments/1tbi2n3/i_got_a_real_transformer_language_model_runn...
1•AbuAssar•1h ago•0 comments

SPF PermError: What Causes It and How to Fix It Step-by-Step

https://dmarcguard.io/blog/spf-permerror-fix/
1•meysamazad•1h ago•0 comments

How the New Testament Was Copied and Preserved

https://www.jeremysarber.com/p/how-the-new-testament-was-copied
3•meysamazad•1h ago•0 comments