frontpage.
newsnewestaskshowjobs

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

How do I promote an anti AI slop tool I built? It's free and genuine

1•arpanghoshal•4m ago•0 comments

Turning My PS3 into a Moonlight Streaming Host, and Building with LLMs

https://kenmyers.io/posts/ps3-moonlight
1•bruhfeefee•6m ago•0 comments

Show HN: Novrl, clickable product demos from screenshots, no account needed

https://novrl.com/
1•dylan_builds•11m ago•0 comments

Thorsten Ball – What I believe about the future of software development

https://thorstenball.com/blog/2026/09/19/what-i-believe-about-the-future-of-software-development/
2•Helithumper•12m ago•0 comments

Is Life Itself a State of Matter?

https://thereader.mitpress.mit.edu/is-life-itself-a-state-of-matter/
1•pseudolus•13m ago•0 comments

Trust No Bot

https://trustnobot.com
2•kevinmannix•16m ago•1 comments

Is open source contribution still relevant?

1•cipherdc•17m ago•2 comments

How to Know When the AI Boom Is About to Go Bust

https://www.wsj.com/finance/stocks/how-to-know-when-the-ai-boom-is-about-to-go-bust-61af3d26
2•1vuio0pswjnm7•17m ago•0 comments

Show HN: DeepFace is now running on PyTorch alongside TensorFlow

https://github.com/serengil/deepface
1•serengil•17m ago•0 comments

How a Zig IDE Could Work

https://matklad.github.io/2023/02/10/how-a-zig-ide-could-work.html
1•birdculture•20m ago•0 comments

European industry is doing better than you may think

https://www.economist.com/business/2026/09/27/european-industry-is-doing-better-than-you-may-think
2•andsoitis•22m ago•0 comments

San Francisco Bay Area faces potential death spiral of transit system

https://www.theguardian.com/us-news/2026/sep/26/san-francisco-bay-area-public-transportation-bart
1•andsoitis•22m ago•0 comments

Thread-identity switcheroo for io_uring

https://lwn.net/SubscriberLink/1094303/bf025f98cb71f941/
1•chmaynard•24m ago•0 comments

Windows Developer Config

https://github.com/microsoft/WindowsDeveloperConfig
1•wontoncc•25m ago•0 comments

Flux 3 Action: A 7B open-weight world action model for robots

https://huggingface.co/blog/black-forest-labs/flux-3-action
2•fourfire•27m ago•0 comments

Show HN: DynamicNotch – An interactive, customizable notch utility for macOS

https://github.com/Hitjack007/DynamicNotch
1•Hitjack007•33m ago•0 comments

Show HN: Agenttab – Status Icons for Claude Code, Codex and OpenCode Tabs

https://github.com/marciob/agenttab
1•marciob•33m ago•0 comments

How do you turn a random idea into a good X post?

https://hokly.vercel.app
1•Raimundoevita•36m ago•0 comments

Gold-rich Nicaragua hands Chinese miners rights to a tenth of its land

https://www.ft.com/content/452648fd-90d6-450f-9739-073f5b6a0d18
3•JumpCrisscross•40m ago•0 comments

Judge orders release of records on Nazi war criminals who settled in Canada

https://ottawacitizen.com/public-service/defence-watch/judge-orders-release-of-records-on-nazi-wa...
10•Teever•41m ago•1 comments

Leaked Gemini 4 Pro numbers

https://www.reddit.com/r/GoogleGeminiAI/comments/1wqze2k/looking_at_the_leaked_gemini_4_pro_numbe...
1•simonpure•43m ago•1 comments

What Happened in Austin

https://www.freerange.city/p/what-happened-in-austin
2•JumpCrisscross•44m ago•0 comments

Hitachi to double US production of small and medium-sized power transformers

https://www.utilitydive.com/news/hitachi-to-double-us-production-of-small-and-medium-sized-power-...
5•JumpCrisscross•45m ago•1 comments

The Great Crime Decline Is Happening All Across the Country

https://www.theatlantic.com/ideas/2026/01/great-crime-decline/685695/
5•andsoitis•46m ago•0 comments

ISO100 – Photography portfolios without designing a website

https://iso100.app/
1•ElbertF•46m ago•0 comments

Dropping Swift from our Bevy iOS crates

https://rustunit.com/blog/2026/09-04-bevy-ios-crates-objc2/
1•arto•47m ago•0 comments

Medicare admin using WISeR AI to approve/deny medical care for seniors

https://arstechnica.com/health/2026/09/trump-admin-using-ai-to-deny-medical-care-for-seniors-in-d...
1•Gaishan•47m ago•0 comments

An Open Letter to Scott Alexander

https://quillette.com/2026/09/26/an-open-letter-to-scott-alexander-steven-pinker-ai-alignment-saf...
3•cobbzilla•47m ago•0 comments

Show HN: Has Anthropic been nerfing their models without disclosure

https://github.com/ninjahawk/livenerf
2•ninjahawk1•50m ago•0 comments

Safe Optimistic Lock Coupling

http://databasearchitects.blogspot.com/2026/04/safe-optimistic-lock-coupling.html
1•greghn•51m ago•0 comments