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

Elevated error rate on multiple models (May 22, 04:16 UTC)

https://status.claude.com/incidents/p0mgnjv3bj97
1•pramodbiligiri•3m ago•0 comments

Building Git for touch screens: Inside Code on the Go's mobile-first Git UI

https://www.appdevforall.org/building-git-for-touch-screens-inside-code-on-the-gos-mobile-first-g...
1•taubek•5m ago•0 comments

Customers Aren't Rational and Neither Are You

https://kausiktoday.substack.com/p/your-customers-arent-rational-and
1•ikausik•5m ago•0 comments

Johnny.Decimal

https://johnnydecimal.com/
1•gurjeet•6m ago•0 comments

Support multiple cursor in macOS – computer use 2.0

https://twitter.com/bridge_surf/status/2057416247319618039
1•entherhe•7m ago•1 comments

Why scikit learn's fit transform is probably not for you

https://stephantul.github.io/blog/fit-transform/
1•stephantul•7m ago•0 comments

Heino DMA / PCIe MitM Bypass – Disclosure and Vindication

https://github.com/b0tacc0unt9952-hub/heino-dma-mitm-bypass-disclosure-riot-fail
1•undersuit•9m ago•0 comments

Slumber a TUI HTTP Client

https://slumber.lucaspickering.me
1•jicea•10m ago•0 comments

First ever AI feature film premieres at the Cannes Film Festival

https://www.cgmagonline.com/news/hell-grind-made-only-with-higgsfield-ai/
2•frays•24m ago•0 comments

SpaceX not the behemoth everyone thought

https://www.axios.com/2026/05/21/spacex-ipo-musk-ai
22•kaycebasques•35m ago•1 comments

Israel's arrogance is becoming the evidence in the case against it

https://www.aljazeera.com/opinions/2026/5/21/israels-arrogance-is-becoming-the-evidence-in-the-ca...
3•hebelehubele•37m ago•0 comments

AI workflows: an industry optimising the wrong variables

https://adsurg.substack.com/p/navigating-ai-with-paper-maps
1•adamsurg•37m ago•0 comments

Tell HN: I went to Alaska's northernmost town and this was the GeoIP location

1•ironmagma•42m ago•0 comments

Show HN: TLS Certificate Management and PKI

1•zaitanz•45m ago•0 comments

Newsom intervenes amid historic tech layoffs

https://www.sfgate.com/politics/article/newsom-california-ai-layoffs-22271312.php
3•jimt1234•56m ago•1 comments

Kyle Busch, two-time NASCAR Cup Series champion, dies at age 41

https://www.nascar.com/news-media/2026/05/21/kyle-busch-two-time-nascar-cup-series-champion-dies-...
2•avonmach•1h ago•0 comments

Destiny 2 will no longer be updated

https://twitter.com/destinythegame/status/2057506887600361720
1•azhenley•1h ago•0 comments

SpaceX Fuels More Than 3k% Return for Washington University

https://www.bloomberg.com/news/articles/2026-05-21/spacex-fuels-more-than-3-000-return-for-washin...
1•yakkomajuri•1h ago•0 comments

Show HN: Tight C, a systems language with 10 keywords

https://github.com/alonsovm44/tc-lang/
9•alonsovm44•1h ago•0 comments

Show HN: Roughform, a free Browser-Based 3D Creation Tool

https://roughform.app
1•benhmoore•1h ago•1 comments

Negation Neglect: When models fail to learn negations in training

https://arxiv.org/abs/2605.13829
1•chr15m•1h ago•0 comments

Big Tech software era is over, says top investor James Anderson

https://www.ft.com/content/9d2bd5b3-80c6-49b9-a04b-edc4162c9320
1•1vuio0pswjnm7•1h ago•2 comments

AI Model Inflation: The Unsustainable Subsidy

https://tomtunguz.com/ai-model-inflation/
2•allen-munsch•1h ago•0 comments

Nicotine Patches to Treat Long Covid

https://www.mcgill.ca/oss/article/medical-health-and-nutrition-pseudoscience/strange-story-nicoti...
1•brandonb•1h ago•0 comments

DeepSeek Founder Declares AGI Goal as $10B Round Advances

https://www.bloomberg.com/news/articles/2026-05-22/deepseek-founder-declares-agi-goal-as-10-billi...
1•petethomas•1h ago•1 comments

Americans beware: markets can be out of sync with reality

https://www.ft.com/content/d95ce239-4494-4a94-be43-fc678bc6e1c3
3•petethomas•1h ago•2 comments

Show HN: Spec-Driven Development Workflow for Claude Code

3•sermakarevich•1h ago•0 comments

The fastest manmade object ever was a manhole cover launched by nuke

https://www.wearethemighty.com/mighty-history/fastest-manmade-object/
1•thunderbong•1h ago•1 comments

From Emacs to Agents

https://vivekhaldar.com/articles/from-emacs-to-agents/
1•gandalfgeek•1h ago•0 comments

An Uncharitable Taxonomy of the AI Discourse

https://iceworks.cc/blog/uctd/
1•airhangerf15•1h ago•0 comments