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•10mo ago

Comments

trbndev•10mo 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•10mo ago
That link is broken. Correct link: https://t128n.github.io/writings/2025-05-02_optimizing_searc...
trbndev•10mo 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•10mo 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•10mo 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•10mo 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•10mo 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

Krasis LLM Runtime – run large LLM models on a single GPU

https://github.com/brontoguana/krasis
1•brontoguana•2m ago•1 comments

People who built the future, in their own words – Oral histories from CHM

https://f0lkl0r3.dev/#/
1•aanet•5m ago•0 comments

Fundamentals of Software Engineering: From Coder to Engineer

https://fundamentalsofswe.com
1•teleforce•7m ago•0 comments

NIST Time Widget

https://time.gov/widget/
1•gregsadetsky•8m ago•1 comments

Replit Is Pre‐Shopify‐2012

https://github.com/getlago/lago/wiki/Replit-Is-Pre%E2%80%90Shopify%E2%80%902012
2•AnhTho_FR•8m ago•0 comments

Confidently Wrong: Agentic coding predictions for the next year

https://thomshutt.com/2026/03/17/predictions/
1•chaghalibaghali•9m ago•0 comments

Open-index/hacker-news · Datasets at Hugging Face

https://huggingface.co/datasets/open-index/hacker-news
1•sharjeelsayed•10m ago•0 comments

Show HN: Score your GitHub repo for AI coding agents

https://twill.ai/scorecard
1•danoandco•10m ago•1 comments

Humanoids – A Bloomberg Terminal for the Robotics supply chain

https://www.humanoids.fyi/#/tab/skeleton
2•DwayneSamuels•13m ago•0 comments

systemd v260

https://github.com/systemd/systemd/releases/tag/v260
1•voxadam•13m ago•0 comments

American Diner Gothic

https://www.thenewatlantis.com/publications/american-diner-gothic
1•wyclif•15m ago•0 comments

Image manipulation has always been around: photographic fakes that trick the eye

https://www.bbc.com/culture/article/20260216-10-early-photographic-fakes-that-trick-the-eye
27•breve•18m ago•0 comments

Show HN: System that rediscovers physics laws from raw data autonomously

https://protoscience.ai
1•strujillo•20m ago•0 comments

'Many people fooled' by AI wedding pics, says Zendaya

https://www.bbc.com/news/articles/clyz7llp4k2o
1•breve•20m ago•0 comments

Show HN: Turn GitHub Pages into an Apt Repository

https://github.com/K0IN/apt-github-pages
1•K0IN•21m ago•0 comments

Brave is overriding user choice

https://community.brave.app/t/vimium-not-allowed-to-run-on-search-brave-com/650732
1•mcint•24m ago•0 comments

Arizona Files Criminal Charges Against Kalshi, the Prediction Site

https://www.nytimes.com/2026/03/17/technology/arizona-criminal-charges-kalshi.html
2•bookofjoe•25m ago•1 comments

Ask HN: Is anyone building write guarantees for agents working across tool

1•ajaystream•25m ago•0 comments

Tsdraw – a free modular drawing app

https://github.com/varunaditya-plus/tsdraw
1•varunaditya•28m ago•1 comments

The 30% Rule in AI

https://www.generative.inc/what-is-the-30-rule-in-ai
1•goldkey•30m ago•0 comments

Show HN: GitGlimpse – GitHub Action that generates UI/UX demos for your PRs

https://github.com/DeDuckProject/git-glimpse
2•fatach•30m ago•0 comments

The Delegation Dilemma, When AI Becomes Your Best Employee

https://leadprompt.sh/a/728-The-Delegation-Dilemma,-When-AI-Becomes-Your-Best-Employee-2026w8
1•saltysalt•32m ago•0 comments

CVE-2026-31900, my 0-click RCE in the psf/black GitHub Action

https://medium.com/securitycertcommunity/cve-2026-31900-50800bafafba
2•ParzivalHack•33m ago•1 comments

Marvin Hagemeister, Luca Casonato, David Sherret and Phil Hawksworth left Deno

https://bsky.app/profile/lcas.dev/post/3mhb4kavxd22y
10•simlevesque•37m ago•3 comments

What If You Could Know What Your Judge Did Last Summer?

https://rokoslobbyist.substack.com/p/what-if-you-could-actually-know-what
2•anonym29•38m ago•0 comments

Why AI systems don't learn – On autonomous learning from cognitive science

https://arxiv.org/abs/2603.15381
2•aanet•38m ago•2 comments

Motorcycle makers in Japan race to go carbon-neutral

https://www.japantimes.co.jp/business/2026/02/24/companies/japan-electric-motorbikes/
1•PaulHoule•40m ago•0 comments

Tennessee Teens Sue Elon Musk's xAI over Child Sexual Abuse Images

https://www.motherjones.com/politics/2026/03/tennessee-teens-sue-elon-musks-xai-over-child-sexual...
2•cdrnsf•40m ago•0 comments

Netanyahu Posts 'Proof of Life' Video as A.I. Sows Doubts About What's Real

https://www.nytimes.com/2026/03/17/technology/netanyahu-ai-video-iran-israel.html
2•geox•41m ago•0 comments

RustCFML – A CFML interpreter written in Rust

https://github.com/pixl8/RustCFML
3•rmason•45m ago•0 comments