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•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

The Mythical Agent-Month

https://wesmckinney.com/blog/mythical-agent-month/
2•fagnerbrack•1m ago•0 comments

Programmers Spend Their Time – Probably Dance

https://probablydance.com/2026/02/10/how-programmers-spend-their-time/
1•fagnerbrack•2m ago•0 comments

Global Energy Flow – Real-Time Energy Intelligence

https://global-energy-flow.com/
1•xbmcuser•2m ago•0 comments

Show HN: Codiff, a local diff review tool

https://github.com/nkzw-tech/codiff/releases
1•cpojer•2m ago•0 comments

How we made Notion available offline

https://www.notion.com/blog/how-we-made-notion-available-offline
1•fagnerbrack•3m ago•0 comments

We let four AIs run radio stations. Here's what happened.

https://andonlabs.com/blog/andon-fm
1•thm•6m ago•0 comments

Show HN: Give your AI agent a brain that understands your codebase

https://github.com/bitloops/bitloops
1•sergiopreira•9m ago•0 comments

Compared a few OpenClaw hosting setups

https://docs.google.com/spreadsheets/d/1tVqYh8fAWLAFAuuM3-G0WVoFqY6VKJ8pgFdS3zvux80/edit?gid=2137...
1•VishnuTech•14m ago•0 comments

Forum

https://bestsugardaddyapps.com/forum/
2•whatsupdog•17m ago•0 comments

A blog post is a query for people who will route interesting stuff to you

https://www.henrikkarlsson.xyz/p/search-query
1•James72689•21m ago•0 comments

Useful Security Tooling

https://app.securl.online
1•ktbatterham•23m ago•0 comments

Molecular Dynamics on Apple M4

https://github.com/vyasgiridhar/moleqular
1•vyasgiridhar•28m ago•0 comments

My indie app was named too close to competitors and I burnt my fingers

2•phalgun_g•32m ago•1 comments

Ask HN: What LLM models are you using and why?

1•rubyn00bie•35m ago•1 comments

Ask HN: Why do hotels etc. WiFi networks all use captive portals?

1•tgsovlerkhgsel•37m ago•1 comments

What right has a "personal fortune" to be anything but working capital?

2•silexia•39m ago•0 comments

Private Hosted OpenClaw that can connect to your data with included AI models

https://platform.joinable.ai
1•tnac•42m ago•0 comments

Show HN: Machine – One VM per Project

1•katspaugh•42m ago•0 comments

Directory of Blogs with a /Now Section

https://nownownow.com/
2•James72689•45m ago•0 comments

Five LLM agents play Werewolf in-browser, each with a private DuckDB

https://kayhan.dev/posts/013-werewolf-five-agents-one-browser/
1•keynha•50m ago•0 comments

My Wi-Fi Was Faster Than Ethernet So I Fixed It

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

An example of functional slop code

https://manemasters.vip/
1•AndrewKemendo•1h ago•2 comments

Driving

https://jzhao.xyz/posts/driving
1•wonger_•1h ago•0 comments

Groww beat every odd to get here. Now what?

https://the-ken.com/newsletters/two-by-two/groww-beat-every-odd-to-get-here-now-what/
1•vidyesh•1h ago•0 comments

AI Poop Analysis App Offered to Sell Me Database of Its Users' Poops

https://www.404media.co/ai-poop-analysis-app-offered-to-sell-me-access-to-its-users-poops/
2•tjek•1h ago•0 comments

Tesla Solar Roof is on life support as it pivot to panels

https://electrek.co/2026/05/14/tesla-solar-roof-promise-vs-reality-pivot-panels/
23•celsoazevedo•1h ago•11 comments

In Japan, we don't see robots as a threat: just a form of presence in the world

https://english.elpais.com/science-tech/2026-05-16/takeshi-yoro-anatomist-in-japan-we-dont-see-a-...
1•pilingual•1h ago•0 comments

Danger Testing

https://www.dangertesting.com/
1•skogstokig•1h ago•0 comments

Anyone on the Internet Can Ring Your Doorbell

https://www.abgeo.dev/blog/anyone-can-ring-your-doorbell
1•jrdres•1h ago•0 comments

Coal Makes a Comeback, Fueled by War in the Middle East

https://www.wsj.com/business/energy-oil/coal-makes-a-comeback-fueled-by-war-in-the-middle-east-fb...
2•JumpCrisscross•1h ago•0 comments