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

Hackers steal over $130M by exploiting bug in offline hardware wallets

https://techcrunch.com/2026/08/04/hackers-steal-over-130-million-by-exploiting-bug-in-offline-har...
1•gurjeet•1m ago•0 comments

Rent the Intelligence, Own the Relationship

https://sierra.ai/blog/context-engine
2•hahahacorn•4m ago•0 comments

Registration Data Access Protocol (RDAP), the Modern Version of Whois

https://en.wikipedia.org/wiki/Registration_Data_Access_Protocol
1•guessmyname•5m ago•0 comments

Lenia - a system of continuous cellular automata

https://chakazul.github.io/lenia.html
1•frozenseven•6m ago•0 comments

Claim-Driven Development in Hale

https://hale-lang.org/articles/claim-driven-development-in-hale/
3•rrook•10m ago•0 comments

Asus releases cheaper ROG NUC 16 gaming mini PC with Core Ultra 7 and 32GB RAM

https://www.notebookcheck.net/Asus-releases-cheaper-ROG-NUC-16-gaming-mini-PC-with-Core-Ultra-7-a...
1•teleforce•16m ago•0 comments

Bending Spoons Is Buying Airtable for $1.3B. It Was Valued at $11B in 2021

https://www.inc.com/lucia-auerbach/bending-spoons-buying-airtable-for-1-billion-valued-at-11-bill...
1•pseudolus•17m ago•0 comments

Stanford Online: CS329A Self-Improving AI Agents

https://www.youtube.com/playlist?list=PLangBM27OtEA
3•OutOfHere•18m ago•0 comments

Show HN: SIMD Viterbi Decoder in Rust

https://github.com/brian-armstrong/fec
2•brian-armstrong•18m ago•0 comments

Path lifting can remember order even when homotopy forgets escape

https://zenodo.org/records/21606390
1•groverbennett•20m ago•0 comments

AI scammers outperform humans when it comes to building trust

https://www.wired.com/story/ai-scammers-are-better-at-building-trust-than-humans/
2•tchalla•21m ago•0 comments

Western Sahara

https://en.wikipedia.org/wiki/Western_Sahara
1•brudgers•21m ago•0 comments

When Does Defending Yourself Become a Crime?

https://medium.com/@theworldaccordingtomatttaylor/when-does-defending-yourself-become-a-crime-603...
1•GDNews503AD•22m ago•0 comments

Show HN: Hinode – Cloud Linux desktop with a dedicated GPU that auto-pauses

https://hinode.run
1•iamursky•25m ago•0 comments

Body Workouts You Need to Know

https://ethansmith140833.substack.com/p/body-workouts-you-need-to-know
2•trimoxer•29m ago•0 comments

KiroCrew – Amazon's AI Harness

https://kiro.dev/crew/
1•ash663•31m ago•2 comments

Solar Water Disinfection

https://en.wikipedia.org/wiki/Solar_water_disinfection
1•_Microft•31m ago•0 comments

We finally learned to center a div, then browsers added sidebars

https://seg6.space/posts/center-div/
2•seg6•32m ago•0 comments

Linux 7.3 Expected to Drop the FreeVxFS File-System Driver

https://www.phoronix.com/news/Linux-Retiring-FreeVxFS
1•Bender•32m ago•0 comments

Our top agent latency optimisations

https://lexifina.com/blog/top-10-agent-optimisations-for-latency
1•alansaber•33m ago•0 comments

BMW's in-car Spider-Man ad is villain behavior

https://www.theverge.com/transportation/975172/bmw-spider-man-movie-infotainment-ad
5•cebert•33m ago•5 comments

Nixpkgs has a due-process problem

https://domenkozar.com/2026/08/04/nixpkgs-has-a-due-process-problem/
5•JustSkyfall•33m ago•0 comments

Pi's Minimalism Is Its Advantage

https://earendil.com/posts/pi-autoresearch-and-databricks/
3•luispa•33m ago•0 comments

AI stock sell-off slams hedge funds as Whale Rock loses 21.7% in July

https://www.bloomberg.com/news/articles/2026-08-04/whale-rock-sank-22-as-ai-selloff-crippled-hedg...
2•mapping365•34m ago•0 comments

Salad Fingers 1: Spoons (original upload) [video]

https://www.youtube.com/watch?v=M3iOROuTuMA
1•doener•35m ago•0 comments

Show HN: AI product evaluation methodoloy at huby

1•dd-sharma•37m ago•0 comments

What are credit default swaps and why are they spooking AI investors?

https://www.reuters.com/business/finance/global-markets-cds-explainer-2026-07-29/
3•mapping365•37m ago•1 comments

Ghostgrid AI

https://ghostgridai.com
1•mouhamad215•38m ago•0 comments

Missouri election chief rejects bid to hold vote on congressional districts

https://apnews.com/article/redistricting-congress-missouri-trump-petition-vote-election-5cfa5294a...
1•petethomas•38m ago•0 comments

Show HN: Collab Word in Web – Collaborative Near MS Word Parity Docx Editor

https://collab.word-in-web.com/
1•theRealestAEP•38m ago•0 comments