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

Economics of Expanding Medical Assistance in Dying to Vulnerable Populations

https://journals.sagepub.com/doi/10.1177/00302228251323299
1•NalNezumi•3m ago•0 comments

Hiring Trends in Mid 2026: What Founders Are Getting Wrong

https://foundersarehiring.com/hiring-resources/hiring-trends-mid-2026
1•niksmac•5m ago•0 comments

AI Font Detector: Smart Ways to Identify Fonts with Precision

https://www.tumblr.com/tracksaasly/816569321203613696/ai-font-detector-smart-ways-to-identify-fon...
1•emmaroutines•5m ago•0 comments

Non-interactive Claude Code usage ejected from subscriptions

1•mdemare•5m ago•0 comments

Why Ruby Is the Better Language for LLM-Powered Development

https://www.bytecode.hr/posts/why-ruby-is-the-better-language-for-llm-powered-development
1•faangguyindia•7m ago•0 comments

Firefox extension to browser the web in a 1990s GeoCities retro style

https://addons.mozilla.org/en-US/firefox/addon/geocities-time-machine/
2•whatsupdog•7m ago•1 comments

GitLab's Reliability Crisis: Developers Are Fed Up and Going Public

https://gitlab.com/gitlab-com/gl-infra/production/-/work_items/22104
1•joshwoodcock•8m ago•0 comments

James Reason, Who Used Swiss Cheese to Explain Human Error, Dies at 86 (2025)

https://www.nytimes.com/2025/03/13/science/james-reason-dead.html
1•zeristor•9m ago•2 comments

Remove .zig Files from Bun

https://github.com/oven-sh/bun/pull/30680
1•quasigloam•12m ago•0 comments

High-Entropy Alloy

https://en.wikipedia.org/wiki/High-entropy_alloy
1•leonidasrup•16m ago•0 comments

Azure Container Apps express overview

https://learn.microsoft.com/en-us/azure/container-apps/express-overview
1•mariuz•20m ago•0 comments

Perceptron Mk1 highly performant video analysis model 80% cheaper than big three

https://venturebeat.com/technology/perceptron-mk1-shocks-with-highly-performant-video-analysis-ai...
1•rswerve•20m ago•0 comments

ByteHug Technologies

https://play.google.com/store/apps/details?id=com.bytehug.daydonedayplanner&hl=en_US
1•AnjuAlias•22m ago•0 comments

Show HN: Midjourney Prompt Generator

https://www.midjourney-prompt-generator.eu/
1•manol_ai•26m ago•1 comments

Nginx Rift: Nginx Remote Code Execution via an 18-Year-Old Vulnerability

https://depthfirst.com/research/nginx-rift-achieving-nginx-rce-via-an-18-year-old-vulnerability
1•throwaway2027•33m ago•0 comments

Show HN: Mind Focus, an Android app for focus and attention recovery

https://www.ataraxiaapps.com/en/posts/app-mind-focus/
1•korax_nyx•36m ago•0 comments

Claude changes headless usage from June 15

https://twitter.com/ClaudeDevs/status/2054610152817619388
1•tzmlab•39m ago•0 comments

Less is exponentially more (2012)

https://commandcenter.blogspot.com/2012/06/less-is-exponentially-more.html
1•tosh•39m ago•0 comments

Behind the Sound of Ninja Gaiden: Ragebound

https://www.audiokinetic.com/en/community/blog/ninja-gaiden-ragebound/
1•severine•40m ago•0 comments

Lets Roast Your Website

1•ajaysheoran2323•41m ago•0 comments

Show HN: ChangeSpec – An open standard for notices in software changes

https://changespec.org/
1•cdnsteve•43m ago•1 comments

Daily Food Guessing Game

https://munchle.day/
1•shumaher•45m ago•0 comments

Riding the Leopard

https://www.notboring.co/p/riding-the-leopard
1•jger15•46m ago•0 comments

TypedArray.prototype.map()

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/map
1•tosh•46m ago•0 comments

Researchers say AI just broke every benchmark for autonomous cyber capability

https://cyberscoop.com/ai-autonomous-cyber-capability-benchmarks-broken-gpt5-claude-mythos/
1•lschueller•48m ago•0 comments

Avocado Studio – open-source AI content editor for Next.js sites

https://docs.avocadostudio.dev
1•yury_h•49m ago•0 comments

40-Year-Old System Analyzed with AI: It Turned Out to Have a Modern Architecture

https://medium.com/@noborutakahashi/a-40-year-old-system-analyzed-with-ai-it-turned-out-to-have-a...
1•fragmede•51m ago•0 comments

Britain just issued a cigarette ban that would shock Americans

https://slate.com/life/2026/05/britain-united-kingdom-smoking-cigarette-law-banned.html
3•sizzle•52m ago•0 comments

I Built a Programming Languge Inside Debug.com

https://code.likeagirl.io/programmers-survival-guide-for-a-zombie-apocalypse-f1580422675a?sk=769b...
1•nextputall•52m ago•0 comments

I found the most underrated B2B lead source for SaaS

https://www.indiehackers.com/post/the-most-underrated-b2b-lead-source-for-saas-CZjbmrpd8HrNELM7l3E3
1•stangineer•52m ago•0 comments