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

A Guide for the Hereditarian Revolution

https://ncofnas.com/p/a-guide-for-the-hereditarian-revolution
1•doener•1m ago•0 comments

AXHook – Lightweight C++/COM library for bridging 32-bit/64-bit binaries

https://github.com/IgorTebelev/AXHook
1•AngryIgor•2m ago•0 comments

Antigravity Extension for Visual Studio Code

https://marketplace.visualstudio.com/items?itemName=Google.google-antigravity
1•prof-dr-ir•5m ago•0 comments

TikTok reaches $400M settlement with DOJ over COPPA and privacy violations

https://cyberupdates365.com/tiktok-400-million-settlement-doj/
2•sysadmin_diarie•6m ago•1 comments

Fast and Hard Code

https://lucumr.pocoo.org/2026/8/22/fast-hard-code/
2•lumpa•10m ago•0 comments

Icarus in the Faculty Lounge

https://www.theatlantic.com/books/2026/08/jason-arday-cambridge-academic-memoir-resignation/688206/
2•bushwart•11m ago•1 comments

Starlark in Rust

https://github.com/facebook/starlark-rust
1•andrewstetsenko•13m ago•0 comments

Slop Debt

https://arpitbhayani.me/blogs/slop-debt/
5•valyala•16m ago•1 comments

Restoring a single table from an Amazon RDS backup (2016)

https://www.mooreds.com/wordpress/archives/2295
1•mooreds•18m ago•0 comments

When Code Becomes Cheap, Judgment Becomes the Craft

https://bharatsharma.pro/articles/when-code-becomes-cheap-judgment-becomes-the-craft
2•mooreds•19m ago•1 comments

I Miss Teaching

https://chriswiegman.com/2026/08/i-miss-teaching/
1•mooreds•20m ago•0 comments

Dallas residents express relief after fire destroys longtime 'eyesore' house

https://www.wfaa.com/video/news/local/dallas-county/dallas-residents-express-relief-after-fire-de...
1•madihaa•22m ago•0 comments

CXMT planned to use stolen Samsung IP to develop its DRAM, court hears

https://www.tomshardware.com/pc-components/dram/cxmt-planned-to-use-stolen-samsung-ip-to-develop-...
1•malshe•24m ago•0 comments

Domain Driven AI

https://pedromadruga.com/blog/domain-driven-ai/
2•iforgotemailpwd•24m ago•0 comments

Dismantling the Roadless Rule threatens to disrupt wildlife and water in US

https://theconversation.com/paving-paradise-dismantling-the-roadless-rule-threatens-to-disrupt-wi...
1•madihaa•25m ago•0 comments

Lego Color Wheels (and Why I Built a Grid Instead) [video]

https://www.youtube.com/watch?v=7BXFFT0aPpE
1•skibz•26m ago•0 comments

Claude Code status line for worktree, branch, context and quota

https://github.com/arturlimaaa/terminito
1•arturlima•26m ago•1 comments

Dataguessr – A playful way to update your knowledge of the world

https://dataguessr.com/
1•karakoram•28m ago•0 comments

QEMU, now with almost full NeXT Black/M68K hardware support

https://github.com/blanham/qemu-NeXT
1•wmlive•29m ago•0 comments

A Key Meat Protein Has Been Grown in Lettuce for the First Time

https://www.sciencealert.com/a-key-meat-protein-has-been-grown-in-lettuce-for-the-first-time
2•gmays•34m ago•0 comments

3D Walkable ASCII City in One HTML File [video]

https://www.youtube.com/watch?v=3YtygAx_C6A
1•COMMENT___•36m ago•0 comments

Retailers Want AI to Solve Online Shopping's Biggest Problem

https://www.bloomberg.com/news/articles/2026-08-21/zalando-zara-use-ai-virtual-try-ons-to-tackle-...
2•thm•40m ago•0 comments

A Hairy Situation

https://lostgirls.home.blog/2019/09/11/a-hairy-situation-the-peculiar-case-of-antonietta-gonzalez/
1•jruohonen•41m ago•0 comments

Budgeting resources in a Managed Postgres service

https://clickhouse.com/blog/protect-postgres-from-supporting-processes
1•saisrirampur•47m ago•0 comments

English ↔ Claudish Translator

https://programasweights.com/claudish
3•leumon•48m ago•0 comments

In-browser offline PDF tools

https://www.ihatepdf.cv/
2•porridgeraisin•53m ago•1 comments

Her Brain Was Broken. It Was Fixed with Sound–Not a Scalpel

https://www.wired.com/story/brain-focused-ultrasound/
3•nabbed•55m ago•0 comments

Linus Torvalds Endures a Debug Session from Hell, "Enormously Helped" by AI

https://www.phoronix.com/news/Linus-Torvalds-Debug-AI
6•meerita•55m ago•0 comments

Living at the Hinge of History

https://henryaj.substack.com/p/living-at-the-hinge-of-history
4•eatitraw•57m ago•0 comments

Crt.sh Seems Down

https://crt.sh/
3•gregsadetsky•57m ago•0 comments