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

Zelensky reveals full 20-point peace plan draft backed by Ukraine, US

https://kyivindependent.com/zelensky-reveals-20-point-peace-plan-draft-backed-by-ukraine-us/
1•_tk_•2m ago•0 comments

Renault concept goes 626 miles on single charge at motorway speed

https://www.autocar.co.uk/car-news/new-cars/renault-concept-goes-626-miles-charge-motorway-speed
2•teleforce•6m ago•0 comments

ChatGPT's CSS may hide model info (clip-path, opacity:0, user-select:none) [pdf]

https://aya-peppers.github.io/chatgpt-css-transparency-analysis/report.pdf
1•Ayanonymous•7m ago•1 comments

We discovered an ancient 'party boat' in the waters of Alexandria

https://theconversation.com/we-discovered-an-ancient-party-boat-in-the-waters-of-alexandria-heres...
1•zeristor•10m ago•1 comments

FreeBSD: Installation on a ThinkPad X200 Tablet in 2025

https://rtfm.co.ua/en/freebsd-installation-on-a-thinkpad-x200-tablet-in-2025/
1•todsacerdoti•11m ago•0 comments

Popular Education AI Prompts for Teaching Excellence Education

https://tools.eq4c.com/ai-prompts/9-popular-education-ai-prompts-for-teaching-excellence-education/
1•edures•11m ago•1 comments

Migrating my web analytics from Matomo to Umami

https://stanislas.blog/2025/12/migrating-matomo-to-umami-web-analytics/
2•angristan•12m ago•0 comments

Show HN: WatchLLM – Semantic caching to cut LLM API costs by 70%

https://www.watchllm.dev/
1•Kaadz•12m ago•0 comments

SHow HN: Prompt-RAG – Fix low-quality AI images using a 500 prompt vector DB

https://picxstudio.com
1•Yash16•12m ago•1 comments

2025: The Year SwiftUI Died

https://blog.jacobstechtavern.com/p/the-year-swiftui-died
2•jakey_bakey•13m ago•0 comments

The Most Cursed Web Development Stack You'd Ever See Before Christmas [video]

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

Accelerating complex Python models by 300x+ – using Claude.ai [video]

https://www.youtube.com/watch?v=-Drgu1g__lE
2•NatalijaAAD•13m ago•0 comments

Why Does Nuclear Power Plant Construction Cost So Much? (2023)

https://ifp.org/nuclear-power-plant-construction-costs/
1•elashri•14m ago•0 comments

Show HN: BunPush, Modern Realtime pusher compatible built on Bun

https://bunpush.com
1•sawirricardo•14m ago•0 comments

Show HN: I created a free pdf to quiz maker tool

https://minform.io/tools/pdf-to-quiz-maker
1•eashish93•16m ago•0 comments

The Age of the All-Access AI Agent Is Here

https://www.wired.com/story/expired-tired-wired-all-access-ai-agents/
1•fleahunter•16m ago•0 comments

Live Streaming Agent Framework development from scratch in Go

https://www.youtube.com/channel/UCCntuFAgDVUjBG-ZQEv_wrQ
1•praveensanap•17m ago•1 comments

Dear ACM, you're doing AI wrong but you can still get it right

https://anil.recoil.org/notes/acm-ai-recs
1•birdculture•17m ago•0 comments

The Chicago Manual of Style

https://www.chicagomanualofstyle.org/home.html
1•thinkingemote•18m ago•0 comments

SFP Wizard a pocket-sized powerhouse that checks the health of any SFP or QSFP

https://blog.ui.com/article/welcome-to-sfp-liberation-day?from=/article/travel-in-style-unifi-sty...
1•janandonly•20m ago•0 comments

Show HN: Sensei, documentation agent for coding agents

https://sensei.eightzerothree.co
1•alizainf•20m ago•0 comments

WD-NearbyItem: browse Wikidata Items nearby

https://rtnf.substack.com/p/wd-nearbyitem
1•altilunium•22m ago•0 comments

Katchy – capturing tasks and reminders just by speaking

https://www.katchy.app/
1•bitvaulty•22m ago•1 comments

Tell HN: Merry Christmas

2•franze•22m ago•1 comments

Two British anti-hate speech campaigners sanctioned by US State Department

https://www.theguardian.com/politics/live/2025/dec/24/free-speech-tech-us-relations-ed-davey-keir...
2•ndsipa_pomu•23m ago•0 comments

Show HN: Semantic Coverage – A tool to visualize RAG blind spots using UMAP

https://github.com/aashirpersonal/semantic-coverage
2•aashirpersonal•27m ago•1 comments

The Windows Utility

https://christitus.com/windows-tool/
17•janandonly•32m ago•6 comments

Choosing a database for crypto on-chain analytics, think outside of PostgreSQL

https://www.velodb.io/blog/from-postgresql-to-velodb-real-time-on-chain-analytics-for-web3-and-cr...
1•qinchencq•33m ago•0 comments

Transformers in Action

https://www.manning.com/books/transformers-in-action
1•0x54MUR41•33m ago•0 comments

Introduction to Generative AI

https://www.manning.com/books/introduction-to-generative-ai-second-edition
1•0x54MUR41•34m ago•0 comments