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

Cursor's agent crashed out and wrote 3,400 lines trying to stop generating

https://github.com/Kevin-Liu-01/Cursor-Crashout
1•kl01•1m ago•0 comments

Interesting Vogons Threads

https://www.vogonswiki.com/index.php/Interesting_Vogons_Threads
1•cybersoyuz•1m ago•0 comments

Joint efforts unlocked over $100M stuck on Aave

https://blog.1inch.com/how-to-save-100-mln/
1•wslh•1m ago•0 comments

Microsoft's response to plain text passwords in Edge – it is an expected feature

https://www.zdnet.com/article/microsoft-edge-passwords-ram-plaintext/
1•alok-g•1m ago•0 comments

Turning Humans into Your APIs

https://www.extractlayer.com
1•Qing123•1m ago•0 comments

Google's Gemma 4 gets 3x faster by predicting future tokens

https://arstechnica.com/ai/2026/05/googles-gemma-4-open-ai-models-use-speculative-decoding-to-get...
1•Lihh27•3m ago•0 comments

2027 Infiniti QX65 First Drive Review: Showing Up Isn't Enough

https://www.thedrive.com/car-reviews/2027-infiniti-qx65-first-drive-review
1•PaulHoule•4m ago•0 comments

Claude's Memory of Me

https://exploration.work/claudes-memory-of-me/
1•speckx•4m ago•0 comments

Mealy Machines, Moore Machines, and Why Event Sourcing Works

https://kevinwebber.ca/blog/mealy-machines-and-event-sourcing/
1•kw3b•5m ago•0 comments

UIGen: How to create a landing page declaratively for runtime rendering

https://uigen-docs.vercel.app/blog/auto-generate-landing-pages-from-openapi
1•ombedzi•5m ago•0 comments

Robot Teleoperation via WebRTC: Analyzing Latency

https://transitiverobotics.com/blog/webrtc-latency-breakdown/
1•chfritz•6m ago•0 comments

I'm writing a history of Visual Basic, Chapter 1 is up

https://evilgeniuslabs.ca/blog/visual-basic-history-chapter-1-launch
1•speckx•6m ago•0 comments

Alaska megatsunami was second largest ever recorded

https://www.bbc.com/news/articles/c1m253033m4o
1•cromulent•6m ago•0 comments

Software as the Product of Obsession Times Voice

https://daringfireball.net/2026/05/software_as_the_product_of_obsession_times_voice
1•Brajeshwar•7m ago•0 comments

The self-driving codebase: Building Horizon at WorkOS

https://workos.com/blog/project-horizon
1•i0exception•7m ago•0 comments

Show HN: Lattix 2.0 – macOS spaces naming, ultrafast space switching and more

https://www.lattix.app
1•AbjMV•7m ago•0 comments

Godot Usage and Engine Growth

https://godotengine.org/article/godot-growth-stats-2026/
1•HelloUsername•8m ago•0 comments

Show HN: Tuiql – A keyboard-driven SQL database client in the terminal

https://github.com/okira-e/tuiql
1•okira_e•8m ago•0 comments

Prediction Traffic in the Strait of Hormuz won't return to normal until August

https://www.cnbc.com/2026/05/04/strait-of-hormuz-traffic-disrupted-until-september-kalshi-traders...
1•paulpauper•10m ago•0 comments

Nvidia Spectrum-X MRC Is the Custom RDMA Transport Protocol for Gigascale AI

https://www.servethehome.com/nvidia-spectrum-x-mrc-is-the-custom-rdma-transport-protocol-for-giga...
1•cpard•10m ago•0 comments

Boosting multimodal inference performance by >10% with a single Python dict

https://modal.com/blog/boosting-multimodal-inference-performance-by-greater-than-10-with-a-single...
1•jxmorris12•14m ago•0 comments

Peace Out Apple

https://project72.bearblog.dev/peace-out-apple/
1•speckx•14m ago•0 comments

Hyper-Novelty (2023)

https://silasvanburen.substack.com/p/hyper-novelty
1•jvandreae•16m ago•0 comments

Doctors' growing AI deepfakes problem

https://www.axios.com/2026/05/06/doctors-ai-deepfakes-misinformation-problem
2•1vuio0pswjnm7•18m ago•0 comments

Rust vs. Haskell

https://serokell.io/blog/rust-vs-haskell
2•alexandersechin•18m ago•1 comments

Affiliate Finder Pro – Free Affiliate Directory

https://affiliatefinderpro.com/
1•JulieJames•20m ago•0 comments

Booting MicroVMs in Under a Second

https://depot.dev/blog/optimizing-microvm-boot-times
2•Charmizard•26m ago•0 comments

Rust in Numbers

https://asteriskmag.com/issues/14/rust-in-numbers
2•Brajeshwar•26m ago•0 comments

Ask HN: How do I get freelance developer jobs?

4•downbad_•26m ago•0 comments

Red-teaming your own products without Mythos

https://github.com/cloudstreet-dev/AI-Red-Teaming
1•DavidCanHelp•27m ago•1 comments