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

FCC Uses False Claims of Immigrant Fraud to Drive Up Broadband Cost for Everyone

https://www.techdirt.com/2026/05/21/trump-fcc-using-false-claims-of-immigrant-fraud-to-drive-up-c...
1•hn_acker•58s ago•1 comments

Rosalind: A genomics toolkit in Rust running whole-genome pipelines on laptops

https://github.com/logannye/rosalind
1•samuell•1m ago•0 comments

Show HN: AI Manager

1•KaifKhan•2m ago•0 comments

70% of Faculty Vote to Overhaul Harvard Grading with A Cap

https://www.thecrimson.com/article/2026/5/20/fas-passes-a-grade-cap/
1•divbzero•4m ago•0 comments

Sorin – a calm, minimal iOS habit tracker

https://sorinapp.netlify.app/
2•WeebDeev•5m ago•0 comments

Google's Antigravity Bait and Switch

https://www.0xsid.com/blog/antigravity-bait-n-switch
2•ssiddharth•5m ago•0 comments

AI is killing All About Berlin

https://twitter.com/aboutberlin/status/2057423342496293243
1•mohsen1•5m ago•0 comments

Fasted Web Experience Possible?

https://ano.chat/blog/astro-6-specific-dev-website-magic
1•bill-cupid•6m ago•0 comments

Show HN: SubTrack – Find forgotten subscriptions via bank transaction scanning

https://www.thesubtrack.com/
1•svnk123•7m ago•0 comments

Highest Random Weight in Elixir

https://jola.dev/posts/highest-random-weight-in-elixir
1•shintoist•8m ago•0 comments

Regression in untouched code: debugging an L1 I-cache associativity issue

https://blog.andr2i.com/posts/2026-05-19-a-regression-in-code-i-didn-t-touch
1•theanonymousone•8m ago•0 comments

Neil Postman predicting everything from the past 30 years

https://www.youtube.com/watch?v=hlrv7DIHllE
1•thiagofons•10m ago•0 comments

No query strings here either from

https://furrer.life/~timo/writings/2026/05/19/no-query-strings/
1•speckx•12m ago•0 comments

Fast On-Device GenAI with LiteRT-LM

https://developers.googleblog.com/blazing-fast-on-device-genai-with-litert-lm/
1•nikolatt•12m ago•0 comments

The brain's code seems to be in constant flux. Neuroscientists are baffled

https://www.nature.com/articles/d41586-026-01554-0
1•amichail•13m ago•0 comments

MLX Vulkan Back End

https://github.com/goniz/mlx-vulkan
2•tosh•13m ago•0 comments

Superhot Rock Holds the Energy of the Future

https://reasonstobecheerful.world/geothermal-energy-new-tech/
1•scofflaw99•14m ago•0 comments

Connections (British TV Series)

https://en.wikipedia.org/wiki/Connections_(British_TV_series)
1•throwaw12•17m ago•0 comments

Trump wants $1B to protect White House ballroom from drones and other threats

https://arstechnica.com/tech-policy/2026/05/trump-wants-1b-to-protect-white-house-ballroom-from-d...
3•dan-bailey•17m ago•1 comments

AI is just unauthorised plagiarism at a bigger scale

https://axelk.ee/ai-is-just-unauthorised-plagiarism-at-a-bigger-scale/
32•speckx•18m ago•4 comments

Gemini accused of 30k-line code purge and fake recovery report

https://www.theregister.com/ai-ml/2026/05/21/gemini-accused-of-30000-line-code-purge-and-fake-rec...
1•igortru•18m ago•0 comments

Setting Up OpenClaw with Slack in a Sandbox

https://www.superserve.ai/blog/openclaw-setup/
1•nirnejak•20m ago•0 comments

Hating AI Is Good

https://www.thehandbasket.co/p/hating-ai-is-good-actually
54•cdrnsf•20m ago•22 comments

Xiaomi YU7 GT Breaks Nürburgring SUV Lap Record, 14 Seconds Faster [Video]

https://www.youtube.com/watch?v=9zdPCUCaMlI
1•gainsurier•20m ago•0 comments

Micropatching Brings the Abandoned Equation Editor Back to Life (2018)

https://blog.0patch.com/2018/01/bringing-abandoned-equation-editor-back.html
1•bariumbitmap•24m ago•0 comments

AI slop is flooding maths YouTube [video]

https://www.youtube.com/watch?v=mRO_QonhC2c
1•marvinborner•25m ago•0 comments

OWASP PTK is now OWASP Lab project

https://owasp.org/other_projects/
1•DenisPodgurskii•26m ago•0 comments

Ask HN: Are there any social media sites that are AI positive?

2•amichail•27m ago•1 comments

Avoid unnecessary parser lookahead for operators

https://github.com/astral-sh/ruff/pull/25290
2•tosh•28m ago•0 comments

AI chief of staff framework with invisible shadow predictions

https://github.com/jaroslavsoucek-art/Giovanni
1•JarSou•29m ago•0 comments