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

Show HN: Linux Journey for iOS

https://apps.apple.com/us/app/linux-journey/id6770861660
1•huhuhang•3m ago•0 comments

SpaceX Vow to Loft 1M AI Satellites Could Spark Doomsday Dive

https://www.forbes.com/sites/kevinholdenplatt/2026/05/31/spacex-vow-to-loft-1-million-ai-satellit...
1•paulpauper•9m ago•0 comments

Show HN: Memex – A local-first AI journal that keeps everything as Markdown

https://github.com/memex-lab/memex
1•sparkleMing•10m ago•0 comments

Diffusion over Networks

https://camerongordon0.substack.com/p/diffusion-over-networks
1•iciac•14m ago•0 comments

Anthropic is conditioning our minds

2•ms_menardi•15m ago•2 comments

The true reason C++ always wins [video]

https://www.youtube.com/watch?v=I7fEsbksKRE
1•AareyBaba•16m ago•0 comments

CVE-2026-31525: Linux Kernel Privilege Escalation Flaw

https://www.sentinelone.com/vulnerability-database/cve-2026-31525/
1•Wingy•19m ago•0 comments

U.S. Midterms Have a Cyber Problem, but It's Not at the Ballot Box

https://blog.checkpoint.com/exposure-management/the-2026-u-s-midterms-have-a-cyber-problem-but-it...
7•gnabgib•30m ago•2 comments

Show HN: LeetCode EasyRepeat – Anki for LeetCode

https://github.com/yc1838/LeetCode-EasyRepeat
1•yc1838•30m ago•0 comments

I Got $4.84 from a Class Action and They Didn't Want Me to Have It

https://labnotes.org/i-got-4-84-from-a-class-action-settlement-and-they-really-really-didnt-want-...
3•speckx•30m ago•0 comments

Election interlopers register 5K+ domains, hope to catch some voting phish

https://www.theregister.com/security/2026/06/01/5k-election-domains-registered-ahead-of-us-midter...
2•Bender•35m ago•1 comments

X.org Server Starts June Nine New Security Vulnerabilities Discovered via AI

https://www.phoronix.com/news/X.Org-9-Vulnerabilities-AI
1•Bender•36m ago•0 comments

Texas adds another solar farm as ERCOT grid demand soars

https://electrek.co/2026/06/01/texas-adds-another-huge-solar-farm-ercot-grid-demand-soars/
4•Bender•39m ago•0 comments

TLDR – Summarize paragraphs in real-time through Firefox

https://github.com/chudweiser/TLDR
1•chudweiser•41m ago•0 comments

Why Study CS? Thoughts on LLM-assisted software engineering

https://kmicinski.com/claude-code-and-why-study-cs
3•jruohonen•48m ago•0 comments

Anthropic and the caravel problem

https://radval.me/articles/anthropic-and-the-caravel-problem
2•rad_val•50m ago•1 comments

Why are audio front ends still optimized for CPUs? (MelT)

https://arxiv.org/abs/2606.01009
2•augustocamargo•53m ago•0 comments

Experts sound alarm over Elon Musk's 'coup' that's 'about to rob your 401k'

https://www.rawstory.com/elon-musk-2676979515/
15•xbmcuser•56m ago•1 comments

Shfl

https://shuffle.com?r=OWbDsJFjR1
2•conheohaiyen•57m ago•1 comments

Show HN: Transposify–change Spotify song key from your menubar for singing

https://github.com/evanhu1/transposify
2•evanhu_•1h ago•0 comments

Angry devs vow to flee GitHub Copilot as metered billing takes hold

https://www.theregister.com/ai-and-ml/2026/06/02/github-copilot-users-threaten-exit-as-metered-bi...
6•jay_kyburz•1h ago•2 comments

Neuropixels Opto: combining high-resolution electrophysiology and optogenetics

https://www.nature.com/articles/s41592-026-03076-z
3•bookofjoe•1h ago•0 comments

How to Optimize a CUDA Matmul Kernel for cuBLAS-Like Performance: A Worklog

https://siboehm.com/articles/22/CUDA-MMM
1•Areibman•1h ago•0 comments

Starbucks retired its AI agent just months after deployment

https://finance.yahoo.com/sectors/technology/articles/starbucks-quietly-retired-ai-agent-19225909...
1•cdrnsf•1h ago•2 comments

Show HN: Playing with genomics foundation models | Tutorial/Explainer article

https://dillondesilva.substack.com/p/playing-with-genomics-foundation
1•dillondesilva•1h ago•0 comments

More Time to Think

https://ma.ttias.be/more-time-to-think/
2•nreece•1h ago•0 comments

macOS needs its grid back

https://blog.hopefullyuseful.com/blog/macos-needs-its-grid-back/
53•ranebo•1h ago•25 comments

Interop 2026: Continuing to improve the web for developers

https://web.dev/blog/interop-2026
2•Topfi•1h ago•0 comments

Miasma supply chain attack: malicious code found in RedHat-cloud-services NPM

https://snyk.io/blog/miasma-supply-chain-attack-malicious-code-redhat-cloud-services-npm-packages/
1•jruohonen•1h ago•0 comments

Crystal Nights (2008)

https://www.gregegan.net/MISC/CRYSTAL/Crystal.html
9•rorylawless•1h ago•0 comments