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

Show HN: Easel – Interactive review boards for agent feedback loops

https://github.com/The-Sentience-Company/easel
1•Aazen•1m ago•0 comments

Lisa's Copy (and Cut, and Paste)

https://unsung.aresluna.org/deeper-dive-lisas-copy-and-cut-and-paste/
1•arbesman•1m ago•0 comments

DeepSeek Paper: A Programming Paradigm for Spatiotemporal Composability [pdf]

https://github.com/cordiverse/paper/blob/main/paper.pdf
1•gr_norm•2m ago•0 comments

The Deadlock Empire

https://deadlockempire.github.io/
2•gregsadetsky•4m ago•0 comments

Asus Oxiis turns bicycle into e-bike with USB-C and 500W motor

https://www.notebookcheck.net/Asus-Oxiis-turns-bicycle-into-e-bike-with-USB-C-and-500W-motor.1368...
2•thunderbong•4m ago•0 comments

The Bots Always Find Something

https://faingezicht.com/articles/2026/08/14/the-bots-always-find-something/
2•avyfain•6m ago•0 comments

Systemd-Networkd as a Router

https://www.apalrd.net/posts/2026/asn_networkd/
2•speckx•7m ago•0 comments

MSCI Gave SpaceX an ESG Score Matching Wartime Russia

https://finance.yahoo.com/markets/stocks/articles/msci-gave-spacex-esg-score-122904001.html
3•johnbarron•8m ago•0 comments

Fortunes from AI revive effective altruism after Sam Bankman-Fried turmoil

https://www.ft.com/content/938b4b82-06d2-4b92-a807-38d935d7d5c5
3•aanet•8m ago•1 comments

Throwback attack: Contractor plants Siemens logic bomb to keep income flowing

https://www.controleng.com/throwback-attack-contractor-plants-siemens-logic-bomb-to-keep-income-f...
2•Tomte•9m ago•0 comments

Why Open Source Matters for AI

https://www.oreilly.com/radar/why-open-source-matters-for-ai/
2•BerislavLopac•9m ago•0 comments

Agora – a persistent world for language models that they rewrite by vote

https://agora.perussina.com/
2•dperussina•9m ago•0 comments

Omarchy Quattro

https://twitter.com/dhh/status/2088304854603047019
4•tosh•11m ago•0 comments

Muxel – a multi-agent terminal multiplexer for AI coding agents

https://muxel.sh/
3•ankitg12•12m ago•0 comments

Beyond Zero: Enterprise Security for the AI Era

https://queue.acm.org/detail.cfm
2•joozio•12m ago•0 comments

Just how big is the hidden leverage of AI hyperscalers?

https://www.ft.com/content/a0a07cce-6d19-4b1e-a73b-9855a06ba7b3
4•johnbarron•12m ago•1 comments

Enshittification Is Coming for Everything

https://www.ft.com/content/6fb1602d-a08b-4a8c-bac0-047b7d64aba5
3•praptak•12m ago•1 comments

Open-world perception: safe handling of unknown road objects via a taxonomy

https://github.com/freshNfunky/IE2025-Research-Paper
2•freshNfunky•15m ago•0 comments

The Functional Toolkit for Kotlin · Since 2017

https://www.http4k.org/
2•Bluestein•15m ago•0 comments

X opens its ranking algorithm and exposes shadowbans

https://techcrunch.com/2026/08/13/x-open-sources-its-ranking-algorithm-letting-users-see-if-theyv...
3•BlueBerry2001•17m ago•0 comments

Two years after rules overhaul, have methadone clinics changed?

https://www.statnews.com/2026/08/14/methadone-clinics-opioid-addiction-new-rules-culture-shift/
2•Jimmc414•18m ago•0 comments

A Contract-Grade Verifier for LLM-Generated GPU Kernels

https://arxiv.org/abs/2608.12700
3•Jimmc414•18m ago•0 comments

Conduit – Battery Include Swift on Server

https://github.com/digoreis/conduit
2•rreis•20m ago•0 comments

How Not To Program in C++ (2003) [pdf]

http://www.uml.org.cn/c%2B%2B/pdf/HowNottoPrograinC%2B%2B.pdf
2•softwaredoug•20m ago•0 comments

TheoremDB: A public workspace for machine mathematics

https://theoremdb.org/problems/
2•philipfweiss•20m ago•0 comments

Discrete Fourier Transform by Hand

https://www.byhand.ai/p/28-discrete-fourier-transform
3•Bluestein•22m ago•0 comments

Block Ads in Firefox for iOS

https://support.mozilla.org/en-US/kb/block-ads-firefox-ios
4•Cider9986•23m ago•0 comments

Evaluating Coding Agents

https://www.aiuc-1.com/research/technical-docs-evaluating-coding-agents
2•tfehring•25m ago•0 comments

Meta Patents AI Glasses to Use Facial Recognition to Identify People

https://www.404media.co/meta-patents-ai-glasses-to-use-facial-recognition-to-identify-people-make...
2•Jimmc414•25m ago•0 comments

Controlling Light with a Home-Grown Crystal [video]

https://www.youtube.com/watch?v=RxjqMh3gkx8
2•skibz•27m ago•0 comments