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

The Manufactured Normalcy Field

https://www.urbanhonking.com/index.html
1•nvader•1m ago•0 comments

Freenet: A Peer-to-Peer Platform for Real-Time Decentralized Apps (Whitepaper) [pdf]

https://freenet.org/pdf/freenet-whitepaper.pdf
1•sanity•3m ago•0 comments

An Open Call to Flipper Devices: Problems with Flipper and How They Can Improve

https://spicemesh.de/posts/open-call-to-flipper/
1•muxdervish•3m ago•0 comments

Dusklight is a reverse-engineered reimplementation of Twilight Princess

https://github.com/TwilitRealm/dusklight
1•Plasmoid•8m ago•0 comments

TP-7 Field Recorder

https://teenage.engineering/products/tp-7
2•nirkalimi•9m ago•1 comments

Clippy Config Should Be Stricter

https://emschwartz.me/your-clippy-config-should-be-stricter/
1•birdculture•14m ago•0 comments

Tokenization Is the Bottleneck You're Not Measuring

https://ranvier.systems/2026/05/25/tokenization-is-the-bottleneck-youre-not-measuring.html
1•mindsaspire•17m ago•0 comments

ContextVault – Local-First AI Conversation Recorder for ChatGPT, Claude, Gemini

https://context-vault-two.vercel.app/
1•aliabdm•20m ago•0 comments

I built a new app and I don't know how I feel about it

https://philna.sh/blog/2026/05/25/i-built-a-new-app-and-i-dont-know-how-i-feel-about-it/
1•philnash•21m ago•0 comments

What is 'pink-slime' journalism and has it infiltrated Australian media?

https://www.abc.net.au/news/2026-05-22/pink-slime-journalism-regional-australia-ai/106639600
2•MarxOk•27m ago•0 comments

The UX Cost of Swipe Culture

1•BrittanyHale•27m ago•0 comments

Radvd 2.21 – Linux IPv6 Router Advertisement Daemon

https://radvd.litech.org/
1•neustradamus•28m ago•0 comments

AlphaProof Nexus is out, but Hassabis said solving Erdős isn't real invention

https://www.youtube.com/watch?v=bgBfobN2A7A
1•muditsrivastava•28m ago•0 comments

Creating a More Human Online Dating Experience

https://nataliyajr.blogspot.com/
2•NicoleCarterhj•29m ago•0 comments

Presentation and promulgation of the Encyclical Letter "Magnifica humanitas"

https://www.vatican.va/content/leo-xiv/en/events/event.dir.html/content/vaticanevents/en/2026/5/2...
1•KnuthIsGod•30m ago•2 comments

Sweden now considered a smoke free country

https://www.sverigesradio.se/artikel/sweden-now-considered-a-smoke-free-country
2•aleda145•31m ago•0 comments

Wyoming Company Uses High-Tech AI Sprinklers to Save Homes from Wildfire

https://cowboystatedaily.com/2026/05/25/wyoming-company-uses-high-tech-ai-sprinklers-to-save-home...
1•Bender•32m ago•1 comments

Ask HN: How do you get Internships with no work experience but cool projects?

1•dragonsenseiguy•34m ago•0 comments

Stack Overflow Sold to Tech Giant Prosus for $1.8B (2021)

https://www.wsj.com/business/deals/software-developer-community-stack-overflow-sold-to-tech-giant...
4•poly2it•35m ago•1 comments

Leadwerks Game Engine 5.1 Beta Releases with Support for "Potato PCs"

https://www.leadwerks.com/community/blogs/entry/2896-leadwerks-51-beta-is-now-available-with-supp...
3•Josh_Klint•49m ago•0 comments

Promising One and done heart disease genetic therapy

https://www.nytimes.com/2026/05/25/health/cholesterol-ldl-gene-therapy.html
2•anjel•55m ago•0 comments

CVE-2026-28952: Apple macOS 26.5 Kernel Vuln found by Claude

https://support.apple.com/en-us/127115
32•dragonsenseiguy•57m ago•1 comments

Google is its own worst enemy

https://disconnect.blog/google-is-its-own-worst-enemy/
7•cdrnsf•57m ago•0 comments

The Vatican-Anthropic relationship that's reshaping the AI ethics debate

https://religionnews.com/2026/05/22/why-anthropic-is-helping-unveil-the-popes-new-encyclical-on-ai/
4•cdrnsf•58m ago•0 comments

Performance of Rust Language [pdf]

https://github.com/yugr/rust-slides/
2•tanelpoder•1h ago•0 comments

Vim Classic

https://vim-classic.org/
3•GalaxyNova•1h ago•0 comments

SkiFreedle, a daily game version of SkiFree (1991)

https://skifreedle.com/
2•gfysfm•1h ago•1 comments

LLMs require curated context for reliable political fact-checking

https://arxiv.org/abs/2511.18749
2•teleforce•1h ago•0 comments

I Found the Lost Amiga Unix 2.02 [video]

https://www.youtube.com/watch?v=sDei4Tyo6yA
1•zdw•1h ago•0 comments

Secure TUI to Monitor Docker

https://toricli.sh
2•imbobbytables•1h ago•0 comments