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

Comments

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

I made a productivity device for less than 50 bucks

https://thelibre.news/i-made-the-ultimate-productivity-device/
1•birdculture•39s ago•0 comments

Raising Carthaginian Armies, Part I: Finding Carthaginians

https://acoup.blog/2026/04/10/collections-raising-carthaginian-armies-part-i-finding-carthaginians/
1•baud147258•39s ago•0 comments

Social media has become a freak show

https://www.natesilver.net/p/social-media-has-become-a-freak-show
1•herbertl•3m ago•0 comments

Yet another BFF toolkit for Python

https://allmonday.github.io/pydantic-resolve/
1•tank-34•3m ago•0 comments

Algorithmic Unification of Number Theory and Quantum Mechanics IBM Quantum

https://github.com/peterbabulik/The-Algorithmic-Unification-of-Number-Theory-and-Quantum-Mechanics
1•PeterBabulik•5m ago•0 comments

Giggles Raised a Pre-Seed for Tradable Videos – TikTok Meets the Trading Floor

https://www.siliconsnark.com/giggles-raised-a-pre-seed-for-tradable-videos-tiktok-meets-the-tradi...
2•SaaSasaurus•10m ago•0 comments

AI Agent Proxy to help reduce token usage (Anthropic Only)

https://github.com/Wuzu11517/agentic-proxy
1•Wuzu•12m ago•1 comments

Drones, Geophysics and AI: Researchers Battle Against Land Mines (2023)

https://news.climate.columbia.edu/2023/09/12/with-drones-geophysics-and-artificiai-intelligence-r...
1•defrost•14m ago•0 comments

Let Us Learn to Show Friendship for a Man When He Is Alive, Not After He Is Dead

https://daringfireball.net/2026/04/when_he_is_alive_and_not_after_he_is_dead#fnr2-2026-04-10
1•cratermoon•16m ago•0 comments

Rescuing vintage microcontrollers part 3: Life at long last

https://www.blog.montgomerie.net/posts/2026-03-02-rescuing-vintage-microcontrollers-part-3-life-a...
1•joecobb•16m ago•0 comments

Bun v1.3.12

https://bun.com/blog/bun-v1.3.12
3•bootlegbilly•17m ago•1 comments

AI-Assisted Breach of Mexico's Government Infrastructure Report

https://gambit.security/blog-post/a-single-operator-two-ai-platforms-nine-government-agencies-the...
1•bgrainger•18m ago•0 comments

Italo Calvino: A Traveller in a World of Uncertainty

https://www.historytoday.com/archive/portrait-author-historian/italo-calvino-traveller-world-unce...
4•lermontov•19m ago•0 comments

Molotov Coctail Thrown at Sam Altman's House

https://www.nbcnews.com/video/shorts/molotov-cocktail-thrown-at-sam-altman-s-house-261143109536
4•jellyotsiro•19m ago•0 comments

A Crazy Expensive U.S. Drone Just Disappeared over Strait of Hormuz

https://www.forbes.com/sites/davidhambling/2026/04/10/a-crazy-expensive-us-drone-just-disappeared...
2•Teever•23m ago•0 comments

PowerShell MSI Package Deprecation

https://devblogs.microsoft.com/powershell/powershell-msi-deprecation/
1•jborean93•23m ago•1 comments

Katabasis

https://en.wikipedia.org/wiki/Katabasis
4•BiraIgnacio•24m ago•0 comments

Toon – Token-Oriented Object Notation

https://toonformat.dev/
1•giancarlostoro•24m ago•0 comments

What I'd Tell Aspiring "Content Creators"

https://www.seeingthroughfilm.com/p/what-id-tell-aspiring-content-creators
2•pentagrama•25m ago•0 comments

Most startup launch platforms are built backwards

1•moodiverse•31m ago•1 comments

Maki – the efficient coder (AI agent)

https://maki.sh/
3•simjnd•32m ago•0 comments

FBI Extracts Suspect's Deleted Signal Messages Saved in iPhone Notification Data

https://mobile.slashdot.org/story/26/04/10/1656218/fbi-extracts-suspects-deleted-signal-messages-...
5•jnord•35m ago•0 comments

Intentions have a surprising amount of detail

https://contraptions.venkateshrao.com/p/intentions-have-a-surprising-amount
4•jger15•38m ago•0 comments

Phaser 4

https://phaser.io/
3•clessg•40m ago•0 comments

Show HN: Offline AI dev assistant (no API, runs locally)

https://store.steampowered.com/app/4111530/FriedrichAI_Offline_AI_Dev_Assistant/
3•RWS32177•41m ago•0 comments

Hit Claude usage limits? Resume your AI coding session elsewhere

https://github.com/inevolin/resume-cli
3•iljanevo•46m ago•1 comments

WireGuard developer can't ship software updates after Microsoft locks account

https://techcrunch.com/2026/04/08/wireguard-vpn-developer-cant-ship-software-updates-after-micros...
2•choult•47m ago•0 comments

A Cancer Treatment That Does More Than Scientists Thought

https://www.theatlantic.com/science/2026/04/car-t-cell-therapy-autoimmune-disease/686742/
5•breve•48m ago•0 comments

The Mouse Programming Language on CP/M

https://techtinkering.com/articles/the-mouse-programming-language-on-cpm/
3•PaulHoule•48m ago•1 comments

Artemis II: Live Earth reentry and splashdown after moon flyby [video]

https://www.youtube.com/watch?v=52eaHKtX0ks
5•embedding-shape•49m ago•2 comments