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•10mo ago

Comments

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

Physical Reality as Hypermedia

https://paper.supernovalabs.co.uk
1•supernovalabs•17s ago•0 comments

Lindley's Paradox

https://en.wikipedia.org/wiki/Lindley%27s_paradox
1•mschnell•9m ago•0 comments

Predicting home electricity usage from historical patterns in Home Assistant

https://blog.cyplo.dev/posts/2026/03/load-prediction-in-home-assistant/
1•swq115•11m ago•0 comments

I made a GPU price tracker

https://gpusniper.com/
1•codingblink•14m ago•1 comments

HopTab–free,open source macOS app switcher and tiler that replaces Cmd+Tab

https://www.royalbhati.com/hoptab
1•robhati•16m ago•0 comments

We built Avancé Communicatie (digital services for Dutch companies)

https://www.avancecommunicatie.nl/
2•bullmeister•20m ago•0 comments

Why do we need apps like cursor?

1•amanhij•21m ago•0 comments

Ask HN: Top repos you'd want offline on a desert island?

2•quijoteuniv•22m ago•1 comments

Computer Networks: A Systems Approach

https://open-cloud.github.io/index.html
1•vismit2000•28m ago•0 comments

Kattis Problem Archive

https://open.kattis.com
1•vismit2000•30m ago•0 comments

Show HN: Helios – 3 Claude agents (Red vs. Blue) hack and patch your codebase

https://gitlab.com/nakaiwilliams20/helios
2•nakaiwilliams•32m ago•0 comments

Synaphe – A type-safe language for hybrid AI and quantum computing

https://github.com/martus-spinther/synaphe-project
2•martus-spinther•41m ago•0 comments

Mindwtr – Open-source, local-first GTD app (Tauri and React Native)

https://github.com/dongdongbh/Mindwtr
1•dongdongbh•42m ago•0 comments

Quantum mechanics simulation Python library for research and learning

https://github.com/iDEA-org/iDEA
1•jw1294•43m ago•1 comments

Proof Theory and Logic Programming

https://www.lix.polytechnique.fr/Labo/Dale.Miller/ptlp/
1•remywang•45m ago•0 comments

Tell HN: Microsoft365 "Convert to Paid" checkout silently default to 25 licenses

2•davidstarkjava•48m ago•1 comments

Show HN: Passport Globe (See where your passport takes you)

https://hariharan.uno/globe
1•hariharan_uno•57m ago•0 comments

Show HN: TMA1 – Local-first observability for LLM agents

https://tma1.ai/
2•killme2008•58m ago•0 comments

Show HN: Yeet – Throw AI tasks at hardware and walk away (Nomad and OpenShell)

https://github.com/wan0net/yeet
1•wan0net•58m ago•0 comments

Phase Transitions and Computation

https://theory.org/complexity/cdpt/html/node5.html
1•downboots•1h ago•0 comments

Show HN: Banish: A declarative framework for rule-based state machines in Rust

https://github.com/LoganFlaherty/banish/releases/tag/v1.3.0
1•LoganFlaherty•1h ago•0 comments

Bitcoin mining difficulty drops 7.8% as miner exodus accelerates amid AI pivot

https://www.theblock.co/post/394579/bitcoin-mining-difficulty-drops-7-8-as-miner-exodus-accelerat...
4•adrianwaj•1h ago•1 comments

Review: Why Evolution Is True

https://ncse.ngo/review-why-evolution-true
2•akbarnama•1h ago•0 comments

We Read What Delve Ships to the Browser

https://security.redeux.ai/research/delve-compliance-posture
1•chasewarren•1h ago•0 comments

Isometric exercise: The most efficient fitness regime?

https://www.bbc.com/future/article/20260319-isometric-exercise-the-most-efficient-fitness-regime
2•akbarnama•1h ago•0 comments

A Rant about Resolutions

https://blog.brixit.nl/rant-about-resolutions/
1•vinhnx•1h ago•0 comments

Is Simple Good?

https://darth.games/posts/is-simple-good/
1•vinhnx•1h ago•0 comments

Delve Accused of Fraud

https://techcrunch.com/2026/03/21/delve-accused-of-misleading-customers-with-fake-compliance/
5•zlu•1h ago•0 comments

Sashiko: AI code review system for the Linux kernel spots bugs humans miss

https://www.theregister.com/2026/03/20/sashiko_code_review_linux/
2•maxloh•1h ago•0 comments

AI Disrupts Talent Evaluation Before It Disrupts Talent

https://substack.com/home/post/p-191732116
2•cactaceae•1h ago•0 comments