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

You probably don't need extra electrolytes

https://www.economist.com/science-and-technology/2026/05/22/you-probably-dont-need-extra-electrol...
1•austinallegro•32s ago•0 comments

Introducing HRM-Text

https://sapient.inc/introducing-hrm-text/
1•aziis98•3m ago•0 comments

You probably don't need extra electrolytes

https://economist.com/science-and-technology/2026/05/22/you-probably-dont-need-extra-electrolytes
1•andsoitis•6m ago•0 comments

Authorization layer for AI agents (OAuth has no idea what your agent is doing)

https://www.tryagentgate.com/
1•ElamOlame•8m ago•0 comments

TrapDoor supply chain attack hits PyPI, NPM, and crates.io

https://socket.dev/blog/trapdoor-crypto-stealer-npm-pypi-crates
2•rvz•8m ago•0 comments

Local-Eye

https://localeye.co
1•rtsubber•11m ago•0 comments

AI is learning to fly airplanes – and aviation is starting to embrace it

https://www.cnn.com/2026/05/24/us/ai-flying-airplanes
1•reconnecting•12m ago•0 comments

In India, You Can Get Milk Delivered Faster Than It Takes to Make Coffee

https://www.wsj.com/business/logistics/in-india-you-can-get-milk-delivered-faster-than-it-takes-t...
2•ViktorRay•13m ago•0 comments

The Temporal Coherence of Music and Consciousness [video]

https://www.youtube.com/watch?v=_J2SyjBaToE
1•ersinesen•19m ago•0 comments

Show HN: Replacing a 3.4MB video with 40kb of GSAP

https://spanthi.com/blog/gsap-choreography/
1•vein05•20m ago•0 comments

I stay motivated as a solo-creator (2023)

https://herman.bearblog.dev/how-i-stay-motivated-as-a-solo-creator/
1•andsoitis•22m ago•0 comments

CEO Mark Zuckerberg's Senate Hearing

https://blog.acton.org/archives/101128-explainer-what-you-should-know-about-facebook-ceo-mark-zuc...
2•Caarticles•23m ago•0 comments

Monitoring and engaging in social media conversations during a crisis

https://www.tandfonline.com/doi/full/10.1080/23311975.2015.1084978
1•Caarticles•26m ago•0 comments

Private Members Area – Join Now

http://layana.meet2live.online
3•Charlotteer•27m ago•0 comments

Forward deployed engineering heats up again

https://blog.pragmaticengineer.com/the-pulse-forward-deployed-engineering-heats-up-again/
1•logickkk1•29m ago•0 comments

Beware of EU-Washing

https://blog.avas.space/eu-washing/
1•BrunoBernardino•30m ago•0 comments

How API Drift Silently Breaks Data Pipelines

https://medium.com/data-science-collective/how-api-drift-silently-breaks-data-pipelines-and-how-t...
2•mkhorasani•34m ago•0 comments

gopher://gopher.floodgap.com/

https://gopher.floodgap.com/gopher/gw
3•susam•36m ago•0 comments

Lens Aberrations Explained (2023)

https://phillipreeve.net/blog/lens-aberrations-explained-part-1/
1•sirpilade•37m ago•0 comments

Spy: language semantics for a statically-typed compiled variant of Python

https://antocuni.eu/2026/03/25/inside-spy-part-2-language-semantics/
1•fanf2•37m ago•0 comments

"Long-Term Support" doesn't mean what you think

https://pointieststick.com/2026/05/23/long-term-support-doesnt-mean-what-you-think/
1•naves•38m ago•0 comments

Layman with no degree directs AI agents to derive Newton's G to 1.86 ppm

https://github.com/oldrich-research/gravitational-constant-relation
1•Oldrich333•38m ago•1 comments

Bullwhip Effect

https://en.wikipedia.org/wiki/Bullwhip_effect
3•olalonde•38m ago•0 comments

The Booing Will Continue Until Commencement Speeches Improve

https://gizmodo.com/the-booing-will-continue-until-commencement-speeches-improve-2000762929
2•makerdiety•40m ago•0 comments

Show HN: Lightweight, OpenSource, zero-dependency App tour & user onboarding SDK

https://www.npmjs.com/package/@qocial/tour
1•qocialApp•41m ago•0 comments

Show HN: Treasury – Ask your money anything

https://treasury.sh/
2•junead01•41m ago•2 comments

A Language for Describing Agentic LLM Contexts

https://arxiv.org/abs/2605.01920
1•mpweiher•48m ago•0 comments

Conifer, launching June first (free and open source): local inference runtime

https://conifer.build/feedback/
2•loctran0323•50m ago•0 comments

Show HN: MailMark – Cold email tool where you own your domain and mailboxes

1•debasishbarai•56m ago•0 comments

A PR proposes to stabilize the Rust allocator API

https://github.com/rust-lang/rust/pull/156882
1•afdbcreid•56m ago•0 comments