frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: routr - a fast local replacement for DuckDuckGo bangs

https://t128n.github.io/routr/
2•trbndev•9mo ago

Comments

trbndev•9mo 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•9mo ago
That link is broken. Correct link: https://t128n.github.io/writings/2025-05-02_optimizing_searc...
trbndev•9mo 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•9mo 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•9mo 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•9mo 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•9mo 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

The allegations against a San Francisco social climber accused of sex crimes

https://sfstandard.com/2026/02/12/mickey-gerold-sex-crimes-investigation/
1•_delirium•3m ago•0 comments

Linear Representations and Superposition

http://ternarysearch.blogspot.com/2026/02/linear-representations-and-superposition.html
1•paladin314159•6m ago•0 comments

China is the real threat, Taiwan says in rebuff to Munich speech

https://www.reuters.com/world/china/china-is-real-threat-taiwan-says-rebuff-munich-speech-2026-02...
2•DustinEchoes•7m ago•0 comments

BabyVision: Visual Reasoning Beyond Language

https://xbench.org/agi/babyVision
2•vinhnx•8m ago•0 comments

BotPass: A Reverse Verification Protocol which allows only agents

https://twitter.com/_ar9av/status/2022649198756446424
2•anishgupta•9m ago•0 comments

I Had to Write a Script to Submit My Medical Claims to Cigna

https://www.provos.org/p/had-to-write-a-script-to-submit-to-cigna/
2•nielsprovos•14m ago•1 comments

C# implementation of state machine declared using fluent syntax

https://github.com/leeoades/FunctionalStateMachine
2•olvy0•14m ago•0 comments

Show HN: Decision Audit – A deterministic decision engine for career pivots

https://decide.trk7.app/intake/should-i-quit
1•cosmok•21m ago•1 comments

Take photos with scotch tape, not lens

https://www.youtube.com/watch?v=97f0nfU5Px0
1•gsf_emergency_6•22m ago•0 comments

Show HN: Give a Voice to Your AI Agent

https://fellowgeek.github.io/mcp-speak/
1•pcbmaker20•25m ago•0 comments

Interview with CEO of rsync.net: "no firewalls and no routers" (2021)

https://web.archive.org/web/20210318194443/https://console.dev/qa/rsync-john-kozubik/
1•gurjeet•27m ago•0 comments

TextBar – tiny app that lets you add any text to macOS menu bar

https://github.com/richie5um/TextBar
1•gurjeet•28m ago•0 comments

Exploring Rust Traits

https://beej.us/blog/data/rust-trait-impl/
1•vinhnx•37m ago•0 comments

Aristotle and the so-called Tragic Flaw

https://jonathanbate.substack.com/p/aristotle-and-the-so-called-tragic
1•B1FF_PSUVM•39m ago•0 comments

Show HN: Letta – Git-Based Memory for Coding Agents

https://www.letta.com/
1•morawr•40m ago•0 comments

Mimir: GPU Computational Kernels in Rust

https://github.com/ccleavinger/mimir
1•cjcleav•40m ago•1 comments

Show HN: Generate unique icon sets and extend them later in the same style

https://iconsmint.com
1•tommydolso•42m ago•0 comments

Quamina and Claude, Case 1

https://www.tbray.org/ongoing/When/202x/2026/02/06/Q-Plus-C-Ch1
1•zdw•44m ago•0 comments

Show HN: Quoracle: Self-replicating multi-LLM-consensus agents (Elixir)

https://github.com/shelvick/quoracle
1•shelvick•47m ago•1 comments

Our security auditor is an idiot. How do I give him the information he wants?

https://serverfault.com/questions/293217/our-security-auditor-is-an-idiot-how-do-i-give-him-the-i...
3•gurjeet•49m ago•1 comments

Maryland faces another spate of viral infections. This time it's mumps

https://www.thebanner.com/community/public-health/mumps-measles-vaccinations-infections-4DQODQEXB...
2•cdrnsf•52m ago•0 comments

The Debacle That Led to the Closure of El Paso's Airspace

https://www.nytimes.com/2026/02/14/us/politics/el-paso-airspace-closure-faa-pentagon.html
10•bahmboo•56m ago•2 comments

The Myth of Technological Unemployment (2017)

https://reason.com/2017/07/11/the-myth-of-technological-unem/
1•johntfella•1h ago•0 comments

MythConceptions – Most Contagious Falsehoods

https://informationisbeautiful.net/visualizations/common-mythconceptions/
1•vismit2000•1h ago•0 comments

Guitars of the USSR and the Jolana Special in Azerbaijani Music

https://caucascapades.wordpress.com/2012/06/14/guitars-of-the-ussr-and-the-jolana-special-in-azer...
3•bpierre•1h ago•0 comments

Coding Adventure: Rendering Text [video]

https://www.youtube.com/watch?v=SO83KQuuZvg
1•vinhnx•1h ago•0 comments

AXS-6: Adaptive EXponent Sharing – 6-Bit Training Format

https://github.com/bwiemz/axs-6
2•AkaiNa•1h ago•1 comments

Advice for amateur mathematicians on writing and publishing papers

https://cohn.mit.edu/advice/
1•paulpauper•1h ago•0 comments

The Myth of Nordic Mobility: Social Mobility Rates in Modern Denmark and Sweden

https://link.springer.com/article/10.1057/s41294-025-00267-z
3•paulpauper•1h ago•0 comments

Who pays the price for Pakistan's new solar regime?

https://www.dawn.com/news/1972275
1•paulpauper•1h ago•0 comments