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

Voyd Programming Language v0.2.0 – Effect typing improvements, trailing closures

https://voyd.dev/docs/?p=releases
1•drew-y•44s ago•0 comments

P/E Tells You the Price. Reality Gap Tells You the Delusion

https://hstre.github.io/Reality-Gap/
1•hstrex•57s ago•0 comments

Morgan Stanley Sees SpaceX's Revenue Reaching $3.4T in 2040

https://www.wsj.com/finance/banking/morgan-stanley-sees-spacexs-revenue-reaching-3-4-trillion-in-...
1•logicalfails•1m ago•0 comments

Hacker News, Sans AI

https://elijahpotter.dev/articles/hacker-news-sans-AI
1•chilipepperhott•1m ago•0 comments

We built an AI sales agent so you don't have to give every demo of your product

https://salescloser.ai/hybrid-chat-va/
1•jrda•1m ago•0 comments

Saylor's Strategy Sells Bitcoin for First Time Since 2022

https://www.wsj.com/finance/currencies/saylors-strategy-sells-bitcoin-for-first-time-since-2022-0...
1•JumpCrisscross•2m ago•0 comments

Playwright for Godot

https://github.com/mrf/godot-stagehand
1•markferree•3m ago•1 comments

Meta backs off tracking workers' keystrokes after they revolt

https://boingboing.net/2026/06/03/meta-backs-off-tracking-workers-keystrokes-after-they-revolt.html
1•DropDead•3m ago•1 comments

Scale Kubernetes deployments to zero using KEDA

https://mijndertstuij.nl/posts/scale-to-zero-keda-cron-scaler/
1•speckx•14m ago•0 comments

Open Source, Co-Ops and a History of Bias in Corporate America

https://radicaltherapy.substack.com/p/open-source-co-ops-and-a-history
1•glind72•14m ago•0 comments

Department of Energy Celebrates First Advanced Reactor Criticality

https://www.energy.gov/articles/department-energy-celebrates-first-advanced-reactor-criticality
1•geox•17m ago•0 comments

Scientists Gave Cocaine to Salmon and You Will Believe What Happened

https://www.wired.com/story/cocaine-fueled-wild-salmon-swam-twice-as-far-as-sober-ones/
1•PaulHoule•18m ago•0 comments

Granite Switch: Building AI more like software

https://research.ibm.com/blog/granite-libraries-project-switch
1•yangikan•20m ago•0 comments

Bonsai Browser: Reader-mode for every page, powered by a local LLM, Nothing Else

https://drive.google.com/drive/folders/1qDYvycW4Ki0gAppMGhvSixUCioIRXcmN
2•coolwulf•20m ago•0 comments

Show HN: OWASP VulnerableApp Modern Extensible and Scalable vulnerable app

https://github.com/SasanLabs/VulnerableApp
2•newaccount12344•20m ago•0 comments

The Anatomy of a Learning Stall

https://tagide.com/blog/llm/the-anatomy-of-a-learning-stall/
1•azhenley•21m ago•0 comments

Siddhartha (1922): Competence Porn – before it was cool

https://acxreviews.robennals.org/reviews/siddhartha-1922-by-hermann-hesse
2•Gooblebrai•21m ago•0 comments

The Man Whose Job Is Making Sure We Don't Have Blackouts This Summer

https://www.wsj.com/business/blackouts-electricity-data-centers-david-mills-pjm-d1c499fe
1•impish9208•22m ago•1 comments

I Just watched "We just launched Paxel" by narrated by Garry Tan [video]

https://www.youtube.com/shorts/ywS7Ytkx3A0
1•mockingloris•22m ago•2 comments

Do I Need to Learn the Domain? Do I Want To?

https://ianmcnaughton.net/blog/do-i-need-to-learn-the-domain/
1•wc_nomad•23m ago•0 comments

I am getting sick and tired of our AI oligarchs

https://news.ycombinator.com/from?site=eversoleken.substack.com
2•kennethops•25m ago•1 comments

The Legacy of Spam

https://siderite.dev/blog/legacy-of-spam
2•speckx•25m ago•0 comments

China builds an economic fortress as global tensions rise

https://www.nytimes.com/2026/06/05/business/china-investment-rules.html
2•leonidasrup•25m ago•0 comments

Lateos/NPM-scan v1.2.0: Detecting Native Addon Malware (node-gyp Abuse)

https://github.com/lateos-ai/npm-scan/blob/main/VALIDATION.md
1•lateos-ai•26m ago•1 comments

Show HN: I rebuilt a tiny old volleyball game I loved

https://volleyhop.com/
2•cebceb•28m ago•0 comments

Reason Behind a Startup's Success

https://orchidfiles.com/reason-behind-startups-success/
1•theorchid•28m ago•0 comments

RemotePower – self-hosted remote power management

https://github.com/tyxak/remotepower
1•stenit•31m ago•0 comments

What Is an Agent?

https://tidydesign.substack.com/p/what-is-an-agent
1•yurivish•32m ago•0 comments

Google to pay SpaceX $920M a month for compute capacity at xAI data centers

https://www.cnbc.com/2026/06/05/google-to-pay-spacex-920-million-a-month-for-xai-compute-capacity...
26•toephu2•33m ago•5 comments

Partitions over Permutations

https://www.johndcook.com/blog/2026/06/04/partitions-over-permutations/
1•ibobev•33m ago•0 comments