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

Iris: Climbing to the Search Frontier

https://arxiv.org/abs/2609.04304
1•codelion•58s ago•0 comments

I turned my 2018 Redmi Note 5 Pro into a Kali NetHunter platform for $0

https://www.reddit.com/r/Kalilinux/comments/1w45o8r/i_turned_my_2018_redmi_note_5_pro_into_a_kali/
1•syumei•1m ago•0 comments

GPT-6 Astra demos: Games, Blender, websites and video workflows

https://github.com/magiccreator-ai/awesome-gpt-6-astra
1•Kevin_Guo•4m ago•0 comments

Astra has beat all 48 levels of Neal.fun's "I'm Not a Robot" game

https://twitter.com/sharifshameem/status/2096847916837314853
1•smusamashah•4m ago•0 comments

Show HN: DepWarden – free, anonymous dependency vulnerability scanner

https://depwarden.in/blog/npm-pypi-typosquatting-2026-report
1•rushabh5000•4m ago•0 comments

Resend · Email for Developers

https://resend.com
1•thunderbong•8m ago•0 comments

We Can't Know Our A.I. Future If We Don't Study It

https://www.nytimes.com/2026/09/06/opinion/ai-social-sciences.html
1•vinni2•9m ago•0 comments

Mesamatrix: The Mesa Drivers Matrix

https://mesamatrix.net/
1•natureglass•12m ago•0 comments

Impedance Matching

https://www.edge.org/response-detail/27238
1•muti•15m ago•0 comments

Show HN: JarPeek – Online Java Class Decompiler(No Upload)

https://jarpeek.com/class-decompiler
1•xooch_95•16m ago•0 comments

Show HN: Hayduk, a browser-based Metasploit GUI inspired by Armitage

https://github.com/jolovicdev/hayduk
1•jolovicdev•21m ago•0 comments

Learning Synths – Ableton

https://learningsynths.ableton.com/
1•vsvagr•22m ago•0 comments

25 years ago, two strangers met in the twin towers and escaped on 9/11

https://www.theguardian.com/us-news/2026/sep/07/strangers-twin-towers-escape-september-11
1•ljf•22m ago•0 comments

Show HN: Guile-Secure Your Stack

https://guile.in
2•Harsha2193•26m ago•0 comments

Joining Advanced Machine Intelligence to work on world models

https://www.lihaoyi.com/post/JoiningAMItoworkonWorldModels.html
2•plun9•30m ago•0 comments

How to Write Tech Doc

https://essays.nigri.dev/How-to-write-tech-doc
3•napo•30m ago•0 comments

South Atlantic Anomaly

https://en.wikipedia.org/wiki/South_Atlantic_Anomaly
2•robin_reala•33m ago•0 comments

'You Can See Everything' Review: Nathan Fielder's Doc About Elizabeth Holmes

https://variety.com/2026/film/reviews/nathan-fielder-surprise-film-telluride-elizabeth-holmes-123...
13•cianmm•34m ago•1 comments

JavaScript installer pnpm recast in Rust because ECMAScript can't keep up

https://www.theregister.com/devops/2026/09/04/javascript-installer-pnpm-recast-in-rust-because-ec...
2•pjmlp•35m ago•0 comments

Caltech Mathathon – first hackathon ever devoted to research level mathematics

https://mathathonchallenge.com/index.html
2•astroanax•41m ago•0 comments

Speculative Decoding in vLLM on AMD GPUs

https://vllm.ai/blog/2026-08-23-speculative-decoding-amd-gpus
3•ankitg12•41m ago•0 comments

Trump unveils Space Force uniform inspired by Nazi-aesthetic film

https://www.telegraph.co.uk/us/politics/2026/09/07/donald-trump-space-force-uniform-nazi/
6•doener•42m ago•1 comments

Raptor turns Claude Code into a general-purpose AI

https://github.com/gadievron/raptor
2•mitifo5226•43m ago•1 comments

Show HN: Forget Rigid Stock Screeners – A Universal Query API for Financial Data

https://financialdata.net/universal-query
2•_FDN_•44m ago•0 comments

GPT 6 created a new universe [video]

https://www.youtube.com/watch?v=5ldy0Rfx8gA
2•modinfo•45m ago•0 comments

Plastics Companies Are Writing Lesson Plans. What Could Go Wrong?

https://www.wired.com/story/plastics-companies-writing-lesson-plans-what-could-go-wrong/
2•beardyw•46m ago•0 comments

Ask HN: Do People Care About Image Optimisation Anymore?

2•CM30•47m ago•0 comments

Train your own custom Tiny TTS model from scratch overnight on consumer hardware

https://github.com/franciscocarloserra/ttslibre
2•FranciscoCarlos•47m ago•0 comments

Ask HN: How do you keep AI coding agents in sync with a changing Figma file?

2•rjvidentia•51m ago•0 comments

Unreliable Guide to Locking

https://docs.kernel.org/kernel-hacking/locking.html
2•ankitg12•52m ago•0 comments