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

Euro-Office: License compliance and what open source means

https://nextcloud.com/blog/euro-office-license-compliance-and-what-open-source-means/
1•maxloh•1m ago•0 comments

LingBot-Map: Geometric Context Transformer for Streaming 3D Reconstruction

https://github.com/Robbyant/lingbot-map
1•flux_w42•2m ago•0 comments

Modern Spectacle

https://px.philosopheasy.com/architecture-illusion-soral-media-control/
1•obscureline•2m ago•0 comments

Isaac Asimov: The Last Answer (1980)

https://www.highexistence.com/the-last-answer-short-story/
1•genphy1976•3m ago•0 comments

Client-Led Game/Simulation Projects' Effects on Motivation and Career Readiness

https://dl.acm.org/doi/book/10.1145/3786353?af=R
1•salkahfi•5m ago•0 comments

Generative Drinker: An Idea for Improving Wine Compatibility

https://hajo.me/blog/2026/04/18/generative-drinker-an-idea-for-improving-wine-compatibility/
1•fxtentacle•5m ago•0 comments

A Japanese poet's diary helps scientists reconstruct solar cycles

https://www.npr.org/2026/04/18/nx-s1-5788782/how-a-japanese-poets-diary-helps-scientists-reconstr...
1•Brajeshwar•9m ago•0 comments

Value Numbering

https://bernsteinbear.com/blog/value-numbering/
1•tekknolagi•13m ago•0 comments

Graph RAG finds what's similar. We should aim for what's relevant

https://github.com/FlowElement-ai/m_flow
32•hjeffery•13m ago•0 comments

The Most Remarkable Case in Swedish UFO History [video]

https://www.youtube.com/watch?v=4nqAJrqvXlY
1•keepamovin•13m ago•0 comments

Why is my MacBook zapping me lately?

1•pavas•15m ago•0 comments

Atmospheric Aging and the Respiratory Toxicity of Nanoplastic Particles

https://pubs.acs.org/doi/10.1021/acs.chemrestox.5c00237
1•PaulHoule•16m ago•0 comments

EnsembleData – Social Media Scraping APIs, feedback!!

https://ensembledata.com/
1•slackwy•17m ago•1 comments

The Great Man-Made River of Libya

https://en.wikipedia.org/wiki/Great_Man-Made_River
2•keiferski•18m ago•0 comments

Running a Minecraft Server and More on a 1960s Univac Computer

https://farlow.dev/2026/04/17/running-a-minecraft-server-and-more-on-a-1960s-univac-computer
1•brilee•19m ago•0 comments

Managing Complexity with Mycelium

https://yogthos.net/posts/2026-02-25-ai-at-scale.html
1•tosh•21m ago•0 comments

LogsGo – an experimental log ingestion/query project I built to learn

1•SaumyaCodes•29m ago•0 comments

Why Japan has such good railways

https://worksinprogress.co/issue/why-japan-has-such-good-railways/
2•RickJWagner•30m ago•0 comments

We're Hooked on Satellites. It Could Blow Up in Our Faces

https://www.cnet.com/science/space/features/satellite-overcrowding-space-junk-low-earth-orbit-sta...
2•geox•31m ago•1 comments

Show HN: Pvm – A TUI to browse and run commands across multiple Python venvs

https://github.com/Higangssh/pvm
2•swq115•31m ago•0 comments

A Reality Check on the Inequality Panic

https://pastimperfect.humanprogress.org/p/a-reality-check-on-the-inequality
2•RickJWagner•31m ago•1 comments

SemanticForge: Making AI Values Verifiable Across Cultures

https://github.com/xiaojialove-DRP/SemanticForge
1•xiaojiahaina•32m ago•0 comments

Thumb-Shift Keyboard

https://en.wikipedia.org/wiki/Thumb-shift_keyboard
1•riffraff•33m ago•0 comments

Show HN: ApplyPilot – Self-Hosted AI-Powered Job Search Companion. Open Source

https://github.com/eliornl/applypilot
1•eliornl•42m ago•0 comments

Sperm whales' communication closely parallels human language, study finds

https://www.theguardian.com/environment/2026/apr/15/sperm-whales-alphabet-vocalizations-similar-h...
2•breve•43m ago•0 comments

Việt Nam: Local Police Dox and Fine Citizens over Critical Comments

https://thevietnamese.org/2026/04/social-media-crackdown-in-viet-nam-local-police-dox-and-fine-ci...
2•BaudouinVH•45m ago•0 comments

You can have an RSS dependent website in 2026

https://matduggan.com/you-can-absolutely-have-an-rss-dependent-website-in-2026/
2•swq115•46m ago•1 comments

How China Built Its Vast Natural Gas Stockpile

https://www.nytimes.com/2026/04/08/business/china-natural-gas-reserves-iran-war.html
1•bookofjoe•47m ago•1 comments

The Apple II Moment is here

https://hipocampus.ai/blog/apple-ii-moment
3•LivingGlitcher•50m ago•1 comments

Flock Condemns False Child Predator Allegations, Yet Calls Critics Terrorists

https://ipvm.com/reports/flock-allegations-critics
11•jhonovich•51m ago•2 comments