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

Built to benefit everyone: our plan

https://openai.com/index/built-to-benefit-everyone-our-plan/
1•mstevens•54s ago•0 comments

Scott and Mark Learn to Vibe Check with Steve Sanderson [video]

https://www.youtube.com/watch?v=zh6fMtL_cSM
1•joshka•1m ago•0 comments

Flat Datacenter Networks at Scale

https://perspectives.mvdirona.com/2026/06/flat-datacenter-networks-at-scale/
1•zdw•1m ago•0 comments

Position paper: Agents should train on their histories, not just retrieve them

https://zenodo.org/records/20583812
1•iamevandrake•1m ago•0 comments

Solar Energy Saves Europeans $135M a Day

https://cleantechnica.com/2026/06/08/solar-energy-saves-europeans-135-million-a-day/
1•vrganj•1m ago•0 comments

Show HN: Open-source plugin that builds single-file HTML decks for coding agents

https://github.com/FluidForm-ai/fluiddocs-deck-builder
1•naggarwal29•2m ago•0 comments

Pentagon Says Alibaba, Baidu, BYD, and Unitree Support China's Military

https://techcrunch.com/2026/06/08/pentagon-says-alibaba-baidu-byd-and-unitree-support-chinas-mili...
1•netfortius•2m ago•1 comments

Show HN: Dochost – turn AI output into a shareable link

https://dochost.io
1•sailorpro•2m ago•0 comments

The Math of Fitting In

https://omnia.sas.upenn.edu/story/math-fitting-in-language-acquisition-social-norms-yang
1•wjb3•3m ago•0 comments

Efficient Training on Multiple Consumer GPUs with RoundPipe

https://arxiv.org/abs/2604.27085
1•PaulHoule•4m ago•0 comments

Govt websites, security, and the dreaded f12

https://github.com/Evillare/EMCCA---potential-berach-in-authentication-and-security/tree/main
1•Evillare•4m ago•0 comments

Noyb launches class action over CRIF's scoring system in Austria

https://noyb.eu/en/secret-scoring-join-crif-class-action-now
1•buzer•4m ago•0 comments

Even light drinking raises risk of cancer, heart disease, and early death

https://www.eurekalert.org/news-releases/1131274
1•stringfood•7m ago•0 comments

They Spent Years on a Math Problem. Then They Were Scooped by A.I

https://www.nytimes.com/2026/06/08/science/ai-scoop-young-mathematicians.html
1•digital55•7m ago•0 comments

macOS 27 Beta Breaks the Ability to Boot Asahi Linux

https://www.phoronix.com/news/macOS-27-Beta-Breaks-Asahi
2•josephcsible•9m ago•0 comments

The Conductor Rewrite: What They Changed to Make It Fast

https://performance.dev/the-conductor-rewrite
1•Charlieholtz•9m ago•0 comments

Can LLMs Beat Classical Hyperparameter Optimization Algorithms?

https://arxiv.org/abs/2603.24647
2•galsapir•10m ago•0 comments

A New Symbolism for the Propositional Calculus (1954) [pdf]

http://www.nsl.com/k/parry/parry.pdf
1•tosh•11m ago•0 comments

Quantum Weak Measurement: Validating Cheng's Cosmological Model

https://medium.com/@f9121212/the-convergence-of-quantum-weak-measurement-and-metaphysical-conject...
2•ortrich•11m ago•0 comments

Show HN: A terminal writing environment with Git, E2EE sync and temporal search

1•sys-ronin•11m ago•1 comments

Show HN: Cate – open-source canvas IDE for agentic coding workflows

https://cate.cero-ai.com
2•Imbiss•12m ago•0 comments

China Preps $295B Plan to Fund Nationwide AI Buildout

https://www.bloomberg.com/news/articles/2026-06-09/china-prepares-295-billion-plan-to-fund-nation...
3•1una•13m ago•1 comments

German Tourists Get Stuck in Bighorns After Following Google Maps

https://cowboystatedaily.com/2026/06/08/german-tourists-get-stuck-in-bighorns-after-following-goo...
1•Bender•13m ago•0 comments

Deep Neural Networks for YouTube Recommendations (2016) [pdf]

https://static.googleusercontent.com/media/research.google.com/en//pubs/archive/45530.pdf
1•Olshansky•15m ago•0 comments

Alberta pitches cheap NatGas for data center boom, at odds with CA's green aims

https://www.reuters.com/business/energy/alberta-pitches-cheap-natural-gas-data-center-boom-odds-w...
1•alephnerd•17m ago•0 comments

macOS 27 requires Apple Silicon, as Apple draws down the Intel Mac era

https://arstechnica.com/gadgets/2026/06/macos-27-requires-apple-silicon-as-apple-draws-down-the-i...
3•Brajeshwar•17m ago•0 comments

Show HN: I built 10 ML algos from scratch because fit() predict() are not enough

https://github.com/ml-from-scratch-book/code
2•akmoleksandr•17m ago•1 comments

Writing a cover letter in 2026: nail it or skip it

https://relocateme.substack.com/p/how-to-write-a-cover-letter-in-2026
2•andrewstetsenko•19m ago•0 comments

UK Orders Apple, Google to Auto-Block Explicit Content on Kids' Devices

https://www.techbuzz.ai/articles/uk-orders-apple-google-to-auto-block-explicit-content-on-kids-de...
1•Vaslo•19m ago•0 comments

A16Z, Paradigm lead $175M bet to move global credit markets onchain

https://www.coindesk.com/business/2026/06/09/a16z-paradigm-lead-usd175-million-bet-to-move-global...
1•Varun-Sakhuja•19m ago•0 comments