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•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

Acting Attorney Blanche Announces Antitrust Investigations on Meatpacking Ops

https://www.justice.gov/opa/video/acting-attorney-blanche-announces-antitrust-investigations-meat...
1•LostMyLogin•17s ago•0 comments

Pi for Word: AI sidebar add-in for Word powered by Pi Agent

https://github.com/damianofalcioni/pi-for-word
1•damianofalcioni•1m ago•0 comments

The Chinese remainder theorem and the Fourier transform

https://guille.site/posts/dft-crt/
1•LolWolf•2m ago•0 comments

PixelWars, 250k Pixels, 1 World. MMO

https://pixelwars.app/
1•SteveChurch•3m ago•1 comments

Alpine Linux systems currently offline

https://fosstodon.org/@alpinelinux/116516953669188535
1•prakashqwerty•5m ago•0 comments

Show HN: A live counter of human lifetime burned in your meetings

https://meetingburn.sillyprod.com
1•askos•5m ago•1 comments

Surfacing a 60% performance bug in cuBLAS

https://kernelspace.substack.com/p/surfacing-a-60-performance-bug-in
2•gkapur•5m ago•0 comments

The best is over: The fun has been optimized out of the Internet

https://muddy.jprs.me/posts/2026-05-03-the-best-is-over/
3•jprs•6m ago•0 comments

Becoming Unblockable

https://www.seangoedecke.com/unblockable/
1•fagnerbrack•6m ago•0 comments

Show HN: I built a local-first Web-to-EPUB tool after Omnivore shut down

1•nick_jonas•9m ago•0 comments

Cooperating in a Conversation

https://wilsoniumite.com/2026/05/04/cooperating-in-a-conversation/
2•alcazar•10m ago•0 comments

The iPhone That Never Was

https://www.wired.com/story/book-excerpt-david-epstein-inside-the-box-general-magic/
1•Brajeshwar•10m ago•0 comments

Looking for Technical Co-Founder

2•pinarsaas•10m ago•0 comments

Delete iCloud backups for old devices to reclaim storage space

https://ldstephens.net/reclaim-icloud-storage-by-deleting-icloud-backups-for-devices-that-you-no-...
1•speckx•10m ago•0 comments

World Robotics 2025 – Industrial Robots [pdf]

https://ifr.org/img/worldrobotics/Executive_Summary_WR_2025_Industrial_Robots.pdf
1•atlasunshrugged•11m ago•0 comments

Feynman Hamster

https://github.com/Thorwegian/hamster.js
1•ThJ•11m ago•1 comments

Former Nintendo of America President Warns Devs Mass Layoffs 'A Red Flag'

https://kotaku.com/nintendo-of-america-former-president-companies-mass-layoffs-red-flag-2000693008
2•stalfosknight•12m ago•0 comments

That's No Warehouse It's a Space Station

https://blog.matterbeam.com/thats-no-warehouse-its-a-space-station/
1•mikepk•12m ago•1 comments

Ask HN: What simple tools or products are you most proud of making?

2•chistev•12m ago•1 comments

Yet Another GitHub Incident

https://www.githubstatus.com/incidents/1j40g94rn22j
1•pera•14m ago•0 comments

A Tale of Three WebAssembly Runtimes

https://csjh.blog/posts/a-tale-of-three-wasm-runtimes/
2•csjh•14m ago•0 comments

Show HN: Vask – Pusher-compatible WebSockets on Cloudflare, no fan-out fees

https://vask.dev
1•ashleyhindle•14m ago•0 comments

The Cars Conspiracy [video]

https://www.youtube.com/watch?v=-St2XGb0n2w
1•burrito_brain•16m ago•0 comments

Little Snitch for Linux 1.0.7: Fixed XSS in JavaScript

https://github.com/obdev/littlesnitch-linux/releases/tag/releases%2F1.0.7
1•petecooper•16m ago•0 comments

Coinbase cuts 14% of workforce due to AI

https://xcancel.com/brian_armstrong/status/2051616759145185723
1•b58•16m ago•0 comments

Dunning-Kruger and the Communication Tax

https://danieltan.weblog.lol/2026/05/dunning-kruger-and-the-communication-tax
1•danieltanfh95•17m ago•0 comments

Ask HN: What will you do once you get old?

1•nhgiang•17m ago•3 comments

The Physics Behind the Thumb Trick

https://practical.engineering/blog/2026/5/5/the-physics-behind-the-thumb-trick
1•crescit_eundo•17m ago•0 comments

Pool Match

https://pool-match.com
1•bellamoon544•17m ago•0 comments

Haskell Language Server 2.14.0.0 release

https://blog.haskell.org/hls-2-14-0-0/
1•andrewstetsenko•17m ago•0 comments