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

Comments

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

Humanoid robots race runners at Beijing half marathon [video]

https://www.youtube.com/watch?v=WnCfMRhbhZQ
1•mgh2•1m ago•0 comments

Electric Wind-Up Plane Uses Supercapacitors for Free Flight Fun

https://hackaday.com/2026/04/18/electric-wind-up-plane-uses-supercapacitors-for-free-flight-fun/
1•lxm•2m ago•0 comments

Show HN: Self-healing browser harness via direct CDP

https://github.com/browser-use/browser-harness
1•gregpr07•2m ago•0 comments

A minimally speaking autistic man just wrote a best-selling book. Or did he?

https://www.theatlantic.com/books/2026/04/who-really-wrote-autistic-author-woody-brown-novel/686814/
1•xuojbi•4m ago•0 comments

Mixture-of-Depths Attention

https://arxiv.org/abs/2603.15619
1•neehao•5m ago•1 comments

Claude Token Counter, now with model comparisons

https://simonwillison.net/2026/Apr/20/claude-token-counts/
1•twapi•11m ago•0 comments

Show HN: Vitals – Score your financial health and explain what the numbers mean

https://myfinance-vitals.streamlit.app/
1•pavanhebli•20m ago•0 comments

The Rise of the Outcome Engineer

https://www.outcomeops.ai/blogs/the-rise-of-the-outcome-engineer
3•geetee•25m ago•0 comments

B2B (bot-to-bot) commerce FAQ

https://dialtoneapp.com/faq
1•fcpguru•26m ago•0 comments

Why Birds Were the Only Dinosaurs to Survive Mass Extinction

https://www.scientificamerican.com/article/an-asteroid-extinguished-all-the-dinosaurs-except-for-...
4•bryanrasmussen•28m ago•2 comments

The next segment of California's solar canal initiative

https://bsky.app/profile/dustinmulvaney.bsky.social/post/3mjtcite7qk2s
1•mooreds•28m ago•0 comments

From Worm to Human: Scaling Brain Emulation

https://pdf.isaak.net/scaling-emulations
1•andreygrehov•29m ago•0 comments

Financial aid letters aren't designed to be compared. That's the problem

https://www.dakhila.ai/blog/financial-aid-letters-arent-designed-to-be-compared
1•mayankbansal10•31m ago•0 comments

The Uncanny Valley and the Rising Power of Anti-AI Sentiment

https://localscribe.co/posts/uncanny-valley-and-rising-power-of-anti-ai-sentiment/
2•jcbritton•33m ago•0 comments

Why one of the largest digital banks chose Clojure [video]

https://www.youtube.com/watch?v=pleo1VA9D70
3•amb135cm•39m ago•0 comments

Show HN: I Spy AI – Detect AI-Generated Images, with an MCP Server

https://www.ispyai.io/
1•shawhunterm•39m ago•0 comments

Moon-joy: they should have sent a poet (so they did)

https://nothingbutawordbag.substack.com/p/moon-joy-they-should-have-sent-a
1•bryanrasmussen•39m ago•0 comments

Canada's PM calls economic ties with US a weakness that must be corrected

https://abcnews.com/Business/wireStory/canadas-prime-minister-economic-ties-us-weakness-corrected...
3•jmward01•39m ago•1 comments

OpenEMIS-MCP – human English (or Arabic) queries over a school system

1•drkhindol•43m ago•0 comments

Show HN: A lightweight way to make agents talk without paying for API usage

https://juanpabloaj.com/2026/04/16/a-lightweight-way-to-make-agents-talk-without-paying-for-api-u...
1•juanpabloaj•46m ago•0 comments

Go news Android app revamped with the help of Claude Code

https://play.google.com/store/apps/details?id=com.minaandrawos.golangnews&hl=en_US
2•minaandrawos•48m ago•1 comments

Corner-Case RCU Implementations

https://people.kernel.org/paulmck/stupid-rcu-tricks-corner-case-rcu-implementations
1•luu•54m ago•0 comments

Bank Python

https://calpaterson.com/bank-python.html
2•Redoubts•57m ago•0 comments

Show HN: TRELLIS.2 image-to-3D running on Mac Silicon – no Nvidia GPU needed

https://github.com/shivampkumar/trellis-mac
8•shivampkumar•1h ago•0 comments

How We Got the Favicon

https://thehistoryoftheweb.com/how-we-got-the-favicon/
4•valzevul•1h ago•1 comments

Tariff-refund portal is about to be America's hottest website on Monday

https://www.npr.org/2026/04/19/nx-s1-5786635/tariff-refunds-customs-ace-portal
6•rawgabbit•1h ago•1 comments

Sudo for Windows

https://github.com/microsoft/sudo
2•luispa•1h ago•1 comments

Alan Kay – Programming and Scaling (2011) [video]

https://www.youtube.com/watch?v=YyIQKBzIuBY
3•alhazrod•1h ago•0 comments

The Rich Do Pay Lower Taxes Than You (2019)

https://www.nytimes.com/interactive/2019/10/06/opinion/income-tax-rate-wealthy.html
4•johnbarron•1h ago•2 comments

My Life Story in a Nutshell

https://jsavage.xyz/2026/04/11/im-back-heres-my-life-story-in-a-nutshell/
2•JSavageOne•1h ago•0 comments