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

Security incident: Hostwinds client area offline

https://status.hostwinds.com/
1•debo_•2m ago•0 comments

Half‑Life: Alyx on Apple Vision Pro

https://glovebox.vision/
1•bryan0•6m ago•0 comments

HTX's iPhone Duo Review

https://www.youtube.com/watch?v=o1qc29t04GI
1•skogstokig•7m ago•0 comments

Max is now source available and open to everyone

https://www.modular.com/blog/max-license
1•nickmain•14m ago•0 comments

"Interesting hidden file on NVR"

https://www.reddit.com/r/reolinkcam/s/QIovKvK0JI
1•hentrep•14m ago•0 comments

Alzheimer's breakthrough: 2 hrs of sleep restored without clearing brain plaques

https://www.sciencedaily.com/releases/2026/10/261018084421.htm
3•amichail•15m ago•0 comments

LeTrain v1.0.0-beta.7 is out

https://github.com/antoniovazquezaraujo/LeTrain
1•avaraujo•15m ago•0 comments

The Emperor's New Clothes – Edward Snowden (2026) [video]

https://www.youtube.com/watch?v=zMG6aRZhIGE
1•xeonmc•22m ago•0 comments

Afterfeed: A tool to view all your social media backups

https://github.com/rebeccathedev/afterfeed/
1•RebeccaTheDev•25m ago•0 comments

DeepSeek Just Shook the AI Industry Again [video]

https://www.youtube.com/watch?v=YX6QdIYVSgY
1•Bender•25m ago•0 comments

If I wanted to talk to people I wouldn't come here

https://talktopeople.online
1•bobby2shorts•29m ago•0 comments

The One Question I Can't Stand at Restaurants

https://www.theatlantic.com/culture/2026/10/restaurant-phone-number-question/688926/
1•voisin•30m ago•1 comments

A visual introduction to information theory

https://arxiv.org/abs/2206.07867
1•nill0•30m ago•0 comments

Password, Please: Border Searches of Laptops, Phones Up 32% This Year

https://gizmodo.com/password-please-border-searches-of-laptops-phones-up-32-this-year-2000830213
1•gumby•31m ago•0 comments

SCAMPI Mission Launches to the ISS

https://education.esa.int/student-built-scampi-experiment-launches-to-the-international-space-sta...
1•binarymax•31m ago•0 comments

Users of Apple's new $2K iPhone Duo are complaining of cracked devices

https://nypost.com/2026/10/23/business/apples-new-2k-iphone-duo-wows-critics-with-foldable-screen...
2•lakeviewterrace•32m ago•2 comments

Mark Zuckerberg Pushed Meta to Shield Him from California's Proposed Wealth Tax

https://www.nytimes.com/2026/10/21/technology/mark-zuckerberg-meta-california-wealth-tax.html
9•JKCalhoun•32m ago•10 comments

Show HN: 27B open model to grade robot data 48x cheaper/27x faster vs. 6 Astra

https://twitter.com/josefchen/status/2113687649131336039
1•josefchen•36m ago•0 comments

The anti-AI writing police are everywhere. What are they looking for?

https://www.cnn.com/2026/10/21/tech/ai-detectors-pangram-literary-prizes-cec
1•paulpauper•37m ago•0 comments

Winter on the Ward

https://ussri.substack.com/p/winter-on-the-ward
1•paulpauper•39m ago•0 comments

Book Review: The Ghost in My Brain

https://www.astralcodexten.com/p/your-book-review-the-ghost-in-my
1•paulpauper•39m ago•0 comments

Brotli Decoder Vulnerability

https://patchtheplanet.org/brotli
2•nthypes•39m ago•2 comments

Google's Frontier Imperative, Compute Scarcity Dilemmas and the Future of AI

https://www.bigtechnology.com/p/sundar-pichai-googles-frontier-imperative
1•gmays•42m ago•0 comments

Twelve Years of Distributed SQLite

https://philipotoole.com/twelve-years-of-distributed-sqlite/
2•otoolep•51m ago•0 comments

Around a dozen banking apps began specifically permitting GrapheneOS

https://grapheneos.social/@GrapheneOS/117492375462459244
2•privacyishuman•53m ago•0 comments

I built rooms for AI agents to work together

https://bellman.sh/r/blog/p001-hello-front-desk
2•mcfearsome•56m ago•0 comments

Show HN: MotorHangar: Car specs, safety ratings, and recalls in one place

https://motorhangar.com/
1•lou_alcala•59m ago•0 comments

GhostLite: Why we need another blogging app

https://kumailht.com/introducing-ghostlite-or-why-we-need-yet-another-blogging-app/
1•khet•1h ago•0 comments

Ask HN: What was pancake.apple.com used for?

https://pancake.apple.com
1•BSOhealth•1h ago•2 comments

Remake: Enhanced GNU Make

https://github.com/Trepan-Debuggers/remake
2•denysonique•1h ago•0 comments