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

Show HN: Templated prompts that travel with you over SSH

https://github.com/tgalal/promptcmd
1•tgalal•1m ago•0 comments

Blocking Internet Archive Won't Stop AI, but Will Erase Web's Historical Record

https://www.eff.org/deeplinks/2026/03/blocking-internet-archive-wont-stop-ai-it-will-erase-webs-h...
1•hn_acker•1m ago•1 comments

LLM Agent Framework for Simulating Personalized User Tweeting Behavior

https://arxiv.org/abs/2602.22222
1•PaulHoule•1m ago•0 comments

Simple, standalone tools for working with multimodal data

https://github.com/mixpeek/multimodal-tools
1•Beefin•3m ago•0 comments

AWS on X402 for Agentic Commerce

https://aws.amazon.com/blogs/industries/x402-and-agentic-commerce-redefining-autonomous-payments-...
1•bethecloud•4m ago•0 comments

Docker Containers: An Interactive Explanation

https://devopsagents.co/blog/containers-from-scratch
3•jcyriac•4m ago•0 comments

Trump Airs a House Republican's Terminal Diagnosis, Claiming to Have Reversed It

https://www.nytimes.com/2026/03/16/us/politics/trump-neal-dunn-terminal-diagnosis-johnson.html
2•duxup•8m ago•1 comments

A reminder to check your inactive account passwords

https://shub.club/writings/2026/march/rotate-your-passwords/
1•forthwall•8m ago•0 comments

The Last Quiet Thing

https://www.terrygodier.com/the-last-quiet-thing
2•JumpCrisscross•9m ago•0 comments

As India seeks Hormuz safe passage, Tehran asks for return of seized tankers

https://www.reuters.com/world/india/india-seeks-hormuz-safe-passage-tehran-asks-return-seized-tan...
1•JumpCrisscross•10m ago•0 comments

Robot dogs are protecting data centers. Operators are seeing payoffs

https://www.businessinsider.com/robot-dogs-quadruped-data-center-security-boston-dynamics-ghost-r...
1•mikhael•11m ago•0 comments

Show HN: Aelitium – Git-style verification for LLM outputs

https://aelitium.com
1•catarina_eng•11m ago•0 comments

Ask HN: Okara's new AI CMO: Will this solve the marketing problem?

1•nazbasho•14m ago•1 comments

"Gemini AOS": Google's Next Android, Hidden in ATI Silicon

https://guanghuimao.substack.com/p/gemini-aos-googles-next-android-hidden
2•Ati985•14m ago•0 comments

Avalonia WebView Is Now Free and Open Source

https://github.com/AvaloniaUI/Avalonia.Controls.WebView
2•sltr•14m ago•0 comments

Google scraps AI search feature that crowdsourced amateur medical advice

https://www.theguardian.com/technology/2026/mar/16/google-scraps-ai-search-feature-that-crowdsour...
2•geox•14m ago•0 comments

Video Conferencing with Postgres

https://planetscale.com/blog/video-conferencing-with-postgres
1•thunderbong•15m ago•0 comments

tables and views

https://web.archive.org/web/20060710204054/http://www.kx.com/a/k/examples/table.k
1•tosh•15m ago•0 comments

Show HN: Ziex – A full-stack web framework for Zig

2•nurulhudaapon•16m ago•0 comments

How we Built Private Post-Training and Inference for Frontier Models

https://www.workshoplabs.ai/blog/private-post-training
4•oscarmoxon•19m ago•1 comments

Show HN: SmartVPN: A VPN That Hides in Plain Sight over WebSockets

https://typescript.guru/smartvpn-a-vpn-that-hides-in-plain-sight-over-websockets/
1•PhilKunz•20m ago•0 comments

Show HN: LLM Memory Storage that scales, easily integrates, and is smart

https://github.com/colinulin/mind-palace
2•pocketcolin•22m ago•0 comments

Agents over Bubbles

https://stratechery.com/2026/agents-over-bubbles/
2•jonbaer•22m ago•0 comments

Lines of Code as a Productivity Metric in the AI Era

https://keegan.codes/blog/lines-of-code-as-a-productivity-metric-ai-era
1•keegandonley•24m ago•0 comments

Show HN: Stop renting AI – run AI workers on your own dedicated node

https://ainode.sh
1•rzessski•25m ago•1 comments

Northstar CUA Fast, open source 4B CUA model

https://www.tzafon.ai/blog/northstar-cua-fast
1•publius_•26m ago•0 comments

How Tenaciously Palantir Courted Switzerland

https://www.republik.ch/2026/02/18/how-tenaciously-palantir-courted-switzerland
2•sschueller•28m ago•0 comments

Beside

https://aplwiki.com/wiki/Beside
1•tosh•29m ago•0 comments

2 Days to Ship: Codex-Authored Metal Compute Shaders in Draw Things

https://engineering.drawthings.ai/p/2-days-to-ship-codex-authored-metal
1•liuliu•29m ago•0 comments

Open Decision-Making (2021)

https://web.stanford.edu/~ouster/cgi-bin/decisions.php
1•otoolep•30m ago•0 comments