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•8mo ago

Comments

trbndev•8mo 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•8mo ago
That link is broken. Correct link: https://t128n.github.io/writings/2025-05-02_optimizing_searc...
trbndev•8mo 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•8mo 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•8mo 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•8mo 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•8mo 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

Moondala – Social commerce where users earn from referrals, not ads

https://moondala.one/r/2S7B6R
1•HamoodBahzar•4m ago•1 comments

Moltbot Security Guide: Protect Your VPS from Hackers and Vulnerabilities

https://veerhost.com/moltbot-security-guide/
2•aymanaljunaid•6m ago•0 comments

Ycyvw23hoUg Jh

1•BONL•8m ago•1 comments

HetGPU: The pursuit of making binary compatibility towards GPUs

https://arxiv.org/abs/2506.15993
1•adgnaf•9m ago•1 comments

Ask HN: Do you verify AI-generated content before publishing?

1•kumathpratik•13m ago•0 comments

Teleology

https://en.wikipedia.org/wiki/Teleology
2•downboots•14m ago•0 comments

Minnesota Proved MAGA Wrong

https://www.theatlantic.com/ideas/2026/01/the-neighbors-defending-minnesota-from-ice/685769/
1•mitchbob•14m ago•3 comments

Decoded: GNU Coreutils (2019)

https://www.maizure.org/projects/decoded-gnu-coreutils/
2•Ariarule•16m ago•0 comments

The novelist who took on the Italian mafia – and lived to tell the tale

https://www.thetimes.com/culture/books/article/sicilian-man-leonardo-sciascia-rise-mafia-struggle...
2•Thevet•18m ago•0 comments

AI Coloring Pages Generator

https://aicoloringpage.org/
2•Evan233•21m ago•0 comments

I built a Cursor for writers" on a $7 budget using Groq and Llama 3

1•minotauris•22m ago•2 comments

AI discovers 12 of 12 OpenSSL zero-days (while curl cancelled its bug bounty)

https://www.lesswrong.com/posts/7aJwgbMEiKq5egQbd/ai-found-12-of-12-openssl-zero-days-while-curl-...
1•excited-dev-11•22m ago•0 comments

Use FinTinAI to Master Your Financial Future

https://fintinai.com
1•Xmire•22m ago•1 comments

I built hidden emotion detection application

https://subtlesense.lovable.app
2•naiyya_thapa•23m ago•0 comments

A "Pure Go" Linux Environment, Ported by Claude

https://www.jtolio.com/2026/01/tinyemu-go/
1•varunramesh•23m ago•0 comments

Claude Code and Executive Function

https://til.andrew-quinn.me/posts/claude-code-and-executive-function/
1•hiAndrewQuinn•24m ago•0 comments

The Rise, Fall, and Rebirth of Clawdbot in 72 Hours

https://www.everydev.ai/p/the-rise-fall-and-rebirth-of-clawdbot-in-72-hours
3•devhouse•24m ago•0 comments

How the new era of CEO supervillains are trapped in their own ideology

https://statmodeling.stat.columbia.edu/2026/01/27/facebook-and-the-inherent-incoherence-of-the-id...
2•mandevil•28m ago•0 comments

What happened to the technical drawings of old and obsolete vehicles, machines?

https://old.reddit.com/r/AskEngineers/comments/1af8muv/what_happened_to_the_blueprintstechnical_d...
2•num42•31m ago•1 comments

Show HN: A browser-only image processing pipeline inspired by macOS Automator

https://picturekit.app/en
1•margox•31m ago•0 comments

Boston – MIT grad, Polaroid engineer's basement band side hustle

https://www.youtube.com/watch?v=OYyaKZ2aiiU
1•burnt-resistor•35m ago•0 comments

Show HN: WordRE, Wordle for Real Estate

https://reidsherman.com/wordre/
1•reidjs•35m ago•0 comments

SQLite in Production? Not So Fast for Complex Queries

https://yyhh.org/blog/2026/01/sqlite-in-production-not-so-fast-for-complex-queries/
1•huahaiy•36m ago•0 comments

Amazon accidentally sends email confirming layoffs

https://www.bbc.com/news/articles/cx2ywzxlxnlo
3•sixhobbits•37m ago•0 comments

What Machines Want

http://www.miskatonian.com/2026/01/26/do-machines-have-desires-a-philosophical-critique-of-the-ai...
2•bm3719•41m ago•0 comments

Trust them, don't trust it

https://bfswa.substack.com/p/trust-them-dont-trust-it
2•zdw•44m ago•0 comments

The Indian Work Culture – Masochistic, Poor, Intense and Fragile

https://grajmanu.wordpress.com/2020/11/01/indian-work-culture/
3•grajmanu•46m ago•0 comments

CooperBench: Benchmarking AI Agents' Cooperation

https://cooperbench.com/
1•SomaticPirate•47m ago•0 comments

Google pays $68M to settle claims its voice assistant spied on users

https://www.msn.com/en-us/news/technology/google-pays-68-million-to-settle-claims-its-voice-assis...
2•keepamovin•48m ago•1 comments

Strategic Violence as Forceful Epistemic Renegotiation

https://grajmanu.wordpress.com/2025/04/09/violence-is-good2/
2•grajmanu•49m ago•0 comments