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

Tinkersynth

https://www.tinkersynth.com/
1•saikatsg•37s ago•0 comments

A maintainability ratchet for AI-assisted Python

https://kayhan.dev/posts/014-letting-agents-write-code-without-ratcheting-up-risk/
1•keynha•5m ago•0 comments

Why Your Docker Container Is 1.2GB When It Should Be 80MB

https://sandeepbansod.medium.com/why-your-docker-container-is-1-2gb-when-it-should-be-80mb-7b443a...
1•thunderbong•9m ago•1 comments

Show HN: TapToyPia

https://memalign.github.io/m/taptoypia/index.html
1•memalign•10m ago•0 comments

Why AI Hardware Is a Chip Layer Problem

https://www.easelinktech.com/why-every-electronic-product-may-need-to-be-rebuilt-for-on-device-ai...
1•EnXu•12m ago•0 comments

Hershey is a textual vector font format

https://wiki.xxiivv.com/site/hershey.html
1•birdculture•12m ago•0 comments

All Lean Books and Where to Find Them

https://lakesare.brick.do/all-lean-books-and-where-to-find-them-x2nYwjM3AwBQ
1•atomicnature•14m ago•0 comments

Instantly understand why any stock is moving

https://whystockmove.com
1•crixusbaba•19m ago•0 comments

InboxFlow Agent – Check your email campaigns before sending

https://github.com/selimsevim/QA-testing-agent
1•selimsevim•21m ago•0 comments

Claude hack – Don't waste you token where it's not needed

https://github.com/justinjamesmathew/tokenmax-mcp
1•justin1006•25m ago•0 comments

Ask HN: I mapped 6,494 AI engines into a taxonomy – anyone else tried this?

1•Developer_H•25m ago•0 comments

1,700 new protein found in the "dark proteome" of previously overlooked DNA

https://pubmed.ncbi.nlm.nih.gov/42092140/
2•janandonly•26m ago•0 comments

Coding agents are giving everyone decision fatigue

https://stackoverflow.blog/2026/05/21/coding-agents-are-giving-everyone-decision-fatigue/
2•vinhnx•33m ago•0 comments

It's Time to Walk

https://www.inferterra.com/the-new-workspace-a-first-principles-exploration-of-dictation-agents-a...
1•vinhnx•34m ago•0 comments

Prof or Hobo?

https://www.proforhobo.com/
1•Paracompact•37m ago•0 comments

The Four Motivators (2016)

https://apenwarr.ca/log/20161213
2•downbad_•46m ago•0 comments

Sleep and Mortality: A Population-Based 22-Year Follow-Up Study (2007)

https://fermatslibrary.com/s/sleep-and-mortality-a-population-based-22-year-follow-up-study
2•downbad_•46m ago•1 comments

Local Root Privilege Escalation and Credential Disclosure in the Linux Kernel

https://blog.qualys.com/vulnerabilities-threat-research/2026/05/20/cve-2026-46333-local-root-priv...
1•signa11•49m ago•0 comments

China behind in LLM race but it can still win in AI, ex-Tencent AI lead says

https://www.scmp.com/tech/big-tech/article/3354394/china-losing-llm-race-it-can-still-win-ai-ex-t...
1•01-_-•49m ago•0 comments

Newsom signs order aimed at tackling AI job displacement

https://thehill.com/policy/technology/5889582-california-ai-job-losses/
1•01-_-•52m ago•0 comments

Ruby Arrays on Steroids (2014) [video]

https://www.youtube.com/watch?v=UX7xmhpUoi4
1•tosh•52m ago•0 comments

How AI is redefining Software Engineering

https://adlrocha.substack.com/p/adlrocha-how-ai-is-redefining-software
1•adlrocha•58m ago•0 comments

The Internet is rotting away (German)

https://netzpolitik.org/2026/breakpoint-das-internet-verrottet/
3•doener•59m ago•0 comments

Show HN:An LED display app that lights up concerts, events, and fan moments

https://play.google.com/store/apps/details?id=com.koko.board.glow&hl=en_US
1•k-Whale•1h ago•1 comments

uP

https://www.micropublication.org/
2•jruohonen•1h ago•1 comments

Hiro, AI job matching with real visa sponsorship data (550K jobs)

https://hirocareers.com
1•sharvenrane7•1h ago•0 comments

Wild Linker Update – 0.9.0

https://davidlattimore.github.io/posts/2026/05/24/wild-update-0.9.0.html
3•dabinat•1h ago•0 comments

WarpSpeed Just Beat Cursor

https://www.doubleai.com/research/warpspeed-approaches-speed-of-light-on-blackwell
2•ben_mussay•1h ago•0 comments

For developers without design skills, how do you leverage AI for front end dev?

1•boundless88•1h ago•0 comments

The anatomy of AI power in 2026

https://wayneresearch.com/research/anatomy-of-ai-power/
1•7moritz7•1h ago•0 comments