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

Comments

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

The Physics of Squeaking Sneakers

https://arstechnica.com/science/2026/02/the-physics-of-squeaking-sneakers/
1•PaulHoule•57s ago•0 comments

Smarter, Faster, Personal: The New Google Workspace

https://workspace.google.com/blog/product-announcements/reimagining-content-creation
1•alokDT•1m ago•0 comments

Ideology, not science, drove the global prohibition of psychedelics

https://www.psypost.org/new-analysis-shows-ideology-not-science-drove-the-global-prohibition-of-p...
1•robtherobber•1m ago•0 comments

10x Is the New Floor

https://writing.nikunjk.com/p/10x-is-the-new-floor
1•vinhnx•1m ago•0 comments

White men will have 'fewer board seats' in future, says UK diversity chair

https://www.ft.com/content/2ef678ea-843c-45a1-abec-f81f48e7b8d2
1•pretext•1m ago•0 comments

Teaching LLMs to reason like Bayesians

https://research.google/blog/teaching-llms-to-reason-like-bayesians/
1•vinhnx•1m ago•0 comments

Studio Display XDR: Technology Overview [pdf]

https://www.apple.com/studio-display-xdr/pdf/Studio_Display_XDR_Technology_Overview_White_Paper.pdf
1•tosh•1m ago•0 comments

IDs+ Protocol: Solving the CJK Tokenization 'Byte-Premium' in LLMs

https://github.com/oruc001/IDS-Plus-Protocol
1•oruc001•2m ago•0 comments

How are you using local LLMs for code? (esp. security/IP protection)

1•antipaul•2m ago•0 comments

The Movie Buffs Who Track Film Profits as If They Work in Hollywood

https://www.wsj.com/arts-culture/film/fans-tracking-box-office-results-numbers-a18e12ef
1•sonabinu•3m ago•0 comments

Mira Murati's Thinking Machines strikes multibillion chip deal with Nvidia

https://www.ft.com/content/a8853057-c0a3-46f6-817f-7a23e79ea4e2
1•pretext•3m ago•0 comments

Abusing .arpa, the TLD that isn't supposed to host anything

https://www.infoblox.com/blog/threat-intelligence/abusing-arpa-the-tld-that-isnt-supposed-to-host...
1•birdculture•4m ago•0 comments

Are AI Tools Ready to Answer Patients' Questions About Their Medical Care?

https://jamanetwork.com/journals/jama/fullarticle/2846269
1•geox•6m ago•0 comments

Show HN: StateSurface – server-owned state and NDJSON streaming for MPA pages

https://github.com/superlucky84/state-surface
1•superlucky84•6m ago•1 comments

IronDiff – Network Config Backup and Analysis

1•MattRos•7m ago•0 comments

Ruby Users Forum February–March Update

https://www.rubyforum.org/t/monthly-update-february-wrap-up-march-preview/177
1•todsacerdoti•8m ago•0 comments

Amazon Wins Court Order Blocking Perplexity AI Shopping Bots

https://www.bloomberg.com/news/articles/2026-03-10/amazon-wins-court-order-blocking-perplexity-s-...
1•juokaz•9m ago•0 comments

Fooling AI Agents: Web-Based Indirect Prompt Injection Observed in the Wild

https://unit42.paloaltonetworks.com/ai-agent-prompt-injection/
2•tcbrah•9m ago•0 comments

Precision Learning Has the Potential to Do What Personalized Learning Could Not

https://www.the74million.org/article/precision-learning-has-the-potential-to-do-what-personalized...
1•jyunwai•10m ago•0 comments

Towards "Let's Encrypt" for Document Signing

https://documenso.com/blog/building-documenso-part-3---aes-qes-qtsp
1•ElTimuro•10m ago•1 comments

Amazon asks senior engineers to address issues created by 'AI assisted changes'

https://www.tomshardware.com/tech-industry/artificial-intelligence/amazon-calls-engineers-to-addr...
3•cdrnsf•10m ago•1 comments

Tesla FSD drives through railroad crossing barriers in viral video

https://electrek.co/2026/03/09/tesla-fsd-drives-through-railroad-crossing-barriers-viral-video/
1•nixass•10m ago•0 comments

Why on-device agentic AI can't keep up

https://martinalderson.com/posts/why-on-device-agentic-ai-cant-keep-up/
1•devy•11m ago•0 comments

Rust Coreutils 0.7 Released with Many Performance Optimizations

https://www.phoronix.com/news/Rust-Coreutils-uutils-0.7
1•Bender•11m ago•0 comments

$3 ChromeOS Flex stick will revive old and outdated computers

https://9to5google.com/2026/03/10/this-3-chromeos-stick-will-revive-old-and-outdated-computers/
2•pentagrama•12m ago•0 comments

Ultra-compact photonic AI chip operates at the speed of light

https://techxplore.com/news/2026-03-ultra-compact-photonic-ai-chip.html
1•Brajeshwar•13m ago•0 comments

Tiny transmitter could help scientists understand surprisingly social wasps

https://spectrum.ieee.org/rf-tags
1•Brajeshwar•13m ago•0 comments

Hiroo Onoda: The Japanese Soldier Who Continued Fighting World War II Until 1974

https://www.utterlyinteresting.com/post/hiroo-onoda-japanese-soldier-who-fought-ww2-until-1974
1•freediver•13m ago•0 comments

Experiments.md to stay sane down the rabbit hole

https://www.execfoo.de/blog/experiments.html
1•softwarehippie•14m ago•0 comments

Trump Admin Cyber Strategy Centers Private Sector in Offensive Cyber Operations

https://www.lawfaremedia.org/article/trump-admin-cyber-strategy-centers-private-sector-in-offensi...
1•hn_acker•14m ago•0 comments