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

Comments

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

Interview with Josh Fisher – Inventing VLIW, Multiflow, Itanium, VLIW's Success [video]

https://www.youtube.com/watch?v=ZF8ohzWmuzI
1•tambourine_man•2m ago•0 comments

Personal Loan Eligibility Calculator Online – SMFG India Credit

https://www.smfgindiacredit.com/personal-loan-eligibility-calculator.aspx
1•saumyaraut11•8m ago•0 comments

Copy.fail: a small Linux kernel bug with an unusually big blast radius

https://jorijn.com/en/blog/copy-fail-cve-2026-31431-linux-kernel-bug-explained/
1•jorijn•20m ago•1 comments

Stitch Together Lots of Little HTML Pages with Navigations for Interactions

https://blog.jim-nielsen.com/2026/small-html-pages/
2•OuterVale•25m ago•0 comments

Show HN: Kula – a family health platform that makes sense of your data

2•samuraikmc•28m ago•0 comments

Apple discontinues $599 base Mac mini. Entry-level model starts at $799 with 512

https://macdailynews.com/2026/05/01/apple-discontinues-599-base-mac-mini-entry-level-model-now-st...
1•apparent•29m ago•2 comments

Pake: Webpage to desktop app in one command using rust

https://github.com/tw93/Pake
1•AbuAssar•33m ago•0 comments

Learning Randomized Reductions

https://arxiv.org/abs/2412.18134
1•matt_d•35m ago•0 comments

Stock Market Course

1•Apextrading•37m ago•0 comments

The Vision of Harmandeep Singh Kandhari in Premium Housing

https://harmandeep-singh-kadhari.wuaze.com/
1•KirtiKKapoor•42m ago•0 comments

9social: A Social Network for Plan9

https://www.youtube.com/watch?v=q6qVnlCjcAI
2•dharmatech•47m ago•0 comments

High Performance Motor Control from the Ground Up – Field Oriented Control (FOC) [video]

https://www.youtube.com/watch?v=ujofKWmGChw
3•num42•51m ago•0 comments

Use Cheaper Models with Claude

https://gist.github.com/gitcloned/1929590e2fa0d0267919c6826808da2c
1•ashish0112•52m ago•5 comments

The Engineering Constraints of Distributed LLM Inference over the Open Internet

https://siliconandsoul.substack.com/p/the-engineering-constraints-of-distributed
1•essenceX•53m ago•0 comments

Practical Electronics Course

https://practicingelectronics.com/practical-electronics-course/
2•ofrzeta•1h ago•2 comments

Humanoid Robot Actuators: The Complete Engineering Guide

https://www.firgelli.com/pages/humanoid-robot-actuators
13•ofrzeta•1h ago•0 comments

IPv4 Tools – IP Lookup, PTR Search, CIDR, ASN

https://worldip.io/tools
1•tuxxin•1h ago•1 comments

Show HN: Maxcred – app to maximise your credit card rewards

https://maxcred.vercel.app
1•theoo21•1h ago•0 comments

BrowserQuest – Mozilla's HTML5 MMO is back

https://korben.info/browserquest-mmo-mozilla-html5-retour.html
4•threejin•1h ago•1 comments

I Automate Everything

https://effective-programmer.com/how-i-actually-automate-everything-0d97ed624a34?sk=f8a15ad7e32cd...
2•naveed125•1h ago•1 comments

StartupLaunchPage – One Page 1500 Fixed Boxes Checkbox Puzzle Game

https://startuplaunchpage.com
3•vnyarongi•1h ago•1 comments

Show HN: TTSC – TypeScript-Go compiler and runner with transform plugins

https://github.com/samchon/ttsc
1•autobe•1h ago•1 comments

Entrepreneurs Flocked to Colorado. Now Red Tape Is Driving Some Away

https://www.wsj.com/business/entrepreneurs-flocked-to-colorado-now-red-tape-is-driving-some-away-...
2•bookmtn•1h ago•2 comments

Real Linux in a Browser Tab

https://linuxontab.com/
2•kilian-ai•1h ago•0 comments

The Scooter and the Bike

https://maxmautner.com/2026/04/12/scooter-vs-bike.html
1•mslate•2h ago•0 comments

HyperList: A powerful TUI for creating, editing, and managing HyperLists

https://github.com/isene/hyperlist
2•thunderbong•2h ago•1 comments

LegalEase – plain-English incorporation guidance for Canadian founders

https://legalease.dev/legalease.dev/
1•margikoca•2h ago•0 comments

The Tech Stack in 2026 (pic)

https://i.imgur.com/w8Ziffp.jpeg
2•ivewonyoung•2h ago•0 comments

Spirit Airlines shuts down; says it can't keep up with higher oil prices

https://apnews.com/article/spirit-airlines-trump-bailout-bankruptcy-37a4818e1b71c0905d022f669d85948c
2•ZeidJ•2h ago•1 comments

Big Tech cut 80k jobs, blamed AI; experts say firms are overstaffed 25%-75%

https://finance.yahoo.com/sectors/technology/articles/big-tech-cut-80-000-211500038.html
3•ZeidJ•2h ago•1 comments