frontpage.
newsnewestaskshowjobs

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

Show HN: Gami.Fied – Self-hosted gamification engine (XP, streaks, leaderboards)

https://github.com/gami-fied/gami.fied
1•ronak0020•33s ago•0 comments

Who ChatGPT and Gemini name: 83 small businesses, 498 answers

https://buyersaskai.com/small-businesses-in-chatgpt-and-gemini
1•berkoheko•35s ago•0 comments

'Tax the Rich' Policies Need a Clear Economic Vision for Fairness

https://news.bloombergtax.com/tax-insights-and-commentary/tax-the-rich-policies-need-a-clear-econ...
1•tldrthelaw•1m ago•0 comments

Show HN: Elak – helps you buy/lease/finance a car with better negotiation

https://elak.app
1•abbosmuy•2m ago•0 comments

Show HN: Parser – Turn invoices, scans and long PDFs into JSON or Excel

https://parserai.co/
1•guilhermemichel•2m ago•0 comments

Lawyers for man accused of bugging OpenAI say there's no evidence he's a spy

https://www.washingtonpost.com/technology/2026/11/16/saudi-man-accused-spying-openai-alleges-he-b...
1•nephihaha•3m ago•0 comments

Microsoft Purged 126 Blank VS Code Extensions as Malware

https://apiiro.com/blog/blank-canvas
1•shmulc•3m ago•0 comments

Dealing with AI Depression and Meaninglessness [video]

https://www.youtube.com/watch?v=oycBOHeu760
1•marvinborner•5m ago•0 comments

California sues OpenAI over hacking risks

https://www.npr.org/2026/11/16/nx-s1-6042920/california-sues-openai-hugging-face-hacking-incident
1•pseudolus•5m ago•0 comments

Green Threads for Node.js

http://www.jasnell.me/posts/green-threads-in-node
1•mariuz•11m ago•0 comments

An 8-bit CPU designed from scratch using mostly 74xx ICs in Logisim Evolution

https://github.com/hoetzenofer/Limbo-8
1•hoetzenofer•12m ago•0 comments

Regulatory Capture by Anthropic Through METR

https://nitter.cf/kevinnbass/status/2099621874279817638
3•agnosticmantis•15m ago•0 comments

Show HN: Aquasand – A pixel-art aquarium everyone shares, with 346 real species

https://aquasand.ru/en
1•valdiszhvaginsh•16m ago•0 comments

Stop using encrypted email (2020)

https://www.latacora.com/blog/2020/02/19/stop-using-encrypted-email/
1•stared•16m ago•0 comments

Inverlair Lodge

http://secretscotland.org.uk/index.php/Secrets/InverlairLodge
1•bryanrasmussen•17m ago•0 comments

Police Raid on Nvidia Partner Megaspeed Finds Empty Frames and Missing GPUs

https://respawnfirst.com/they-never-even-unpacked-the-racks-police-raid-on-nvidia-partner-megaspe...
3•windexh8er•17m ago•0 comments

I'm a human doctor with human intelligence. But I sure do like my AI notetaker

https://www.npr.org/2026/11/17/nx-s1-6037556/medicine-ai-doctor-notetaker-scribe
1•colinprince•18m ago•0 comments

Making Art with QR Codes, and the Fine Line Between Inspiration and Idea Theft

https://www.gorillasun.de/blog/making-art-with-qr-codes-and-the-fine-line-between-inspiration-and...
1•gorillasun•18m ago•0 comments

Show HN: AI Data Brokerage

https://mainstreetwealth.ai/ai-data-brokerage
5•novateg•18m ago•0 comments

Make your LLM accept only signed prompts

https://discounttimu.substack.com/p/make-your-llm-only-accept-signed
2•guardiangod•18m ago•1 comments

Live ranking CVEs based on vibes, not CVSS

https://cves.io/
1•patrikgrobs•19m ago•0 comments

Show HN: CofreAdmin Wallet – Self-Custodial Web3 Personal Finance

https://github.com/cofreadminwallet/app
1•erissonmarques•19m ago•0 comments

Can Solar Murals Make Clean Energy More Attractive?

https://triplepundit.com/2026/solar-murals-artwork-renewable-energy-aesthetics/
1•rdmuser•19m ago•0 comments

Laptop/Phone can hear you without a mic. Proof

https://twitter.com/whyvanamali/status/2122276417031585879
1•mrkn1•21m ago•0 comments

We Logged 183,291 MCP and A2A Requests. Only 2.2% Were Task-Shaped

https://wagerx.io/news/agentic-web-observatory-november-17-2026
1•wagerx•21m ago•0 comments

Framefields v3

https://framefields.dev/v3/
2•oknaslnkn•21m ago•0 comments

California sues OpenAI over safety concerns after rogue agent hacking

https://www.theguardian.com/technology/2026/nov/16/california-openai-rogue-agent-hacking-lawsuit
2•richardbarosky•23m ago•0 comments

Modern LLMs hate Python the most

https://blog.jetbrains.com/ai/2026/11/ai-models-hate-python-and-love-php-we-asked-12-of-them-1-20...
1•neuraldenis•25m ago•0 comments

Amazon Eyes 20k Pairs of Smart Glasses for Delivery Drivers by 2027

https://wwd.com/sourcing-journal/logistics/amazon-smart-glasses-delivery-riders-privacy-1239404883/
1•bookofjoe•26m ago•1 comments

WigglyPaint – Free Animated Drawing Tool

https://wigglypaint.com
1•RomellHenry•27m ago•0 comments