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

Comments

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

Europe surges, US stumbles, China cools: EV sales dip in 2026

https://electrek.co/2026/02/12/europe-surges-us-stumbles-china-cools-ev-sales-dip-in-2026/
1•breve•29s ago•0 comments

OpenVizUI is a modern desktop application

https://www.openvizui.com
1•opcnlin•1m ago•0 comments

Avanci Video Signs First Licensee and Publishes Rates

https://www.streamingmedia.com/Articles/ReadArticle.aspx?ArticleID=173422
1•breve•1m ago•0 comments

The Power of Ten/NASA/JPL's Rules for Developing Safety Critical Code [pdf]

https://spinroot.com/gerard/pdf/P10.pdf
1•keepamovin•3m ago•0 comments

Show HN: Orangensaft – A mini Python-like language with LLM eval in lang runtime

https://github.com/jargnar/orangensaft
1•jargnar•4m ago•0 comments

Spegel vs. Harbor: Which Pull-Through Cache Should You Choose?

https://georg-schwarz.com/blog/spegel-vs-harbor-which-pull-through-cache-should-you-choose/
1•rhazn•5m ago•0 comments

Post-Quantum OpenSSH

https://www.openssh.org/pq.html
1•jakesocks•7m ago•0 comments

Free Tool to See Your Voice Range in the Browser in Real Time

https://pitchhighway.com/voice-range
1•gabrielpolyy•8m ago•0 comments

The Most Unsettling Album on the Internet

https://vapor95.com/blogs/darknet/the-most-unsettling-album-on-the-internet-towers
1•kekqqq•10m ago•0 comments

Show HN: Retrospec: reverse-engineer a spec prompt for an AI agent from a commit

https://github.com/igolaizola/retrospec
1•igolaizola•10m ago•0 comments

My Struggle with Writing on the Internet

https://www.surajc.com/blog/on-writing-on-the-internet
1•surajcdry•11m ago•0 comments

Show HN: DID reputation management on coinpay's site for agents and humans alike

https://coinpayportal.com/
1•cranberryturkey•13m ago•0 comments

Rex 84

https://en.wikipedia.org/wiki/Rex_84
1•ndsipa_pomu•13m ago•0 comments

College: Things I wish I knew on the first day

https://notes.kocielnik.pl/5-things-to-know-before-starting-college/
1•kocielnik•14m ago•0 comments

Show HN: Sqlmodel.org – open-source Browser Data Modelling

https://github.com/sqlmodel/sqlmodel
1•Sean766•14m ago•0 comments

Coyote interceptor downs drone swarms with electromagnetic weapon

https://newatlas.com/military/coyote-interceptor-test-takes-out-drone-swarms/
1•breve•16m ago•0 comments

Show HN: Ziran, security testing for AI agents

https://github.com/taoq-ai/ziran
1•leoneperdigao•17m ago•0 comments

Monosketch

https://monosketch.io/
1•penguin_booze•17m ago•0 comments

US repeals EPA endangerment finding for greenhouse gases

https://www.cnn.com/2026/02/12/climate/trump-repeals-epa-endangerment-finding
29•heresie-dabord•18m ago•8 comments

The AI Dark Forest

https://maggieappleton.com/ai-dark-forest
1•jacquesm•19m ago•0 comments

Install PowerShell on Windows, Linux, and macOS

https://learn.microsoft.com/en-us/powershell/scripting/install/install-powershell?view=powershell...
1•gjvc•21m ago•0 comments

Protecting Children without the privacy nightmare of Digital IDs [pdf]

https://democrats.eu/wp-content/uploads/2025/12/Protecting-Children-without-the-privacy-nightmare...
1•uyzstvqs•21m ago•0 comments

Ask HN: AI Depression

6•pavello•22m ago•2 comments

Even the Hospitals Aren't Safe in Iran

https://www.newyorker.com/news/the-lede/cora-engelbrecht-lede-iran-waits-for-war
1•breppp•25m ago•0 comments

Conductor Update: Introducing Automated Reviews

https://developers.googleblog.com/conductor-update-introducing-automated-reviews/
1•xnx•27m ago•0 comments

Show HN: Paper Banana – AI academic illustration generator

https://paperbanana.me
1•GuiShou•28m ago•0 comments

Show HN: A lightweight, ad-free medal tracker for Milano Cortina 2026

https://www.milano2026.live/
2•xjefflee•28m ago•0 comments

The 'astounding' rise of semaglutide – and what's next for weight-loss drugs

https://www.nature.com/articles/d41586-026-00228-1
2•sohkamyung•28m ago•0 comments

Show HN: Deploy Clawbot Instance in Seconds

https://deployclaw.lovable.app/
1•Creator-io•29m ago•0 comments

OpenAI accuses DeepSeek of malpractice ahead of AI launch

https://restofworld.org/2026/openai-deepseek-distillation-dispute-us-china/
1•donohoe•30m ago•0 comments