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

Comments

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

Mark Zuckerberg overruled 18 wellbeing experts to keep beauty filters on Insta

https://www.ft.com/content/0c6d8ff6-f207-431b-bfb9-1d8b42bb4b6d
1•1vuio0pswjnm7•3m ago•0 comments

Ask HN: How much are you spending on OpenClaw API calls?

1•muddi900•5m ago•0 comments

Tech firms will have 48 hours to remove abusive images under new law

https://www.bbc.co.uk/news/articles/cz6ed1549yvo
1•mmarian•5m ago•0 comments

Mark Zuckerberg: "I don't have a college degree in anything"

https://web.archive.org/web/20260218213815/https://www.cnbc.com/2026/02/18/meta-mark-zuckerberg-s...
1•1vuio0pswjnm7•10m ago•1 comments

I made a OpenClaw alternative. which is faster and secure. Powered by rust

https://deepcli.org/
2•alwassikhan•11m ago•0 comments

Old School Visual Effects: The Cloud Tank (2010)

http://singlemindedmovieblog.blogspot.com/2010/04/old-school-effects-cloud-tank.html
1•exvi•13m ago•0 comments

Show HN: Nxcode – Turn natural language into full-stack, revenue-ready SaaS apps

https://www.nxcode.io/zh
1•iivyvii•14m ago•0 comments

Show HN: Potatometer – Check how visible your website is to AI search (GEO)

https://potatometer.com/
3•apswin•15m ago•0 comments

Conservative versus Predictive Processing (2015)

https://philosophyofbrains.com/2015/12/15/conservative-versus-radical-predictive-processing.aspx
1•l33tbro•16m ago•0 comments

US funding for global internet freedom 'effectively gutted'

https://www.theguardian.com/world/2026/feb/19/us-funding-for-global-internet-freedom-effectively-...
2•xyzal•16m ago•0 comments

Show HN: Cancel Me – A browser game which parodies dark cancellation patterns

https://cancel-me.marcelmichau.workers.dev
1•SellusWallace•16m ago•0 comments

Show HN: Paste your startup pitch, get a VC-readiness score (0–100)

https://www.gias.co/score
2•akshay_bhardwaj•25m ago•1 comments

Sayou – Open-source Dropbox for AI agents

6•syumpx•25m ago•2 comments

Bifrostbridge.xyz – open-source MIT license P2P discord replacement

https://gitlab.com/sfusco/bifrostbridge.xyz
2•reklis•28m ago•0 comments

Understanding Deep Learning

https://udlbook.github.io/udlbook/
2•duck•29m ago•0 comments

Best way to give feedback to Claude

https://www.getautonoma.com/contact
2•Escafati•30m ago•0 comments

Psychosis.hn

https://sajarin.com/blog/psychosis/
2•Sajarin•32m ago•1 comments

Show HN: Sornic – Listen to any article, PDF, or book page (no signup)

https://sornic.com
2•digi_wares•33m ago•0 comments

Turn YouTube into Safe, Curated Experience

https://www.chukkl.com/live-tv?guide=fd543867-9fd7-47ef-8de6-ad560ee7abfd
2•nickzier•33m ago•1 comments

Show HN: I built an AI that generates pixel art sprite animations

https://rika-ai.com/
2•amusingyyy•34m ago•0 comments

Githuman

https://githuman.dev/
1•handfuloflight•36m ago•0 comments

Mrhbaan Syria Fedora now available in Syria

https://fedoramagazine.org/fedora-syria/
1•abdelhousni•38m ago•0 comments

On-demand Kafka sinks on your K8s cluster

https://tech.trivago.com/post/2026-02-18-from-always-on-to-on-demand-scaling-kafka-sinks-with-keda
1•robbixcx•41m ago•0 comments

Design Reference Platforms Beyond Dribbble

https://jsdevspace.substack.com/p/20-design-reference-platforms-beyond
1•javatuts•42m ago•0 comments

Show HN: I Stopped Writing Code – The 60/40 Rule for AI-Native Engineering

https://github.com/myinvestpilot/ai-architecture/blob/main/docs/02_ai_driven_development.md
1•madawei2699•42m ago•0 comments

Sciter – Embeddable HTML/CSS/JavaScript Engine

https://sciter.com/
2•Tiberium•46m ago•0 comments

Stoolap/Node: A Native Node.js Driver That's Surprisingly Fast

https://stoolap.io/blog/2026/02/19/introducing-stoolap-node/
3•murat3ok•47m ago•0 comments

Why fetch(keepalive) Broke My Analytics Events in High-Latency Regions

https://www.adwait.me/writings/broke-my-analytics-events-in-high-latency-regions
1•adwait12345•50m ago•1 comments

What causes snow slopes to collapse? A physicist and skier explains

https://theconversation.com/tahoe-avalanche-what-causes-snow-slopes-to-collapse-a-physicist-and-s...
1•1659447091•53m ago•0 comments

Apple has a transparency issue [video]

https://www.youtube.com/watch?v=ejPqAJ0dHwY
1•ksec•57m ago•0 comments