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

Typed WebSocket Realtime in Point0, a TypeScript Framework on Bun and React

https://1gr14.dev/en/blog/point0-socket
1•1gr14•1m ago•0 comments

The Horse

https://worksinprogress.co/issue/the-ultimate-horse/
1•ortegaygasset•1m ago•0 comments

The Creators of VHS Dates Are Ready to Come Clean

https://www.nytimes.com/2026/08/10/arts/vhs-dates-instagram-tapes.html
1•rdmuser•1m ago•0 comments

The Datamaxxers Feeding Their Every Health Move to AI

https://www.wsj.com/tech/ai/the-datamaxxers-feeding-their-every-health-move-to-ai-df0af9b5
1•thm•1m ago•0 comments

Show HN: A website for exploring historical photographs of my city

https://yesterdays.maprva.org/
1•uneekname•2m ago•0 comments

GUI Programming

https://fomenko.fr/devlogs/gui-programming/
1•kooparse•2m ago•0 comments

Google launches Pixel 11 Pro Fold

https://blog.google/products-and-platforms/devices/pixel/pixel-11-pro-fold/
2•thm•2m ago•0 comments

Startups Need an Asymmetry

https://sunilpai.dev/posts/startups-need-an-asymmetry/
1•tosh•2m ago•0 comments

Show HN: Bough – a coding agent that writes a program per turn, not tool calls

https://github.com/andreylukin/bough
1•alukin•3m ago•0 comments

Twisted Physics: Astronomers Solve 30-Year-Old Stellar Mystery

https://public.nrao.edu/news/twisted-physics-astronomers-solve-30-year-old-stellar-mystery/
1•MarcoDewey•4m ago•0 comments

Psysonic: A full-featured desktop client for Navidrome

https://github.com/Psychotoxical/psysonic
1•ju3rg•4m ago•0 comments

Show HN: Tss – Simple Tailscale Host Selector command-line tool

https://github.com/berggren/tss
1•jbn4711•4m ago•1 comments

Qwen3.8 Weights Release in 10 minutes

https://modelscope.cn/models/Qwen/Qwen3.8-2.4T-A95B
3•apitman•5m ago•0 comments

We built a job board where the employers aren't human. Here's what broke

1•Taskpoolai•5m ago•1 comments

AI Startup Cognition in New Funding Talks at $40B Value

https://www.bloomberg.com/news/articles/2026-08-12/ai-startup-cognition-in-new-funding-talks-at-4...
2•closetheloopdev•6m ago•0 comments

Qwen3.8-27B Countdown

https://modelscope.cn/models/Qwen/Qwen3.8-27B
2•apitman•6m ago•0 comments

The Odyssey as AI Allegory

https://unherd.com/2026/08/the-odyssey-as-an-ai-allegory/
1•voxleone•8m ago•0 comments

Show HN: Kery – comments on your PR with a video of the feature working

https://github.com/Kery-HQ/Kery
1•Kvlshah•9m ago•1 comments

Is GitHub Online?

https://isgithub.online/
2•vednig•10m ago•1 comments

Canadians call for U.S. Ambassador Hoekstra to be expelled

https://www.cbc.ca/lite/story/9.7303372
4•colinprince•10m ago•0 comments

Show HN: Capto – alerts when a background job goes quiet, with breadcrumbs

https://capto.run
1•johndory80•10m ago•1 comments

We made Kamal deploy to Kubernetes without touching deploy.yml

https://miget.com/blog/deploy-rails-with-kamal
1•ktaraszk•11m ago•0 comments

Hax – a minimalist, terminal-native coding agent written in C

https://usehax.dev/
2•OleksandrC•11m ago•0 comments

License Plate Reader Searches Should Require a Warrant

https://andrewpwheeler.com/2026/08/12/license-plate-reader-searches-should-require-a-warrant/
13•apwheele•11m ago•1 comments

StashKit – ez QR code generator

https://stashkit.co
1•adStein•11m ago•0 comments

I built an AI website in 3 hours, got 562 sign-ups, and felt lost

https://medium.com/@kakuxwn/i-built-an-ai-website-in-3-hours-it-got-562-sign-ups-in-8-hours-and-l...
1•Irving-AI•14m ago•1 comments

Aperiodic Tilings

https://presheaf.blogspot.com/2021/08/aperiodic-tilings-some1-explainer.html
1•unprovable•14m ago•0 comments

Where Did the Productivity Gains Go?

https://idiallo.com/blog/where-did-the-productivity-gains-go
3•Brajeshwar•15m ago•0 comments

Show HN: TokenMaxxer – Create AI spend leaderboards with your friends

https://tokenmaxxer.xyz
2•SYeomans•16m ago•0 comments

Water-from-Air Systems to Enable Decentralized Water Infrastructure

https://www.kubota.com/news/2026/20260722-001220.html
1•beauzero•16m ago•0 comments