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•9mo ago

Comments

trbndev•9mo 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•9mo ago
That link is broken. Correct link: https://t128n.github.io/writings/2025-05-02_optimizing_searc...
trbndev•9mo 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•9mo 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•9mo 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•9mo 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•9mo 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

Voidtools Everything – Locate files and folders by name instantly

https://www.voidtools.com/
1•idw•34s ago•1 comments

Systemic Software Debugging - Sony Ericsson Course Material (2012)

https://systemicsoftwaredebugging.com/
1•transpute•3m ago•0 comments

Show HN: First AI Employee – Treat AI as a hire, not a chatbot

https://site-beige-ten.vercel.app
1•op-collective•4m ago•0 comments

Show HN: Datui – TUI for data exploration (local files, S3, HTTP)

https://github.com/derekwisong/datui
1•derekwisong•7m ago•0 comments

PopClip for Mac: PopClip for Mac Instant text actions

https://www.popclip.app/
1•janandonly•8m ago•0 comments

The last place to think freely will require a prescription (2020)

https://idiallo.com/byte-size/time-to-think
2•firefoxd•10m ago•0 comments

Japan Makes History by Beaming Electricity from Space Back to Earth

https://www.hokanews.com/2026/02/japan-makes-history-by-beaming.html
1•TEHERET•10m ago•0 comments

Sim City Opening Screen (SNES)

https://www.youtube.com/watch?v=fxSYzCesxfU
1•doener•12m ago•0 comments

Show HN: ClawGig – A freelance marketplace where AI agents can earn USDC

https://clawgig.ai
1•doncaarbon•14m ago•0 comments

Loyalty Is Dead in Silicon Valley

https://www.wired.com/story/model-behavior-loyalty-is-dead-in-silicon-valley/
3•fcpguru•14m ago•0 comments

Art of Roads in Games

https://sandboxspirit.com/blog/art-of-roads-in-games/
2•linolevan•14m ago•0 comments

Constraint Propagation for Fun

https://eli.li/constraint-propagation-for-fun
1•todsacerdoti•16m ago•0 comments

Experiments That Run Themselves

https://www.remoroo.com
1•adhamghazali•17m ago•0 comments

Show HN: Bambutop – a Rust TUI for Bambu Lab 3D printer monitoring

https://github.com/rhoopr/bambutop
1•rhoopr•19m ago•0 comments

The Five Types of Programmers (2010)

https://stevenbenner.com/2010/07/the-5-types-of-programmers/
3•alephnerd•19m ago•0 comments

Haruki Murakami Isn't Afraid of the Dark

https://www.nytimes.com/2026/02/08/books/haruki-murakami-profile.html
1•anarbadalov•21m ago•0 comments

WC3UI – Battle-tested UI components forged in Azeroth

https://wc3ui.banteg.xyz/
1•vyrotek•22m ago•0 comments

The Cost of a Function Call

https://lemire.me/blog/2026/02/08/the-cost-of-a-function-call/
2•pretext•23m ago•0 comments

Intelligent Tools: Find the Perfect AI Tool for Every Task

https://intelligenttools.co
1•koqoo•25m ago•0 comments

More Mac malware from Google search

https://eclecticlight.co/2026/01/30/more-malware-from-google-search/
2•kristianp•27m ago•0 comments

Show HN: Vibe Check – health reminders inside your Claude Code workflow

https://github.com/majidmanzarpour/vibe-check
1•MajidManzarpour•29m ago•0 comments

Yahoo Is Back

https://retrochat-4.emergent.host/login
1•mr_fuker•30m ago•1 comments

What if managing AIs felt like Minority Report?

https://twitter.com/geoffreylitt/status/2020599545206313171
1•tosh•31m ago•0 comments

Show HN: RoundsKeeper score tracking app for games (Swift, no ads/tracking)

https://testflight.apple.com/join/SEBHWwxZ
1•justbustr•35m ago•0 comments

Atmospheric microplastic emissions from land and ocean

https://www.nature.com/articles/s41586-025-09998-6
1•PaulHoule•35m ago•0 comments

Young Men Will Be Supercharging the Super Bowl Sunday Gambling Bonanza

https://youngmenresearchinitiative.substack.com/p/young-men-will-be-supercharging-the
1•m-hodges•36m ago•0 comments

Fluorite Game Engine

https://fluorite.game/
4•cevapi•36m ago•0 comments

I used Claude to rewrite my meta titles and doubled my search CTR

https://intelligenttools.co/blog/claude-fixed-0-7-ctr
1•BojanTomic•38m ago•1 comments

Show HN: Free Contact Form Forwarder

https://www.simplecontactform.org/
1•maxibenner•39m ago•0 comments

2025 AI Darwin Award Winners

https://aidarwinawards.org/winners-2025.html
1•numptymuppet•39m ago•0 comments