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

Face ID Search

https://www.faceidsearch.com/en
1•bellamoon544•1m ago•0 comments

URLSession to Electrons: how networking works under the hood

https://blog.jacobstechtavern.com/p/urlsession-to-electrons
1•jakey_bakey•3m ago•0 comments

Show HN: Affordable Survey Software

https://www.survser.com/
1•pkundr•3m ago•0 comments

DuckDB/DuckLake multi-user in the browser with Read/Write and WebSocket notify

https://ducklake-with-vgi.query-farm.services/
1•rustyconover•5m ago•0 comments

TanStack NPM Packages Compromised in Ongoing Mini Shai-Hulud Supply-Chain Attack

https://socket.dev/blog/tanstack-npm-packages-compromised-mini-shai-hulud-supply-chain-attack
1•croes•10m ago•1 comments

Why should you have a data room? A stage-by-stage guide

https://vastpoint.substack.com/p/eng-why-should-you-have-a-data-room
1•kaku05ac•10m ago•0 comments

Lies, damned lies, and Elastic's benchmarks

https://www.gouthamve.dev/lies-damned-lies-and-elastics-benchmarks/
1•shutty•13m ago•0 comments

Loki Patera

https://en.wikipedia.org/wiki/Loki_Patera
1•DanielKehoe•15m ago•0 comments

SIEM and SoC: A Guide for Security Leaders in 2026

https://threatcrush.com/blog/siem-and-soc
1•buffer_overlord•15m ago•0 comments

EU Cloud Comparison Matrix

https://eualternative.eu/eu-cloud-comparison/
1•sparkling•18m ago•0 comments

Show HN: A benchmark where LLMs make memes from current news

https://memebench.net
2•max-azendorf•20m ago•0 comments

HDMI 2.1 Display Stream Compression (DSC) Ready for Amdgpu Linux Driver

https://www.phoronix.com/news/HDMI-2.1-DSC-AMDGPU-FRL
2•WithinReason•25m ago•0 comments

GitLab CI Functions

https://docs.gitlab.com/ci/functions/
1•yla92•26m ago•0 comments

The Jevons Paradox and the Future of Software Development

https://igorstechnoclub.com/the-jevons-paradox-and-the-future-of-software-development/
1•Igor_Wiwi•29m ago•0 comments

Rich [Sutton's] Slogans

http://incompleteideas.net/rlai.cs.ualberta.ca/RLAI/richsprinciples.html
1•atomicnature•29m ago•0 comments

Nikola Tesla's Lost Laboratory in Manhattan

https://www.untappedcities.com/nikola-teslas-lost-laboratory-manhattan/
2•geox•32m ago•0 comments

How to Use Adobe QR Code Generator to Create Branded QR Codes Fast

https://www.tycoonstory.com/adobe-qr-code-generator/
2•chiyabu•34m ago•1 comments

Aadhaar Seeding Process and Benefits – SMFG India Credit

https://www.smfgindiacredit.com/knowledge-center/aadhar-seeding.aspx
1•saumyaraut11•35m ago•0 comments

LCC: Toward a Unified Theory of Consistency in Message-Passing Systems

https://arxiv.org/abs/2605.09114
1•withinboredom•39m ago•0 comments

Now Is the Perfect Time to Change Sudo

1•sinsudo•41m ago•1 comments

The Modern React Stack Explained for 2026

https://jsdev.space/react-stack-2026/
1•javatuts•42m ago•0 comments

Apple updated 12 years old devices with data retention fix

https://support.apple.com/en-us/127114
2•nar001•42m ago•0 comments

Cheap Missiles, Not Drones, Will Win the Next Air War

https://warontherocks.com/cogs-of-war/cheap-missiles-not-drones-will-win-the-next-air-war/
1•throwawayffffas•42m ago•0 comments

Netanyahu, Israeli Pm, boasting he can easily paint anyone as a monster

https://twitter.com/FurkanGozukara/status/2053965645427966313
2•juliusceasar•43m ago•0 comments

Metagraph: A New Architecture for Array Computation (2011) [pdf]

https://web.archive.org/web/20150913004044/https://conference.scipy.org/scipy2011/slides/wang_met...
3•tosh•44m ago•0 comments

SimulateTransaction runs sync inside Tokio; Anza closed as out-of-scope

https://github.com/NullRabbitLabs/nullrabbit-advisories/blob/main/NR-2026-001/NR-2026-001-agave-r...
2•simonmorley•51m ago•0 comments

Show HN: RipStop – Git guardrails to reduce impact if your code agent goes wild

https://github.com/jonverrier/RipStop
2•Jonverrier•53m ago•1 comments

Music has scales / raagas. What about storytelling in movies and prestige shows?

https://arc.quanten.co/archetype
3•phaedrus044•58m ago•1 comments

Trump-style war on windmills spreads across Europe

https://www.politico.eu/article/trump-style-anti-windmill-crusade-surges-in-europe/
5•leonidasrup•1h ago•1 comments

Show HN: Java/Spring Boot Idempotency Library

https://github.com/josipmusa/idempotency4j
1•anaq42•1h ago•0 comments