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

Comments

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

How to gracefully handle resource variants in your REST API

https://www.stainless.com/blog/how-to-gracefully-handle-resource-variants-in-your-rest-api
1•mooreds•55s ago•0 comments

Trade Chaos Causes Businesses to Rethink Their Relationship with the U.S.

https://www.nytimes.com/2025/11/24/business/tariffs-trade-small-business.html
2•mooreds•2m ago•0 comments

Google Leapfrogged Rivals with New Gemini Rollout

https://www.wsj.com/tech/ai/google-gemini-3-ai-behind-scenes-e1787729
1•achow•2m ago•0 comments

Why Your AI Isn't Finding Great Ideas

https://app.brainhurricane.ai/blog/why-your-ai-isnt-finding-great-ideas
1•L1nefeed•3m ago•1 comments

WebRTC Survives When You Walk Out

https://pion.ly/blog/automatic-renomination/
3•kevmo314•3m ago•0 comments

Show HN: Mintlify Ignored This Feature Request for 6 Months. Here's My Solution

https://github.com/madrasly/madrasly
1•SamTinnerholm•4m ago•0 comments

Henry Todd, LSD Kingpin Turned Everest Guide, Dies at 80

https://www.nytimes.com/2025/11/19/world/asia/henry-todd-dead.html
1•bookofjoe•5m ago•1 comments

Issue tracker for your coding agent

https://pypi.org/project/issuedb
1•rodmena•6m ago•0 comments

Negative Mass (Part 1)

https://johncarlosbaez.wordpress.com/2025/09/28/negative-mass/
1•surprisetalk•8m ago•0 comments

Mapping the future with 3D-printed titanium Apple Watch cases

https://www.apple.com/newsroom/2025/11/mapping-the-future-with-3d-printed-titanium-apple-watch-ca...
1•surprisetalk•9m ago•0 comments

Airplanes Attach Advertising Banners After Takeoff

https://www.core77.com/posts/138817/The-Surprising-Way-Airplanes-Attach-Advertising-Banners-After...
1•surprisetalk•9m ago•0 comments

What Now? Handling Errors in Large Systems

https://brooker.co.za/blog/2025/11/20/what-now.html
1•surprisetalk•9m ago•0 comments

Created a Free Advanced Password Strength Analyzer and Saver

https://www.devglan.com/online-tools/password-analyzer
1•only2dhir•10m ago•1 comments

Technical Deflation

https://benanderson.work/blog/technical-deflation/
1•0x79de•10m ago•0 comments

This Slug Should Be Impossible [video]

https://www.youtube.com/watch?v=IH_uv4h2xYM
1•amichail•11m ago•0 comments

Ask HN: How do you spot AI writing?

1•allanmacgregor•11m ago•0 comments

Weaponised autism in online alt-right communities

https://chuniversiteit.nl/papers/weaponised-autism
1•ibobev•11m ago•0 comments

Scaling Kotlin Adoption Across Your Organization

https://blog.jetbrains.com/kotlin/2025/11/scaling-kotlin-adoption-across-your-organization/
1•quapster•12m ago•0 comments

Move Expressions

https://smallcultfollowing.com/babysteps/blog/2025/11/21/move-expressions/
1•ibobev•12m ago•0 comments

OpenEXR vs. Tinyexr

https://aras-p.info/blog/2025/11/22/OpenEXR-vs-tinyexr/
1•ibobev•13m ago•0 comments

Why night owls are more intelligent

https://www.sciencedirect.com/science/article/abs/pii/S0191886909002177
1•tzury•13m ago•0 comments

Bureau of Meteorology asked to examine $96.5M bill for website redesign

https://www.abc.net.au/news/2025-11-23/bureau-of-meteorology-new-website-cost-blowout-to-96-milli...
2•OuterVale•14m ago•0 comments

UK union accuses Rockstar Games of firing employees attempting to organise

https://www.theguardian.com/games/2025/nov/07/uk-union-accuses-gta-maker-rockstar-games-of-firing...
3•hexmiles•16m ago•0 comments

Docusaurus plugin that exposes your markdown as raw .md URLs. (For LLM's etc.)

https://github.com/FlyNumber/markdown_docusaurus_plugin
1•flynumber•19m ago•1 comments

"Go generate a bridge and jump off it": How video pros are navigating AI

https://arstechnica.com/features/2025/11/go-generate-a-bridge-and-jump-off-it-how-video-pros-are-...
1•fleahunter•19m ago•0 comments

Udo Kier, One of Cinema's Great Eccentrics, Has Passed Away at 81

https://screenrealm.com/udo-kier-death-news/
1•Qem•19m ago•0 comments

Shai-Hulud Strikes Again, Again. (NPM Supply Chain Attack)

https://socket.dev/blog/shai-hulud-strikes-again-v2
1•pvtmert•19m ago•0 comments

Open (Apache 2.0) TTS model for streaming conversational audio in realtime

https://github.com/nari-labs/dia2
1•SweetSoftPillow•21m ago•0 comments

Show HN: The AI Intellectual Property Paradox

https://open.spotify.com/episode/4se21aIPPbLMhEfplrNVPz
1•FunnyGunther•21m ago•0 comments

A Continent Steps Away from Hydrogen Transport. Spain Doubles Down

https://cleantechnica.com/2025/11/21/a-continent-steps-away-from-hydrogen-transport-spain-doubles...
1•asymmetric•22m ago•0 comments