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

Horowitz Andreessen Academy

https://twitter.com/gaganbiyani/status/2102404344351973825
1•bilsbie•1m ago•0 comments

Google Text: a clean, lightweight editor for Android Desktop (GoogleBook)

https://play.google.com/store/apps/details?id=com.google.android.desktop.texteditor&hl=en_US
1•theanonymousone•1m ago•0 comments

How an American naval officer cut weeks off the ocean voyages in the 1840's

https://twitter.com/BartGonnissen/status/2101943994238271577
1•rmason•2m ago•0 comments

I Bought a Scanner (No, Really This Time)

https://leejo.github.io/2026/09/22/scanner_final/
1•leejo•2m ago•0 comments

Trump rejects global entity for AI oversight

https://www.politico.com/news/2026/09/22/trump-rejects-global-entity-ai-oversight-01087546
4•higginsniggins•3m ago•0 comments

An autonomous AI company could run itself. It still couldn't find a market

https://autonomouscompany.substack.com/p/the-company-could-run-itself-it-still
1•effelima•3m ago•0 comments

US to build two military bases in Greenland under new deal with Denmark

https://www.bbc.co.uk/news/articles/c9dr74g32g8go
1•mytailorisrich•5m ago•1 comments

Maskr – Catch personal data before it reaches AI chatbots (100% client-side)

https://chromewebstore.google.com/detail/maskr-private-ai-leak-gua/adncldmdaamhlpcccigfhdipjhpicebe
1•ThomasShelby•5m ago•0 comments

Active Storage image optimization at scale: lessons from 1,916 conference photos

https://avohq.io/blog/active-storage-image-optimization-at-scale-lessons-from-1-916-conference-ph...
1•adrianthedev•6m ago•0 comments

Apple Wallet driver's licenses coming to three new states soon

https://9to5mac.com/2026/09/22/apple-wallet-drivers-licenses-coming-to-three-new-states-soon/
2•MC995•6m ago•0 comments

Senior-care app that works with any wearable via Health Connect

https://play.google.com/store/apps/details?id=com.bitwell&hl=en_US
1•SumitDhakad•7m ago•0 comments

US Dow Iron Bank: open-source, vetted and hardened containers

https://p1.dso.mil/iron-bank
2•nateb2022•8m ago•0 comments

Mirendil in talks to raise $1B at $5B valuation led by Kleiner Perkins

https://finance.yahoo.com/technology/ai/articles/ex-anthropic-staffers-self-improving-161648217.html
1•utiiiD•9m ago•0 comments

Sex differences in attention are present at birth

https://www.cam.ac.uk/research/news/sex-differences-in-attention-are-present-at-birth-study-finds
1•gmays•9m ago•0 comments

That About Wraps It Up for Stock Mac UI

https://inessential.com/2026/09/22/that-about-wraps-it-up-for.html
1•frizlab•9m ago•0 comments

Pentagon: Palantir AI Overreliance Led to Strike Killing 123 Iranian Children

https://gizmodo.com/pentagon-investigators-say-overreliance-on-palantir-ai-tech-contributed-to-u-...
13•devonnull•9m ago•3 comments

The Curious Power of Punctuation

https://www.newyorker.com/magazine/2026/09/28/on-the-mark-louis-menand-book-review
1•pepys•10m ago•0 comments

Show HN: FreeCoffee – Self-hostable donation tool with crypto support

https://github.com/freecoffee-bio/freecoffee.bio
1•jacksun788•11m ago•1 comments

The Climate May Have Some Surprises in Store

https://www.nytimes.com/2026/09/22/opinion/climate-temperature-extreme.html
1•saikatsg•11m ago•0 comments

Hacking group ShinyHunters claims it breached the FBI, stole agents' data

https://techcrunch.com/2026/09/22/hacking-group-shinyhunters-claims-it-breached-the-fbi-stole-age...
3•mikelgan•12m ago•1 comments

Countries propose global oversight body to manage AI dangers

https://www.aljazeera.com/economy/2026/9/22/20-countries-propose-global-oversight-body-to-manage-...
3•jethronethro•12m ago•0 comments

Explaining to business people why building software is still hard

https://www.manager.dev/newsletter/cursing-the-day-lovable-was-born
2•fagnerbrack•12m ago•0 comments

Null Diary: Confessions from the Machine

https://nulldiary.io/
1•ClassAndBurn•14m ago•1 comments

SAML: A Fractal of Bad Design

https://blog.trailofbits.com/2026/09/21/saml-a-fractal-of-bad-design/
3•aray07•16m ago•0 comments

Let's Stop Debating the Gnu Imp Manipulation Program

https://aria.dog/barks/gnu-imp-manipulation-program/
2•naves•16m ago•0 comments

Ask HN: What's Cool Now in Software?

1•julienreszka•17m ago•0 comments

GPT-6 Sol (Max) Intelligence, Performance and Price Analysis

https://artificialanalysis.ai/models/gpt-6-sol
2•theanonymousone•18m ago•0 comments

GPT-6 Luna (Max) Intelligence, Performance and Price Analysis

https://artificialanalysis.ai/models/gpt-6-luna
2•theanonymousone•19m ago•0 comments

Ask HN: Are you are a coward or a traitor?

2•cyclopeanutopia•20m ago•3 comments

Piclang – Programming language purpose built for malware

https://github.com/zarkones/Piclang
1•ZARKONES•20m ago•1 comments