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

The AI Big Crunch Is Starting

https://medium.com/@brothke/the-ai-big-crunch-is-starting-c50612ee3a02
1•benrothke•1m ago•0 comments

July 6th: International Kissing Day

https://en.wikipedia.org/wiki/International_Kissing_Day
2•Bender•4m ago•0 comments

Britain should consider regulating AI models, FCA official says

https://www.reuters.com/legal/litigation/britain-should-consider-regulating-ai-models-fca-officia...
3•adithyaharish•4m ago•0 comments

The Importance of Questioning When Coding with AI

https://jakub.jankiewicz.org/blog/questioning-ai/
2•jcubic•6m ago•0 comments

Kill the Plastic AI Portrait

https://realistic-shot-deploy-eight.vercel.app/
2•withoutshape•9m ago•1 comments

How We're Keeping Reddit Real and Safe in the AI Era

https://redditinc.com/news/how-were-keeping-reddit-real-and-safe-in-the-ai-era
2•soheilpro•10m ago•0 comments

Our Own Little Golden Era

https://thesecondbutton.com/our-own-little-golden-era/
2•SuperUserDone•13m ago•1 comments

Save Thousands of Dollars: Smpte Standards Are Free

https://vimegs.com/save-thousands-of-dollars-on-information-directly-from-the-source-smpte-makes-...
2•LukasMarek•14m ago•0 comments

How Will AI Impact the Labor Market?

https://www.goldmansachs.com/insights/goldman-sachs-exchanges/how-will-ai-impact-the-labor-market
2•vismit2000•14m ago•0 comments

An interactive visualization of a HTTP request through its ~200ms life

https://200ms.thenodebook.com
2•isht_0x37•15m ago•0 comments

Mid-tier factory knives vs. cheap imports

https://www.paragon-knives.com/
2•bgzlsxaz•18m ago•0 comments

Ask HN: What internal tools/SASS replacements are you building?

2•kostarelo•20m ago•0 comments

Why is there smoke from the boiler room? – Botanical Garden using Home Assistant

https://vooijs.eu/posts/why-is-there-smoke-from-the-boiler-room/
2•Baardappel•20m ago•0 comments

Coding Agents as Teammates in Issues, Pull Requests, and CI

https://onedev.io/blogs/33
4•timplant•21m ago•1 comments

Owarix, version of 8000 year old game for the Vic20. (3k: v20,c64,c16,zx,PC)

https://orac81.itch.io/owarix
2•orac81•22m ago•0 comments

TikTok Viral Score – deterministic scoring engine, no login required

https://github.com/NaiaLorente/GoViral-Tiktok
2•naialorente•22m ago•0 comments

If Terraform is so great, why isn't anyone using it anymore?

https://medium.com/@sebkow/if-terraform-is-so-great-why-isnt-anyone-using-it-anymore-1b79b2159272
3•sebkow•22m ago•2 comments

Probably the best AI detector tool is ready

https://aidetector.my/en
3•GemsGame•24m ago•0 comments

I built Who Goes? app to make game nights feel fun again

https://apps.apple.com/in/app/who-goes-party-games/id6777402559
2•shubham_iosdev•28m ago•1 comments

Eight – Interactive fiction made with AI

https://huggingface.co/spaces/alvations/hallway8
2•alvations•28m ago•0 comments

The Parts Based Programming Kernel

https://programmingsimplicity.substack.com/p/the-parts-based-programming-kernel
3•surprisetalk•30m ago•0 comments

Reasons to be optimistic about America's future

https://www.washingtonpost.com/opinions/interactive/2026/07/03/25-reasons-be-optimistic-about-ame...
2•baal80spam•31m ago•0 comments

Trump Financial Disclosure Shows 21,000 Trades in 2025

https://www.advisorhub.com/trump-financial-disclosure-shows-21000-trades-in-2025/
12•throw0101d•32m ago•2 comments

pkgsrc is still available on macOS as a package manager

https://pkgsrc.smartos.org/install-on-macos/
2•uneven9434•32m ago•0 comments

FlowerBench: Benchmarking AI Agents on Real Enterprise Work

https://flower.ai/benchmarks/flowerbench/
2•dimitrisflwr•35m ago•1 comments

China will likely have its own Mythos-like model around February 2027

https://www.the-substrate.net/p/china-will-likely-have-its-own-mythos
3•throw0101d•36m ago•0 comments

Show HN: Open-source Claude Code skills that mine Reddit/X for content topics

4•vatricemir•36m ago•0 comments

Ask HN: Are there good security benchmarks for LLMs?

2•melvinroest•37m ago•0 comments

The Devadasis, Dance Community of South India: A Legal and Social Outlook

https://brill.com/view/journals/ijgr/29/1/article-p102_102.xml
2•thunderbong•43m ago•0 comments

We built a P2P app with no servers. Internet of Peers [video]

https://www.youtube.com/watch?v=n76zGrt4aRY
2•closet_slayer•43m ago•0 comments