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 Viruses Causing New Outbreaks Are Less Familiar to Science

https://www.nytimes.com/2026/05/27/science/ebola-hantavirus-species-strains.html
1•digital55•33s ago•0 comments

The Farmers Who Fought a Data Centre–and Won

https://macleans.ca/longforms/the-farmers-who-fought-a-data-centre-and-won/
1•speckx•33s ago•0 comments

[hand-drawn] recipes for laid-back engineers

https://leontrolski.github.io/recipes.html
1•guessmyname•2m ago•0 comments

Show HN: Approve Claude CLI prompts from the browser, phone, or tablet

https://notifai.net/
1•Witness327•3m ago•1 comments

Now, imagine other people are different from you (2019)

https://blog.jobelenus.dev/blog/now-imagine-other-people-are-different-from-you/
1•mooreds•4m ago•0 comments

An Update on Composer and Packagist Supply Chain Security

https://blog.packagist.com/an-update-on-composer-packagist-supply-chain-security/
3•Seldaek•5m ago•0 comments

Who buys custom chips and why?

https://substack.com/@johncoleisreading/note/c-263273279
1•johncole•5m ago•0 comments

LLM, meet ML pipeline. ML pipeline, meet your new build step

https://matthias-kainer.de/blog/posts/llm-meet-ml-pipeline/
2•oesimania•6m ago•0 comments

Transparent solar cells could be mounted right on windows

https://newatlas.com/energy/transparent-solar-cells-windows/
1•breve•6m ago•0 comments

A One-Character Host Header Bug in Starlette Exposed AI Agents

https://firethering.com/badhost-starlette-critical-vulnerability-ai-agents/
1•steveharing1•7m ago•0 comments

The Biggest and Weirdest Commits in Linux Kernel Git History (2017)

https://www.destroyallsoftware.com/blog/2017/the-biggest-and-weirdest-commits-in-linux-kernel-git...
1•downbad_•8m ago•0 comments

IBM's Video Explaining Five AI Risks That Can Get You Fired

https://www.youtube.com/watch?v=1m55T8xST9s
1•busymom0•8m ago•0 comments

Katharos: Monads, functors, and immutable data for Python

https://github.com/kamalfarahani/katharos
1•h8hawk•9m ago•0 comments

Ubuntu releases Workshops: Sandboxed dev environments in a single command

https://discourse.ubuntu.com/t/introducing-workshop-launch-sandboxed-development-environments-on-...
2•nullbio•9m ago•0 comments

The AI fight brewing inside The New York Times

https://www.theverge.com/ai-artificial-intelligence/937689/new-york-times-tech-guild-ai-monitorin...
2•Brajeshwar•11m ago•0 comments

» Planescape: Torment, Part 1: From the Tabletop

https://www.filfre.net/2026/05/planescape-torment-part-1-from-the-tabletop/
1•ibobev•11m ago•0 comments

C++26: Ordering of constraints involving fold expressions

https://www.sandordargo.com/blog/2026/05/27/cpp26-constraints-ordering-fold-expressions
1•ibobev•11m ago•0 comments

Does bulk memmove speed up `std:remove_if`? (No.)

https://quuxplusone.github.io/blog/2026/05/23/chunked-remove/
1•ibobev•11m ago•0 comments

What the Pope Got Wrong

https://www.transformernews.ai/p/what-the-pope-got-wrong-leo-ai-encyclical-catholic-church-ai-mag...
1•atlasunshrugged•13m ago•0 comments

Want to Design Better with AI? Become a Digital Hoarder

https://metedata.substack.com/p/014-want-to-design-better-with-ai
1•young_mete•14m ago•0 comments

Tech CEOs are apparently suffering from AI psychosis

https://techcrunch.com/2026/05/27/tech-ceos-are-apparently-suffering-from-ai-psychosis/
4•IAmGraydon•15m ago•0 comments

PDFearn – free pdf earnings method every week

https://pdfearn.blogspot.com/
1•iLzKiiSG•20m ago•0 comments

The Quantum Computing Breakthrough Hidden Inside Decoherence

https://www.lanl.gov/media/publications/1663/the-race-to-build-a-quantum-computer
2•LAsteNERD•21m ago•0 comments

Solar poverty program raises incomes and lowers air pollution in China

https://www.nature.com/articles/s44458-026-00091-1
1•alphabetatango•21m ago•0 comments

Authorship in the AI Age

https://blog.computationalcomplexity.org/2026/05/authorship-in-ai-age.html
1•speckx•21m ago•0 comments

Show HN: GridPath – Cursor for Spreadsheets (Tauri, Rust)

https://gridpath.dev/
1•pixelmash13•22m ago•0 comments

Phoenix AZ Built an Empire of Cubicle Jobs. AI Is Coming to Tear It Dow

https://www.wsj.com/economy/phoenix-built-an-empire-of-cubicle-jobs-ai-is-coming-to-tear-it-down-...
1•fortran77•22m ago•1 comments

Moon Base

https://www.nasa.gov/moonbase/
2•wofo•23m ago•0 comments

WindowSwap

https://www.window-swap.com/Window
2•bookofjoe•23m ago•0 comments

How the plastic bottle cap became a parable for the value of EU regulation

https://www.theguardian.com/commentisfree/2026/may/27/how-the-plastic-bottle-cap-became-a-parable...
4•tadaima•24m ago•0 comments