frontpage.
newsnewestaskshowjobs

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

Claude Fable 5 "Feels Next Level"

https://www.searchenginejournal.com/claude-fable-5-feels-next-level/578538/
1•parveshblogger•1m ago•0 comments

macOS/iOS 27 Icon Comparison VS 26

https://basicappleguy.com/basicappleblog/macos-golden-gate-icon-comparison
1•giuliomagnifico•4m ago•0 comments

Show HN: Artie – Real-time data replication to your warehouse, now self-serve

https://www.artie.com
1•tang8330•11m ago•0 comments

What Is CSGClaw?

https://github.com/OpenCSGs/csgclaw
1•YangXYfc•19m ago•0 comments

Show HN: OpenCode powered coding workspace for microcontroller development

https://github.com/Razz19/Exort
1•razorson•19m ago•1 comments

The Untrainable

https://saranormous.substack.com/p/the-untrainable
1•mfiguiere•21m ago•0 comments

Bank of the free now in the land of the free

https://www.bunq.com/blog/bringing-the-bank-of-the-free-to-the-land-of-the-free
1•janandonly•22m ago•0 comments

Bulk Domain Rating Checker

https://dr.vibecodinghub.org
1•ashing•29m ago•0 comments

AI Is a Thing We Made

https://thedailymemes.substack.com/p/ai-is-a-thing-we-made
1•danboarder•34m ago•0 comments

Firewood Splitting Simulator

https://screen.toys/firewood/
3•memalign•37m ago•1 comments

Active Recall

https://herman.bearblog.dev/active-recall/
2•Emerald_dreamer•42m ago•0 comments

Why don't cancer medicines work the same for everyone?

https://news.microsoft.com/signal/articles/why-dont-cancer-medicines-work-the-same-for-everyone-e...
1•visha1v•46m ago•0 comments

Industrial 3-D Printers Are Getting Cheaper

https://www.nytimes.com/2026/06/09/us/3d-printer-industrial-formlabs.html
1•iancmceachern•47m ago•1 comments

Show HN: Statanim – Animate Statistics in Python

https://github.com/rishabhbhartiya/STATANIM
1•rishabhbhartiya•48m ago•1 comments

The Data Systems Group (DSG) at MIT

https://dsg.csail.mit.edu/projects/
1•stmw•50m ago•0 comments

Proton Drive CLI: Use Drive from Your Terminal

https://proton.me/blog/proton-drive-cli
2•Cider9986•53m ago•0 comments

Free Recoll for Windows

https://github.com/alarmz/recoll
1•ankitg12•1h ago•0 comments

Organized violence 1989–2025, and violent political protests

https://academic.oup.com/jpr/advance-article/doi/10.1093/jopres/xjag046/8703754
2•joveian•1h ago•0 comments

Why Excess Regulation?

https://www.overcomingbias.com/p/why-excess-regulation
1•paulpauper•1h ago•1 comments

PrepPush – Chrome extension turning HackerRank Accepted into GitHub study guide

https://chromewebstore.google.com/detail/preppush/lkbbmepdmkokiapildnhkimcgnofokdd
1•banikt•1h ago•0 comments

Three Labs with a Plan and a Memorandum

https://thezvi.substack.com/p/three-labs-with-a-plan-and-a-memorandum
1•paulpauper•1h ago•0 comments

America, 1898-1914, overview, part 3

https://arnoldkling.substack.com/p/america-1898-1914-overview-part-3
1•paulpauper•1h ago•0 comments

What We Learned Hiring 33 Engineers in Two Weeks

https://www.digitalocean.com/blog/ai-native-engineering-interview
4•RyeCombinator•1h ago•1 comments

When do you guys think Zig will release 1.0?

1•J_Monclare•1h ago•1 comments

The Wild West

https://www.lynalden.com/june-2026-newsletter/
3•jameslk•1h ago•0 comments

Show HN: Claude Code Context Analyzer

https://github.com/manavgup/context-analyzer
1•manavg76•1h ago•0 comments

Lessons We Learned Building a RAG Assistant Without a Separate Vector Database

https://blog.devgenius.io/lessons-we-learned-building-a-rag-assistant-without-a-separate-vector-d...
2•HermitX•1h ago•0 comments

Salesforce lays off employees in a new round of cuts

https://www.businessinsider.com/salesforce-cuts-jobs-agentforce-2026-6
7•toomuchtodo•1h ago•2 comments

Fundamental of Running Agentic Loops

https://www.beontheloop.com/deck
3•shekharupadhaya•1h ago•6 comments

Show HN: Draft an all-time XI and simulate a World Cup run

https://www.perfectworldcup.com
1•ASquare•1h ago•0 comments