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

Nova Ransomware issues an apology to Eriell Group

https://twitter.com/AlvieriD/status/2061712159654961280
1•Tomte•1m ago•0 comments

Senior U.S. Officials Eye Government Shares in AI Giants

https://www.notus.org/technology/trump-ai-stake-openai
1•littlexsparkee•1m ago•0 comments

Fighting Entropy

https://personalis.io/blog/fighting-entropy
1•sylvanjsmit•3m ago•1 comments

Lucky Bracelet Guide: Symbols, Energy and Everyday Wear

https://glintandluck.com/blogs/news/lucky-bracelet-guide-symbols-energy-everyday-wear
1•Chris_taka•3m ago•0 comments

When Metrics Become the Target

https://www.whileforloop.com/blog/2026/06/03/when-metrics-become-the-target/
2•wook__•4m ago•0 comments

Lihn – AI prospecting agent for freelancers, quick setup, <€20/mo

https://lihn.fr
1•robn_nevira•6m ago•0 comments

Creating a GPS Tracking App from Scratch. What Should Come First?

1•Nicknotfound•10m ago•0 comments

Co-Existence and the End of Co-Intelligence

https://www.oneusefulthing.org/p/co-existence-and-the-end-of-co-intelligence
1•vquemener•11m ago•0 comments

Feedback wanted on my productivity app

https://focuslio.com/
1•Amompharetus•11m ago•1 comments

My Software North Star

https://kristoff.it/blog/north-star/
1•birdculture•11m ago•0 comments

The Future of Xenix, (Bill Gates Interview Unix World, 1985)

https://archive.org/details/Unix_World_Vol02_10.pdf
2•pjmlp•13m ago•0 comments

Anxiety is making you dumber

https://julienreszka.com/blog/anxiety-is-making-you-dumber/
1•julienreszka•16m ago•0 comments

Worried about Recursive Self-Improvement (RSI)? The answer might be CDE

https://safebots.ai/declarative.html
1•EGreg•21m ago•0 comments

Ukraine Support Act

https://en.wikipedia.org/wiki/Ukraine_Support_Act
3•JumpCrisscross•22m ago•0 comments

Ask HN: Do you know any company that's making money with LLMs

2•camillomiller•22m ago•2 comments

ESP32 Bit Pirate, a Hardware Hacking Tool with WebCLI That Speaks Every Protocol

https://github.com/geo-tp/ESP32-Bit-Pirate
2•geotp•23m ago•1 comments

Developing Statically Typed Programming Language (2017)

https://blog.mgechev.com/2017/08/05/typed-lambda-calculus-create-type-checker-transpiler-compiler...
2•downbad_•25m ago•0 comments

TinyGTC: pager/Counter with built-in GPSDO

https://www.tinydevices.org/wiki/pmwiki.php?n=TinyGTC.Homepage
1•disago•25m ago•0 comments

Cloudflare AI Gateway now supports spend limits

https://developers.cloudflare.com/ai-gateway/features/spend-limits/
2•tjek•26m ago•0 comments

The Orchard Counterfeiting Vulnerability

https://forum.zcashcommunity.com/t/the-orchard-counterfeiting-vulnerability-and-next-steps/56015
1•hggh•28m ago•0 comments

Food for Agile Thought #547: AI's 1997 Internet Moment, Code Isn't Product

https://age-of-product.com/food-agile-thought-547-ais-1997-internet-moment/
1•swolpers•29m ago•0 comments

Ask HN: How do you solve cold start on a three-sided 3d printing marketplace?

1•pixelcadet•30m ago•0 comments

Attribution in the Browser: Who Benefits from Mozilla/Google/Meta's Ad Standard

https://jamesoclaire.com/2026/06/05/attribution-in-the-browser-who-really-benefits-from-google-an...
1•ddxv•30m ago•1 comments

Ask HN: How are you guys auditing your Parquet file layouts for metadata bloat?

1•allaboutdata•31m ago•0 comments

Supabase Skills to run your business ops

https://github.com/SkeneTechnologies/skene/tree/main/skills
2•teemuki•34m ago•0 comments

AI technology is nearing a point where it could develop without human input

https://www.bbc.com/news/articles/cx2124z7g45o
1•reconnecting•36m ago•1 comments

Changing How We Develop Ladybird

https://ladybird.org/posts/changing-how-we-develop-ladybird/
4•EdwinHoksberg•37m ago•0 comments

The ancient US discovery predating the pyramids

https://www.bbc.com/travel/article/20260223-the-ancient-us-discovery-predating-the-pyramids
1•thunderbong•39m ago•0 comments

Lee Kuan Yew's Singapore Story

https://www.historytoday.com/archive/feature/lee-kuan-yews-singapore-story
2•pepys•39m ago•0 comments

Create a blog post series with navigation in Jekyll

https://opensource.com/article/22/4/blog-series-navigation-jekyll
1•ankitg12•41m ago•0 comments