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

Prompts Are Not Guardrails

https://sdeaton.com/blog/prompts-are-not-guardrails/
1•speckx•1m ago•0 comments

The Download: climate tech companies to watch and AI's discovery problem

https://www.technologyreview.com/2026/09/29/1145249/the-download-climate-tech-ai-scientific-disco...
1•joozio•1m ago•0 comments

Ask HN: Do you believe that the AI will kill everyone who doesn't say please?

1•roschdal•2m ago•1 comments

Hibernating bacteria survive outer space but energy budget reveals a weakness

https://phys.org/news/2026-09-hibernating-bacteria-invade-hospitals-survive.html
1•majkinetor•4m ago•0 comments

Scammers Pretending to Be Grandchildren Are Robbing the Elderly

https://thewalrus.ca/grandparent-scam/
2•gmays•6m ago•0 comments

John Wolff's Web Museum

https://www.johnwolff.au/
1•Snow_Falls•6m ago•1 comments

Show HN: Helping small business owners automate their front of house

https://essencetheapp.com
1•frankgrecojr•6m ago•0 comments

Punchcard on Rails – Convention over Comprehension

https://punchcard.lol/
1•tortilla•6m ago•0 comments

McDonald's push to have AI price your Big Mac

https://www.reuters.com/business/inside-mcdonalds-push-have-ai-price-your-big-mac-2026-09-29/
1•tolugenius•7m ago•0 comments

In Defense of the Visual Cortex

https://miralume.dev/the-architect/in-defense-of-the-visual-cortex
1•Jernesstar•9m ago•0 comments

I Found a $113,337 Af_alg Linux Local Privilege Escalation Before Copy Fail

https://idnsec.com/research/linux-local-privilege-escalation-with-af-alg/
1•ibobev•10m ago•0 comments

OpenAI DevDay Keynote

https://openai.com/live/
4•postalcoder•10m ago•0 comments

Dissecting House of Apple 2 on modern glibc

https://jazho76.github.io/house_of_apple_2/
1•ibobev•10m ago•0 comments

Pope Leo says he's not in 'panic mode' over AI, but warns against ignoring risks

https://www.usccb.org/news/2026/pope-leo-says-hes-not-panic-mode-over-ai-warns-against-ignoring-r...
1•haunter•11m ago•0 comments

Deploying Guix Images on Linode

https://dthompson.us/posts/deploying-guix-images-on-linode.html
1•ibobev•11m ago•0 comments

Paid to peer review: firms paying researchers to assess manuscripts for journals

https://www.nature.com/articles/d41586-026-02277-y
2•bookofjoe•11m ago•1 comments

Show HN: Text alerts when Codex resets are announced

https://resetalerts.com
2•samfeldman•11m ago•0 comments

Rust based platform for e-ink gadgets (ESP32)

https://alexgrinman.com/posts/tinyboard
1•agrinman•11m ago•0 comments

Boeing Knew About New 737 MAX Software Glitch for Nearly Two Years

https://viewfromthewing.com/boeing-knew-about-new-737-max-software-glitch-for-nearly-two-years-un...
1•crescit_eundo•11m ago•2 comments

Raw IQ Capture with Espressif's ESP32 Chips

https://espargos.net/espsdr/
1•pantalaimon•12m ago•0 comments

Reproducing Olmo 3 7B Pre-training

https://developers.googleblog.com/reproducing-olmo-3-7b-pre-training-in-maxtext-case-study-of-lar...
1•kristianpaul•12m ago•0 comments

AI Mode in Polyforest Particles for Threejs

https://blog.polyforest.com/announcing-ai-mode/
1•nbilyk•12m ago•0 comments

SpaceX Starship reaches orbit, deploys 26 satellites, returns early

https://news.kagi.com:443/science/2026092911/spacex-starship-reaches-orbit-deploys-26-satellites-...
1•majkinetor•12m ago•0 comments

Show HN: Magic 8 Ball powered by Jev

https://jevball.rorz.io/
1•sarreph•12m ago•0 comments

Show HN: Nerftracker – We show you when models get nerfed

https://nerftracker.com
1•creepy•13m ago•1 comments

Patricia Nilsson is exposing the biggest porn bosses

https://www.theguardian.com/lifeandstyle/2026/sep/29/patricia-nilsson-exposing-worlds-biggest-por...
1•Teever•13m ago•0 comments

Teaching a machine to squish video where it shouldn't fit

https://plaing.ca/posts/aetv/
1•thcipriani•13m ago•0 comments

Vint Cerf on IPv4 and 32 bit addresses

https://seclists.org/nanog/2010/Apr/193
1•rbanffy•13m ago•0 comments

Jev-compatible document classification with open-weight VLMs

https://twitter.com/spillai/status/2104652615569334397
1•fzysingularity•14m ago•0 comments

Live from OpenAI DevDay 2026 [video]

https://www.youtube.com/watch?v=Fls_onRviPM
1•Palmik•14m ago•0 comments