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

Just finished building a security audit tool

1•AIwebPageSEO•2m ago•0 comments

Stay logged out of Reddit and keep the old.reddit.com layout. Beta testers plz

https://github.com/kookaburrabarrel/sheddit/
1•kookaburrabarre•2m ago•1 comments

The Airlink Embraers just flew dangerously low over DHL Stadium in Cape Town

https://www.reddit.com/r/aviation/comments/1w1pcbs/the_airlink_embraers_just_flew_dangerously_low/
1•mcapodici•3m ago•0 comments

Show HN: RecQL – A portable query language for search and recommendation

https://github.com/recql
1•jonahharris•5m ago•0 comments

Show HN: Niu Lai Series Website

https://niulaify.com
1•bookbyter•6m ago•0 comments

Show HN: Shell utility for encrypting and decrypting files using scrypt

https://github.com/nodesocket/cryptr
1•nodesocket•7m ago•0 comments

Show HN: How to Fish Game Wiki

https://howtofish-game.org/
1•bookbyter•8m ago•0 comments

The Absurdity of Desktop Linux

https://www.augustl.com/blog/2026/absurdity-of-desktop-linux/
2•ingve•9m ago•0 comments

Copilot code review: Resolution reasons and expanded capabilities

https://github.blog/changelog/2026-08-27-copilot-code-review-resolution-reasons-and-expanded-capa...
1•kyisaiah47•18m ago•0 comments

Before NTP there were Time and Daytime

https://www.jeffgeerling.com/blog/2026/rfc-867-868-time/
1•ingve•22m ago•0 comments

The Shapes of Agent Memory – Files, Stores, and Experience

https://pinglin.tw/blog/the-shapes-of-agent-memory/
1•gmays•24m ago•0 comments

Special Is Optional

https://nik.art/special-is-optional/
2•herbertl•27m ago•0 comments

Creative Clarity

https://herbertlui.net/creative-clarity/
3•herbertl•28m ago•0 comments

Clips Kitty Open-source local AI video clipping and editing

https://github.com/ColinGPT9/clips-studio
1•ColinGPT•31m ago•1 comments

Understanding ChatGPT Work

https://simonwillison.net/2026/Aug/30/understanding-chatgpt-work/
5•gmays•34m ago•0 comments

Reimagine-it – redesign existing HTML from its own content (CLI)

https://github.com/Kayforkind/reimagine-it
1•kazimrmerchant1•39m ago•0 comments

PocketJS: UI runtime for every kind of computer

https://pocketjs.dev/
4•tomcam•54m ago•1 comments

Transitous – Community-run public transport routing service

https://transitous.org
2•rickcarlino•55m ago•0 comments

Learn about Meshtastic and Austin Mesh

https://www.austinmesh.org/about/
1•simonpure•59m ago•0 comments

Cursor launches Origin code hosting platform as GitHub outage exposes opening

https://venturebeat.com/infrastructure/cursor-launches-origin-code-hosting-platform-as-github-out...
2•gmays•1h ago•0 comments

Minutes to 33 Seconds

https://luca.lowndes.net/blog/bun-tests-10-minutes-to-33-seconds
2•lucalow•1h ago•0 comments

Sitegeist – The ultimate design extraction toolkit

https://chromewebstore.google.com/detail/sitegeist/npgjkgkkjcbbafihmojgodekkfgnjgdc
2•BillyMangino•1h ago•0 comments

Gram Editor Release 3.3.0

https://gram-editor.com/posts/release-3.3.0/
2•signa11•1h ago•0 comments

Google Maps Changes Lake Ontario to 'Lake America' on US Phones

https://thehill.com/policy/transportation/6059553-google-maps-renames-lake-america/
6•LopRabbit•1h ago•0 comments

Armageddon by Anthropomorphism: On Security and the Frontier

https://hardcoresoftware.learningbyshipping.com/p/242-armageddon-by-anthropomorphism
2•jeffreyrogers•1h ago•0 comments

Is Japan backpedaling on its work-style reforms?

https://www.japantimes.co.jp/news/2026/08/30/japan/society/japan-work-life-overtime/
2•mikhael•1h ago•0 comments

Pgwire explorer: the Postgres wire protocol, byte by byte

https://pgwire-explorer.dhuk.net/
1•thunderbong•1h ago•0 comments

Show HN: Magic Layers – Turn Any Image into Layers

https://magiclayers.net
1•QingWu•1h ago•0 comments

The quality you should most wish for your children

https://www.economist.com/business/2026/08/27/the-quality-you-should-most-wish-for-your-children
3•Anon84•1h ago•1 comments

Yen weakens past ¥160 per dollar, eroding intervention gains

https://www.japantimes.co.jp/business/2026/08/29/markets/yen-160-dollar-intervention/
44•rguiscard•1h ago•36 comments