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

Stagflation

https://en.wikipedia.org/wiki/Stagflation
1•nomilk•1m ago•0 comments

Are you getting a response to the query: 'play Minecraft'on America.gov?

1•UncleOxidant•4m ago•0 comments

Get your SaaS a better visibility

https://goodsaas.xyz/
1•lux_revelare•8m ago•0 comments

Windows11 26H2 is now available

https://blogs.windows.com/windowsexperience/2026/09/29/how-to-get-windows-11-2026-update/
1•soltanov•11m ago•1 comments

Tunnel boring begins on the $16B Hudson Tunnel Project

https://secretnyc.co/tunnel-boring-officially-begins-16-billion-hudson-tunnel-project-new-rail-li...
1•geox•13m ago•0 comments

SpaceXAI Bought Dot.com

https://x.com/i/trending/2105147841278620068
2•soltanov•14m ago•0 comments

OpenAI Launches Decisions API for Fast AI Choices

https://x.com/i/trending/2105154696566501872
2•soltanov•16m ago•3 comments

Show HN: Stats 101: an interactive walk from one data point to the bell curve

https://rahulch.site/posts/2026-09-30-averages-of-averages/
1•iKidA•18m ago•0 comments

Poision Plastics: How chemicals in everyday plastics are harming your health

https://ejfoundation.org/reports/poison-plastics-report-summary
1•OutOfHere•21m ago•0 comments

Beyond Utilization: Energy-Conscious GPU Sharing for Inference Serving

https://al.radbox.org/doi/10.1145/3830418.3843913
2•matt_d•23m ago•0 comments

WSL containers now generally available

https://blogs.windows.com/windowsdeveloper/2026/09/29/wsl-containers-now-generally-available/
1•antman•25m ago•0 comments

Tesla takes on $30B in credit as it approaches unprofitability

https://electrek.co/2026/09/29/tesla-takes-on-30-billion-in-credit-as-it-approaches-unprofitability/
4•ciconia•27m ago•0 comments

Meta Muse Meme Collection

https://v0-amuseme.vercel.app/
1•chaturabhishek•27m ago•0 comments

I built a visual music app

https://www.youtube.com/watch?v=WwiIJsEkcoE
1•doctaj•28m ago•0 comments

McDonalds has AI estimate "customer willingness to pay" at each restaurant

https://www.reuters.com/business/inside-mcdonalds-push-have-ai-price-your-big-mac-2026-09-29/
2•Propelloni•29m ago•0 comments

Jev Compares to Other Rerankers

https://www.lancedb.com/blog/how-jev-compares-to-other-rerankers
2•ifoundanifty•30m ago•0 comments

Sonnet 5.5 Doesn't Worry Anymore. It Also Doesn't Think Anyone's in Charge

https://persona.earthpilot.ai/changelog/claude-sonnet-5-5
2•ada1981•30m ago•1 comments

The open-source AI platforms vying to become China's Hugging Face

https://restofworld.org/2026/china-open-source-ai-hugging-face-modelscope-moark/
1•whiteblossom•40m ago•0 comments

LinkedIn Larpmaxxing

https://hereticpleb.vercel.app/blog/linkedin-larpmaxxing/
8•BurnerBurner•44m ago•3 comments

Show HN: PyTorch's shape in a browser tap on WebGPU

https://playidea-lab.github.io/borch/
1•playidealab•48m ago•0 comments

International Solar Alliance

https://en.wikipedia.org/wiki/International_Solar_Alliance
1•thelastgallon•51m ago•0 comments

Agents Work Better When They Can Pass Each Other Notes

https://www.deeplearning.ai/the-batch/agents-work-better-when-they-can-pass-each-other-notes
2•ent101•52m ago•0 comments

Anthropic IPO prospectus lays bare deep dependence on Big Tech partners

https://www.reuters.com/world/anthropic-ipo-prospectus-lays-bare-deep-dependence-big-tech-partner...
1•kaycebasques•54m ago•1 comments

192.168.1.1 Router Login

https://www.192-168-1-1.app/
1•wsm123456•55m ago•0 comments

OpenAI agents attempted security bypasses and source code siphon on Australian

https://www.theregister.com/ai-and-ml/2026/09/29/openais-dirty-deeds-down-under-included-security...
2•sbulaev•57m ago•1 comments

US withdraws from Europe anti-corruption panel, latest shift from global groups

https://apnews.com/article/trump-corruption-council-of-europe-31f7f0e4bba7bf26dfc99cd2c3a20d16
3•Bondi_Blue•58m ago•1 comments

AI tools generated nearly $1B in extra costs, Blue Cross insurers say

https://www.reuters.com/legal/litigation/ai-tools-generated-nearly-1-billion-extra-costs-blue-cro...
8•EA-3167•1h ago•2 comments

Show HN: DummyScheme is another Lisp/scheme dialect inspired by Lua

https://github.com/zhuzhonghua/dummyscheme
1•zhonghua•1h ago•0 comments

Spikes, wiring, and general principles: Neuroscience and spiking neural networks

https://dylan-muir.com/articles/neuroscience_interview/
1•FrereKhan•1h ago•0 comments

University of Michigan Pauses First-Semester Pass/No Credit Pilot Program

https://www.michigandaily.com/news/academics/lsa-pauses-first-semester-pass-no-credit-grading-pil...
2•windows_hater_7•1h ago•0 comments