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

Comments

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

All elementary functions from a single binary operator

https://arxiv.org/abs/2603.21852
1•pizza•1m ago•0 comments

Moat: Run AI agents in isolated containers

https://majorcontext.com/moat/
1•cjbarber•5m ago•1 comments

State of Homelab 2026

https://mrlokans.work/posts/state-of-homelab-2026/
1•swq115•8m ago•0 comments

Level 3 Thinking: A Unified Theory of Self-Improvement

https://www.nateliason.com/blog/level-3-thinking
1•theorchid•9m ago•0 comments

OpenMAIC – Open Multi-Agent Interactive Classroom

https://open.maic.chat/
1•9woc•26m ago•0 comments

The Social Battery Paper: Gradient, Constraint, and the Extraction of Work In

https://www.academia.edu/165644285/The_Social_Battery_Paper_Gradient_Constraint_and_the_Extractio...
1•WilliamGriffin•28m ago•0 comments

Sabiondo: Compilador semántico universal – compilamos intención no sintaxis

https://github.com/K3iSoft/Sabiondo
1•K3iSoft•29m ago•0 comments

The Business Case for Vanilla JavaScript

https://lewiscampbell.tech/blog/250430.html
2•JSR_FDED•29m ago•0 comments

Internet down for you? X, GitHub, etc.

1•nvk•31m ago•1 comments

Trump will begin blockade of Strait of Hormuz within hours

https://www.dailymail.co.uk/news/article-15727239/Donald-Trump-Strait-Hormuz-Blockade.html
1•Bender•32m ago•4 comments

GraphAI – dual-graph $0 knowledge system with AI-native binary format

https://github.com/nehloo/graphAI
1•nehloo•32m ago•0 comments

Human Language Is the Best Programming Language

https://vanja.io/human-language-best-programming-language/
1•vpetreski•35m ago•0 comments

Externalization in LLM Agents

https://arxiv.org/abs/2604.08224
1•Anon84•35m ago•0 comments

Private Post-Training and Inference with TEEs for Frontier Models

https://www.workshoplabs.ai/blog/private-post-training
1•transpute•36m ago•0 comments

Unitree's H1 robot hits 10m/s sprint speed, getting close to 100M world record

https://www.globaltimes.cn/page/202604/1358712.shtml
1•teleforce•38m ago•0 comments

Show HN: A virtual office where you watch your AI agents code

https://github.com/ashxco/piedpiper
1•ashxsf•38m ago•0 comments

In search for a more precise cursor

https://unsung.aresluna.org/in-search-for-a-more-precise-cursor/
2•Doubleguitars•40m ago•0 comments

Cloudflare Agents week preview: What to expect

https://www.youtube.com/watch?v=nCrG-ixRoGg
1•emot•40m ago•0 comments

Unusual Behavior in Geosynchronous Orbit by Chinese Satellites, 2016–2025

https://www.csis.org/analysis/new-rhythms-geo-quantitative-analysis-unusual-behavior-geosynchrono...
1•mooreds•42m ago•0 comments

Tokyo: The Hard Life (1989)

https://www.theatlantic.com/magazine/archive/1989/03/tokyo-the-hard-life/668051/
1•mooreds•42m ago•1 comments

Should you be scared of bears when hiking in Japan?

https://www.emgoto.com/hiking-bears-japan/
3•mooreds•43m ago•0 comments

An Interview with Asana Founder Dustin Moskovitz about AI, SaaS, and Safety

https://stratechery.com/2025/an-interview-with-asana-founder-dustin-moskovitz-about-ai-saas-and-s...
1•theorchid•44m ago•0 comments

Google Stitch

https://stitch.withgoogle.com/
1•thatxliner•45m ago•0 comments

Scaling a Monolith to 1M LOC: 113 Pragmatic Lessons from Tech Lead to CTO

https://www.semicolonandsons.com/articles/scaling-a-monolith-to-1m-loc-113-pragmatic-lessons-from...
1•PaulHoule•49m ago•0 comments

Amazon vs. Perplexity AI: ACLU's Amicus Brief

https://www.aclu.org/cases/amazon-v-perplexity?document=Amicus-Brief-of-ACLU-ACLU-of-Northern-Cal...
1•StatsAreFun•50m ago•0 comments

Beside Myself at BSides OK

https://mpdc.dev/beside-myself-at-bsides-ok/
1•ParanoidRV•55m ago•1 comments

Günther Anders's Bleak Picture of the Tech-Perfected Society

https://www.thepublicdiscourse.com/2026/03/100527/
1•StatsAreFun•57m ago•0 comments

Specs over Vibes: Consistent AI Results Ft. Mark Freeman

https://motherduck.com/blog/specs-over-vibes-consistent-ai-results/
1•eigenBasis•1h ago•0 comments

KldloadOS 1.0.4 – Kubernetes on (ZFS and Cilium eBPF and WireGuard) in 15 Mins

https://kldload.com/releases/1.0.4
2•kldload•1h ago•0 comments

Most AI travel apps don't help you travel

https://navoy.io/
1•tnaaron•1h ago•0 comments