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

Recursive Language Models and Neurosymbolic Context Management

https://jdsemrau.substack.com/p/recursive-language-models-and-neurosymbolic-context-management
1•ph4rsikal•10s ago•0 comments

AI job disruption is here, and most don't claim unemployment benefits

https://fortune.com/article/ai-layoffs-unemployment-benefits-eligibility-sam-altman-dario-amodei/
1•01-_-•2m ago•0 comments

Palantir co-founder gets student blacklisted by DOJ

https://twitter.com/ggreenwald/status/2066195825407971692
1•sosomoxie•4m ago•1 comments

Email, Lifecycle and CRM Marketing Knowledge Base

https://crmknowledgebase.com/
1•iamacyborg•6m ago•0 comments

Route optimization engine, 100% in Rust and can run 100% offline

https://twitter.com/m_punnerud/status/2066100400076337598
1•punnerud•6m ago•0 comments

Image of 3D printer-produced gun

https://pantagraph.com/image_f1f1a43d-6b07-4b0f-8ed7-b052c0bcf2f4.html
1•01-_-•8m ago•0 comments

Show HN: Fable clone Google in 2hr but return TikTok-style video instead of text

https://www.bluhe.ai
2•dhavd•9m ago•1 comments

Burpwn – Burp Suite but its for AI agents (it works)

https://github.com/own2pwn-fr/burpwn
2•own2pwn-fr•12m ago•0 comments

Show HN: Discover Wikipedia articles popular on Hacker News

https://www.orangecrumbs.com/
2•octopus143•12m ago•0 comments

Jane Elliott: Brown Eyes, Blue Eyes

https://www.lowellmilkencenter.org/programs/projects/view/brown-eyes-blue-eyes/hero
1•evo_9•12m ago•0 comments

Text Diffusion – Brendan O'Donoghue, Google DeepMind [video]

https://www.youtube.com/watch?v=r305-aQTaU0
2•Topfi•17m ago•0 comments

Feedback on Miz Framework GitHub

3•sajjadws•17m ago•0 comments

A clear fishing wire is tied around the island of Manhattan

https://old.reddit.com/r/Damnthatsinteresting/comments/boea4v/a_clear_fishing_wire_is_tied_around...
8•vinnyglennon•19m ago•0 comments

Anthropic Models in Microsoft Online Services

https://learn.microsoft.com/en-us/microsoft-365/copilot/connect-to-ai-subprocessor
2•sntran•19m ago•0 comments

Please Stay Calm and Listen

https://zhenyi.gibber.blog/please-stay-calm-and-listen
3•zhenyi•21m ago•0 comments

Oracle is changing free tier limits. Update by the 15th to avoid charges

https://old.reddit.com/r/selfhosted/comments/1u4wqnj/psa_oracle_is_changing_free_tier_limits_upda...
3•wrxd•21m ago•0 comments

Real-time tracker of AI-driven job displacement worldwide

https://ailayoffs.live/
2•streamer45•21m ago•0 comments

Meta moves to unwind $2B Manus deal after Beijing's demand

https://techcrunch.com/2026/06/13/meta-reportedly-moves-to-unwind-2b-manus-deal-after-beijings-de...
2•geox•23m ago•0 comments

Double, BigDecimal, or Fixed-Point?

https://blog.frankel.ch/bigdecimal-vs-double/
2•theanonymousone•23m ago•0 comments

RFC 5218: What Makes for a Successful Protocol? (2008)

https://www.rfc-editor.org/info/rfc5218/
2•themaxdavitt•24m ago•0 comments

Git merges can be better

https://brandondong.github.io/blog/git_merges_can_be_better/
2•thunderbong•24m ago•0 comments

The Future of Work Is Getting Out of the Way

https://julienreszka.com/blog/the-future-of-work-is-getting-out-of-the-way/
2•julienreszka•26m ago•0 comments

FFI in Miri at 8000 segfaults per second [video]

https://www.youtube.com/watch?v=9X-ngiKo_Y0
2•nia-e•26m ago•0 comments

Show HN: The Engineer – Drive Claude Code from a GitHub Issue to a Merged PR

https://github.com/FarzamMohammadi/the-engineer
6•m_farzam•31m ago•0 comments

Gemma 4 for Telephony: From Two AI Models to One – Until I Switched to Chinese

https://medium.com/@j.y.weng/gemma-4-for-telephony-i-replaced-two-ai-models-with-one-in-my-voice-...
2•fidotron•33m ago•0 comments

A frontier without an ecosystem is not stable

https://twitter.com/satyanadella/status/2066182223213293753
2•jger15•34m ago•0 comments

Defensible Deep Research from Open-Weight Models

https://thinkwright.ai/two-phase-research
2•oceanwaves•34m ago•0 comments

Show HN: Landmark AI and ML research explained, redrawn, animated

https://research.rudrite.com/
3•mridul_sahu•37m ago•0 comments

Show HN: Kage – Shadow any website to a single binary for offline viewing

https://github.com/tamnd/kage
23•tamnd•41m ago•14 comments

Prop-for-that: CSS reacts, JavaScript just listens

https://prop-for-that.netlify.app/
2•tobr•41m ago•0 comments