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

Comments

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

Hitachi Heat Pumps and Domestic Hot Water (DHW)

https://www.hitachiaircon.com/ranges/heating
1•teleforce•2m ago•0 comments

Driving Xiaomi's Electric Car: Are We Cooked? [video]

https://www.youtube.com/watch?v=Mb6H7trzMfI
1•colonCapitalDee•4m ago•0 comments

Show HN: A Web UI Generator for Rust CLI Projects

https://github.com/wb14123/clap-web-gen
1•wb14123•8m ago•0 comments

Waymo investigated for ongoing failures to stop for school busses

https://www.thestreet.com/technology/waymo-investigation-could-stop-autonomous-driving-in-its-tracks
1•toss1•8m ago•0 comments

Show HN: Day 0 of Walkable Infrastructure

1•duane_powers•8m ago•0 comments

Linux Founder Linus Torvalds Defends Windows' Blue Screens of Death

https://www.pcworld.com/article/3002074/linux-founder-linus-torvalds-defends-windows-blue-screens...
1•teleforce•12m ago•0 comments

Drosophila Brain Model

https://github.com/philshiu/Drosophila_brain_model
1•throwaway2027•14m ago•0 comments

Linux is the future of gaming – Gabe Newell, 2013 at LinuxCon [video]

https://www.youtube.com/watch?v=yeCuasjxsWk
2•embedding-shape•18m ago•0 comments

Meta acquires AI device startup Limitless

https://techcrunch.com/2025/12/05/meta-acquires-ai-device-startup-limitless/
1•Brajeshwar•19m ago•0 comments

White House National Security Strategy from November 2025

https://www.documentcloud.org/documents/26341039-national-security-strategy/
1•petethomas•20m ago•0 comments

Ask HN: Modern C# book for experienced developers?

2•Fire-Dragon-DoL•20m ago•0 comments

In Taxicab Geometry, Pi Equals 4 and Circles Aren't Round

https://www.nytimes.com/interactive/2025/06/09/science/math-strogatz-taxi-geometry.html
1•jawns•21m ago•0 comments

Collusion between firms increases by ninefold after onset of common leadership

https://www.nber.org/papers/w33866
3•delichon•21m ago•1 comments

Omi – MIT open-source your AI pendant can trust

https://www.omi.me/
1•_thinx•22m ago•0 comments

Without evidence, RFK Jr.'s vaccine panel tosses hep B vaccine recommendation

https://arstechnica.com/health/2025/12/without-evidence-rfk-jr-s-vaccine-panel-tosses-heb-b-vacci...
10•doener•23m ago•0 comments

When Fact-Checking Meant Something

https://yalereview.org/article/susan-choi-new-yorker-fact-checking
2•bookofjoe•23m ago•0 comments

EU Commission fines X €120M under the Digital Services Act

https://ec.europa.eu/commission/presscorner/detail/en/ip_25_2934
2•doener•24m ago•0 comments

Show HN: A Superscript Generator That Works with Any Text, Symbols Included

https://superscriptgenerator.net/
1•18272837023•24m ago•0 comments

YouTube caught making AI-edits to videos and adding misleading AI summaries

https://social.growyourown.services/@FediTips/115668457530054406
2•mystraline•26m ago•0 comments

I co-wrote a 1k-page prophetic trilogy with GPT – now free at wordnamefire.com

https://wordnamefire.com/
1•nuevita70•32m ago•0 comments

Google Must Limit Default Contracts to One Year, Judge Rules

https://www.bloomberg.com/news/articles/2025-12-05/google-must-limit-default-contracts-to-one-yea...
2•toomuchtodo•33m ago•1 comments

Are We over the "Jaws Effect?"

https://nautil.us/are-we-finally-over-the-jaws-effect-1253001/
1•fleahunter•33m ago•0 comments

Ask HN: Why we dont we have dark mode on Hacker News yet? this is not funny

2•hexo•37m ago•8 comments

Hierarchical Black Hole Cosmology: Why We Might Live Inside a Black Hole

https://www.researchgate.net/publication/398395677_Hierarchical_Black_Hole_Cosmology_From_Quantum...
1•tvenk•41m ago•1 comments

Puter.js Now Works with Your Favorite Frameworks

https://developer.puter.com/blog/use-puter-js-in-web-frameworks/
1•ent101•42m ago•0 comments

HTML Components (1998)

https://www.w3.org/TR/NOTE-HTMLComponents
2•djoldman•42m ago•0 comments

Advent of Code 2025: The AI Edition – By Peter Norvig

https://github.com/norvig/pytudes/blob/main/ipynb/Advent-2025-AI.ipynb
2•vismit2000•45m ago•0 comments

Does anyone use this commit message etiquette?

1•alekswitko•46m ago•1 comments

Fizz Buzz in 4 lines of CSS

https://mastodon.social/@susam/115668571178604230
1•birdculture•47m ago•0 comments

Instantaneous Velocity Is a Trap

https://www.brethorsting.com/blog/2025/12/instantaneous-velocity-is-a-trap/
2•aaronbrethorst•49m ago•0 comments