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

Comments

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

If you care about security you might want to move the iPhone Camera app

https://blog.jgc.org/2025/12/if-you-care-about-security-you-might.html
1•jgrahamc•55s ago•0 comments

In defense of starting with bloatware: my journey from Next.js to syscalls

https://www.danielfalbo.com/weblog/bloatware-to-syscalls
1•danielfalbo•5m ago•0 comments

Tell HN: I switched my iPhone to black and white and it's nice

2•apples_oranges•11m ago•0 comments

One Formula That Demystifies 3D Graphics

https://www.youtube.com/watch?v=qjWkNZ0SXfo
1•mthomas•12m ago•0 comments

Snow-capped Mount Etna erupts as skiers glide down slopes

https://www.bbc.com/news/videos/cz7n4px7e41o
1•tosh•12m ago•0 comments

You are probably not at inbox 0 (but should be) [2013]

https://ploum.net/why-you-are-not-at-inbox-0/index.html
2•maartin0•14m ago•1 comments

The hidden way the big, bad wolf protects us

https://www.washingtonpost.com/climate-environment/interactive/2025/gray-wolfs-safer-roads-delist...
2•pseudolus•15m ago•1 comments

How we achieved 30% Faster Queries by overcoming ClickHouse's native JSON limits

https://newsletter.signoz.io/p/overcoming-clickhouses-json-constraints
1•pranay01•15m ago•0 comments

Brazil's first arid zone is a stark warning for the whole country

https://www.theguardian.com/global-development/2025/dec/28/brazil-first-arid-zone-stark-warning-f...
3•pera•16m ago•1 comments

Show HN: Writing USB Device Firmware with Raspberry Pi Pico and TinyUSB

https://www.youtube.com/playlist?list=PL4C3a7zUGIuYu48KsA3krgm7rtLJwse03
1•madrajib•17m ago•0 comments

Wall Street is stealing from volunteer fire departments [video]

https://www.youtube.com/watch?v=t7GXVscHPfQ
1•xbmcuser•21m ago•0 comments

Success

https://snook.ca/archives/other/success
1•vishnuharidas•23m ago•0 comments

AI upheaval shows little sign of lessening

https://www.ft.com/content/728b03a4-cef3-4ee9-a421-d681998ef7d8
1•1vuio0pswjnm7•24m ago•0 comments

Kubernetes Garbage Collection

https://github.com/kube-zen/zen-gc
1•kubezen•25m ago•0 comments

I got tired of buying bad US B2B leads, so I built my own

https://rangelead.com/
1•RangeLead•25m ago•0 comments

'Year in review: AI's cultural surprises – and failures'

https://thenewstack.io/year-in-review-ais-cultural-surprises-and-spectacular-failures/
1•MilnerRoute•25m ago•0 comments

Why your AI companion is not your friend

https://www.ft.com/content/f3658db4-0bd5-4a0e-af9f-8f7a14f05603
2•1vuio0pswjnm7•25m ago•0 comments

A visual essay on octopi and falcons

https://joshfonseca.com/blogs/favorite-animals
1•vuciv•27m ago•0 comments

Thalassophobia

https://en.wikipedia.org/wiki/Thalassophobia
1•sowbug•31m ago•1 comments

Show HN: Brain Browser with Agent IDE

https://github.com/notforyou23/COSMO_BrainStudio
1•notforyou23•34m ago•0 comments

Show HN: AI 3D Model Generator

https://3d-generator.com
2•jokera•37m ago•0 comments

PEP 761 – Deprecating PGP signatures for CPython artifacts (2024)

https://peps.python.org/pep-0761/
2•marksomnian•47m ago•2 comments

World's largest functioning musical instrument: Wanamaker Organ in Philadelphia

https://en.wikipedia.org/wiki/Wanamaker_Organ
2•bookofjoe•47m ago•0 comments

Fail Faster on Your Ideas

https://martianlantern.github.io/2025/12/fail-faster-on-your-ideas/
1•martianlantern•48m ago•0 comments

Show HN: I built a replit game where you need to kill debuggers[Glitch Survival]

https://glitch-survival.replit.app
2•altras•49m ago•1 comments

Chemistry Experiments: working virtual lab

https://chemistry-en.nobook.com/console/templates/resource
2•danboarder•52m ago•0 comments

Haskelling My Typst

https://unnamed.website/posts/haskelling-my-typst/
3•todsacerdoti•53m ago•0 comments

OpenVINO – open-source toolkit for optimizing and deploying AI inference

https://github.com/openvinotoolkit/openvino
3•peter_d_sherman•53m ago•0 comments

Automating Deception: Scalable Multi-Turn LLM Jailbreaks

https://arxiv.org/abs/2511.19517
2•PaulHoule•53m ago•0 comments

A reason to know more facts

https://blog.ninapanickssery.com/p/a-reason-to-know-more-facts
2•jger15•53m ago•0 comments