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

Blue Origin completes investigation into New Glenn launch failure

https://spacenews.com/blue-origin-completes-investigation-into-new-glenn-launch-failure/
1•bookmtn•4m ago•0 comments

The HTML-in-Canvas API origin trial

https://developer.chrome.com/blog/html-in-canvas-origin-trial
1•mariuz•4m ago•0 comments

Notes for May 17-24

https://taoofmac.com/space/notes/2026/05/24/1445
1•rcarmo•5m ago•0 comments

From Open Source Software to Open Source Strategy

https://p3institute.substack.com/p/from-open-source-software-to-open
1•mooreds•6m ago•0 comments

Cybersecurity Fundamentals for Water and Wastewater Utilities [pdf]

https://www.waterisac.org/wp-content/uploads/2024/12/WaterISAC_12-Fundamentals_FULL-12-High-Res.pdf
1•mooreds•7m ago•0 comments

The pronoun problem in agent identity

https://souveraineai.com/docs/papers/pronoun-problem/
1•Fimeg•7m ago•0 comments

Craig Newmark on Institutional Maintenance, Giving Away Control and the Internet

https://conversationswithtyler.com/episodes/craig-newmark/
1•mooreds•7m ago•0 comments

There Is No AI (It's Just People), with Jaron Lanier [video]

https://www.youtube.com/watch?v=TTppvBU2rU4
2•andrekandre•9m ago•0 comments

Logitech Combo Touch: Four Years Later

https://taoofmac.com/space/reviews/2026/05/23/2130
1•rcarmo•10m ago•0 comments

Show HN: HtmlUnit 5.0.0 Is Available

https://htmlunit.org/
1•rbri•11m ago•0 comments

I Left the U.S. for Shenzhen, China — Here's How Much It Costs

https://www.youtube.com/watch?v=IuVr8hqWG0o
1•bookofjoe•13m ago•0 comments

Reinforcement Learning, in Pictures and Videos

https://suriya.cc/tech/ML/rl_in_pictures/
1•suriya-ganesh•13m ago•0 comments

DeepSeek to Make Permanent 75% Discount on Flagship AI Model

https://www.bloomberg.com/news/articles/2026-05-23/deepseek-to-make-permanent-75-discount-on-flag...
3•moh_maya•14m ago•0 comments

Russians Are in Despair over Truck-Busting 'Martian' Drones

https://www.forbes.com/sites/davidhambling/2026/05/22/why-russians-are-in-despair-over-truck-bust...
2•u1hcw9nx•15m ago•1 comments

Notetux++ – v1.0.2

https://github.com/notetux-plus-plus/notetux-plus-plus
1•andreacoi•21m ago•0 comments

What's Easy Now? What's Hard Now?

https://brooker.co.za/blog/2026/05/18/whats-easy-whats-hard.html
1•vinhnx•22m ago•0 comments

Laravel Lang packages hijacked to deploy credential-stealing malware

https://www.bleepingcomputer.com/news/security/laravel-lang-packages-hijacked-to-deploy-credentia...
2•Brajeshwar•23m ago•0 comments

Show HN: CPU-only OCR for screenshots, images, and webpages

https://github.com/kouhxp/textsnap
1•mrkn1•24m ago•0 comments

Thousands of Miles, 100 No's, and Our First User

1•taorealities•25m ago•0 comments

Migrating a dozen side projects from Azure to one VPS with an LLM agent

https://victorantos.com/posts/from-azure-to-one-vps-llm-migration/
1•victorbuilds•31m ago•0 comments

Should we start shaming developers who don't use isolation?

https://evertheylen.eu/p/shame-devs-without-isolation/
1•evertheylen•32m ago•0 comments

GitHub security alerts don't get sent

https://github.com/orgs/community/discussions/51573
1•mkj•36m ago•0 comments

Deploy Platforms Instead of Charts

https://ingresslabs.github.io/torque/blog-firecracker-fraud-platform.html
1•acarlini•40m ago•0 comments

I Am Begging You to Read Terry Pratchett

https://www.theatlantic.com/ideas/2026/05/author-terry-pratchett-film/687253/
1•Jtsummers•40m ago•0 comments

Libwce: The entropy layer of a wavelet codec, on its own

https://yogthos.net/posts/2026-05-24-libwce.html
1•yogthos•40m ago•0 comments

So I Vibe Coded a Suno Prompt Builder in 45 Seconds

https://medium.com/@bwanaerp/so-i-vibe-coded-a-suno-prompt-builder-in-45-seconds-21991998d1b9
1•instarlaxy•41m ago•0 comments

Official Kotlin Support for Visual Studio Code Is Now Available in Alpha

https://blog.jetbrains.com/kotlin/2026/05/official-kotlin-support-for-visual-studio-code-is-now-a...
3•philonoist•44m ago•1 comments

Did a British SMS Honeypot Discover Election Fraud in the US Midterms?

https://commsrisk.com/did-a-british-sms-honeypot-discover-election-fraud-in-the-us-midterms/
9•edoloughlin•48m ago•2 comments

Ask HN: JumpCloud Billing and Cancellation

1•sgammon•53m ago•0 comments

2028: Two scenarios for global AI leadership

https://www.anthropic.com/research/2028-ai-leadership
6•gmays•56m ago•1 comments