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•7mo ago

Comments

trbndev•7mo 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•7mo ago
That link is broken. Correct link: https://t128n.github.io/writings/2025-05-02_optimizing_searc...
trbndev•7mo 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•7mo 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•7mo 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•7mo 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•7mo 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

Made a Visionboard Tool

https://visionboardit.art/
1•girlwhocode•19s ago•0 comments

Minimum Viable Benchmark (For Evaluating LLMs)

https://blog.nilenso.com/blog/2025/11/28/minimum-viable-benchmark/
1•todsacerdoti•1m ago•0 comments

Fara-7B: An Efficient Agentic Model for Computer Use

https://www.microsoft.com/en-us/research/blog/fara-7b-an-efficient-agentic-model-for-computer-use/
1•mjshashank•2m ago•0 comments

Apple TV's new intro was done practical, not CGI or AI [video]

https://www.youtube.com/shorts/C3uLRJGVkmo
1•busymom0•6m ago•0 comments

Luminar Technologies, Inc. Initiates Voluntary Chapter 11 Proceedings

https://investors.luminartech.com/news-events/press-releases/detail/110/luminar-technologies-inc-...
1•rguiscard•13m ago•0 comments

The Lost Generation

https://www.compactmag.com/article/the-lost-generation/
2•koolba•17m ago•0 comments

Video: Lunar impact flash detected on the moon by Armagh Observatory

https://phys.org/news/2025-12-video-lunar-impact-moon-armagh.html
1•1659447091•18m ago•0 comments

How I Assess Open Source Libraries

https://nesbitt.io/2025/12/15/how-i-assess-open-source-libraries.html
1•gpi•22m ago•0 comments

Deaf Crocodile Blu-Rays

https://deafcrocodile.com/collections/blu-rays
2•gregsadetsky•23m ago•0 comments

The Core Problems of AI Coding

https://magong.se/posts/real-problems-ai-coding-lesswrong
2•mikasisiki•24m ago•0 comments

Project Zeros New Website

https://projectzero.google/
1•0xkato•27m ago•1 comments

Show HN: Website to APK Convertor

https://website2apps.com/
1•Codegres•30m ago•0 comments

Building a WASM Runner with Cloud Hypervisor

https://burakemir.ch/post/building-wasm-runner/
1•todsacerdoti•37m ago•0 comments

A Guide to Magnetizing N48 Magnets in Ansys Maxwell

https://blog.ozeninc.com/resources/from-datasheet-to-demagnetization-a-guide-to-magnetizing-n48-m...
1•peter_d_sherman•46m ago•0 comments

The Bifurcation in the AI Market

https://tomtunguz.com/2025-12-16-open-router-insights/
2•jaynate•48m ago•0 comments

OpenAI in Talks to Raise $10B, Adopt Amazon's AI Chips

https://www.bloomberg.com/news/articles/2025-12-17/openai-in-talks-to-raise-10-billion-from-amazo...
2•marc__1•50m ago•1 comments

Show HN: Better Gmail Tabs – turn search queries into tabs for fast email load

https://chromewebstore.google.com/detail/better-gmail-tabs/ffgbhpheihcopgdlgbabanhbgemohjgc
1•jharohit•53m ago•0 comments

Show HN: Obsidenc – a Rust-based paranoid-grade encryption utility

https://github.com/markrai/obsidenc
2•markrai•55m ago•0 comments

After years of resisting it, SpaceX now plans to go public

https://arstechnica.com/space/2025/12/after-years-of-resisting-it-spacex-now-plans-to-go-public-why/
1•somenameforme•55m ago•0 comments

What happened to iRobot can happen to anyone

https://www.engadget.com/home/what-happened-to-irobot-can-happen-to-anyone-164500625.html
4•codetiger•57m ago•2 comments

You're 25-35 years old? You're running out of time

https://breatheless.substack.com/p/youre-25-35-years-old-youre-running
3•sss111•57m ago•0 comments

Tesla engaged in deceptive marketing for Autopilot and Full Self-Driving, judge

https://techcrunch.com/2025/12/16/tesla-engaged-in-deceptive-marketing-for-autopilot-and-full-sel...
1•pseudolus•1h ago•0 comments

Show HN: 200+ Likes/day as fake profile → built my own dating app in 100 days

https://www.wctokyoseoul.com/ko
2•vulcanidic•1h ago•0 comments

Optimizing Claude Code

https://mays.co/optimizing-claude-code
2•stevenmays•1h ago•0 comments

Marshall Islands launches universal basic income scheme offering cryptocurrency

https://www.theguardian.com/world/2025/dec/17/marshall-islands-launches-universal-basic-income-sc...
1•uxhacker•1h ago•0 comments

The race for an AI Jesus is on

https://economist.com/united-states/2025/12/16/the-race-for-an-ai-jesus-is-on
2•andsoitis•1h ago•0 comments

Adventures in the Land of Language Servers

https://speakerdeck.com/kubukoz/adventures-in-the-land-of-language-servers
2•todsacerdoti•1h ago•0 comments

The Best Open-Source Small Language Models

https://www.bentoml.com/blog/the-best-open-source-small-language-models
1•zyh888•1h ago•0 comments

Show HN: Scrappy Free AI Code Assistant

https://github.com/HakAl/scrappy
1•VibeGuy•1h ago•0 comments

It from Bit, Bit from It

https://www.symmetrybroken.com/it-from-bit-bit-from-it/
5•riemannzeta•1h ago•0 comments