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

The Shadowy World of Eurasian Organized Crime

https://intpolicydigest.org/the-shadowy-world-of-eurasian-organized-crime/
1•bryanrasmussen•44s ago•0 comments

AI Ambition: ArtCraft Cloned Photoshop and Now Wants to "Rebuild Everything"

https://latent.space/p/artcraft/
1•adunk•55s ago•0 comments

Runitlocal.io – Run AI on your own hardware

https://runitlocal.io/
1•rzk•2m ago•0 comments

I created an infinitely generated radio show

https://voca.watch/
1•salakar•4m ago•1 comments

Fixing a WebKit bug to see if promises are made of train tracks

https://alistair.sh/thenables
1•alistaiir•8m ago•0 comments

Show HN: No Microsoft 365? Get your work done on my simulated typewriters

https://typewriter.foxipso.com/
1•IAmNotACellist•11m ago•0 comments

Global warming may have halted an emerging Ice Age, study suggests

https://phys.org/news/2026-10-global-halted-emerging-ice-age.html
1•duck•14m ago•0 comments

247A, Notes 4: Weighted estimates and pseudodifferential operators

https://terrytao.wordpress.com/2026/11/12/247a-notes-4-weighted-estimates-and-pseudodifferential-...
1•smilelamp•16m ago•0 comments

For Silicon Valley leaders, cozying up to the Trump administration was a mistake

https://www.theatlantic.com/ideas/2026/11/silicon-valley-trump-administration/689360/
4•e2e4•23m ago•0 comments

A $5.7T Face-Plant

https://www.theatlantic.com/technology/2026/11/jensen-huangs-icarus-complex/689393/
1•petethomas•24m ago•1 comments

PancakeSlicer: Self-hostable and non-planar slicer for 3D Printing

https://github.com/ZimengXiong/PancakeSlicer
1•danielepolencic•25m ago•0 comments

JSON Is Lying to You

https://blog.gaborkoos.com/posts/2026-08-03-Your-JSON-Is-Lying-to-You/
1•fagnerbrack•26m ago•1 comments

Show HN: Wonderchat – A Zendesk alternative that doesn't charge per seat

https://wonderchat.io/
2•walkingsunrise•27m ago•0 comments

Secure Exclaves and Ambient Sensing

https://security.apple.com/blog/secure-exclaves/
1•nnx•27m ago•0 comments

The Miracle Cure: In 1977, a drug rejected by doctors became a sensation

https://slate.com/technology/2026/11/doctor-medicine-cancer-cure-pill-history.html
1•mutexjp•28m ago•0 comments

Show HN: LinkBunny Shooter

https://linkbunnyshooter.com/
1•hboon•34m ago•0 comments

Show HN: Zero-axiom Lean 4 proof of Yang–Mills R^4 defect via Peano arithmetic

https://github.com/Dr-Logvinovich/round-square
3•DRLogvinovich•39m ago•0 comments

Introducing: Qualiaphobic AI – By Erik Hoel

https://www.theintrinsicperspective.com/p/introducing-qualiaphobic-ai
1•RebelPotato•49m ago•0 comments

The White House is apparently a popular residential proxy exit spot

https://www.theregister.com/security/2026/11/05/the-white-house-is-apparently-a-popular-residenti...
2•noorsimar•50m ago•1 comments

United Airlines blocks AI agents from booking flights

https://techcrunch.com/2026/11/12/united-airlines-blocks-ai-agents-from-booking-flights-citing-cy...
3•askadityapandey•52m ago•1 comments

Gathering any crazy hardware ideas – iron man suit?

1•EricZ0115•53m ago•1 comments

Show HN: Chap – Meeting notes from live captions (no bot) with any LLM or agent

https://chatpanel.net/
2•veeragoni•55m ago•0 comments

Researchers detail over 1,500 verified cases of children with past-life memories

https://www.wbur.org/hereandnow/2026/11/11/child-reincarnation
4•ajmagnifico•1h ago•1 comments

Show HN: PracticeCalculus, learn calculus by solving problems

https://practicecalculus.com
2•ohpauladams•1h ago•0 comments

Global Microsoft Outage

https://www.cnn.com/2026/11/12/business/live-news/microsoft-global-outage-intl-hnk
16•TechTechTech•1h ago•0 comments

Intelligent women get less help at work, study finds

https://www.dw.com/en/intelligent-women-get-less-help-at-work-study-finds/a-79910881
2•rohanm93•1h ago•0 comments

[dupe] Gen X will outnumber Boomers in Congress for the first time

https://www.kadoa.com/congress/insights/congress-generations
2•hubraumhugo•1h ago•1 comments

Anthropic Says Its AI Model Cut AMD Chip Switch to Three Days

https://finance.yahoo.com/technology/ai/articles/anthropic-says-ai-model-cut-154824196.html
2•cyh555•1h ago•0 comments

Microsoft says attempts to fix global outage not going 'as expected'

https://www.bbc.com/news/live/cq5y10ge3dp3t
12•saikatsg•1h ago•6 comments

Use systemd-run as an alternative for screen

https://makandracards.com/operations/521736-systemd-run-alternative-screen
4•ankitg12•1h ago•0 comments