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

Operation Epic Fury: the Windows C2 nobody found (0/94 VT, 8 months pre-op)

https://paolocostanzo.github.io/operation-epic-fury-cyber-war-iran/
1•PCostanzo•5m ago•0 comments

The Last Quiet Thing

https://www.terrygodier.com/the-last-quiet-thing
1•asystole•6m ago•0 comments

Wordr – Habit forming Vocabulary widget app

https://apps.apple.com/us/app/wordr-vocabulary-widget/id6759553306
1•ajdeez•7m ago•1 comments

Over 1/3 of Americans unable to distinguish healthy and unhealthy processed food

https://plantbasednews.org/lifestyle/health/americans-misinformed-on-ultra-processed-foods/
1•MrJagil•8m ago•0 comments

Scientists Create Coldest Alloy

https://www.scmp.com/news/china/science/article/3346452/chinese-scientists-create-worlds-coldest-...
1•etiam•9m ago•0 comments

Reverse-engineering Viktor and making it Open Source

https://matijacniacki.com/blog/openviktor
3•zggf•12m ago•0 comments

Easy A's, Less Pay: The Long-Term Effects of Grade Inflation [pdf]

https://econweb.umd.edu/~pope/Grade_Inflation.pdf
1•isolli•18m ago•1 comments

Young Cubans turn to church and state as cheap, synthetic drugs flood streets

https://apnews.com/article/cuba-drug-use-chemical-economy-crisis-d0f22f6452b8f167f6766c9d4d481be6
1•petethomas•20m ago•0 comments

Show HN: Edit scanned PDFs like Photoshop

https://editscanpdf.com
1•bai422•20m ago•1 comments

Nurturing agentic AI beyond the toddler stage

https://www.technologyreview.com/2026/03/16/1133979/nurturing-agentic-ai-beyond-the-toddler-stage/
1•joozio•21m ago•0 comments

Everyone Post Your Uptime

2•skor•24m ago•1 comments

Nvidia's New DLSS 5 Brings Photo-Realistic Lighting to RTX 50-Series

https://www.digitalfoundry.net/features/nvidias-new-dlss-5-brings-photo-realistic-lighting-to-rtx...
1•mariuz•25m ago•0 comments

Civilization and Its Discontents (1930)

https://gutenberg.org/cache/epub/78221/pg78221-images.html
1•petethomas•31m ago•0 comments

Busdayaxis: Matplotlib scale collapsing weekends and off-hours on datetime axis

https://github.com/saemeon/busdayaxis
1•saemeon•32m ago•0 comments

40k-line AI platform built solo with Rails, self-hosted GPU, and an agent

https://austn.net/blog/building-an-ai-native-web-platform
1•frogr•33m ago•1 comments

China is running multiple AI races

https://www.brookings.edu/articles/china-is-running-multiple-ai-races/
2•hunglee2•37m ago•0 comments

Velvet-auth – Production-ready auth plugin for Elysia and Bun

https://github.com/raloonsoc/velvet-auth
1•raloonsoc•43m ago•0 comments

C++ Algorithms Library

https://en.cppreference.com/w/cpp/algorithm.html
1•tosh•45m ago•0 comments

Ask HN: We need to learn algorithm when there are Claude Code etc.

4•JasonHEIN•47m ago•0 comments

Slope Rider

https://slopeonline.online/slope-rider
1•charelie142•52m ago•1 comments

Clawforge SaaS Starter: OpenClaw and Nvidia Starter for Local AI SaaS Workflows

https://github.com/autopilotaitech/clawforge-saas-starter
2•autopilotaitech•54m ago•0 comments

Ask HN: Is it time for "organic" coding?

3•lexi-k•1h ago•4 comments

Using AI a man developed a custom mRNA cancer vaccine for his dying dog

https://fortune.com/2026/03/15/australian-tech-entrepreneur-ai-cancer-vaccine-dog-rosie-unsw-mrna/
2•aureliusm•1h ago•0 comments

HitPaw VikPea

https://www.hitpaw.com/vikpea-video-enhancer.html
1•HitPaw•1h ago•0 comments

Show HN: I Built StatusDrop

https://statusdrop.dev
1•razvanmac•1h ago•0 comments

Folgpris.no (followprice) – A way to track any price from any store

https://folgpris.no/
2•falense•1h ago•1 comments

Mistral AI partners with Nvidia to accelerate open frontier models

https://mistral.ai/news/mistral-ai-and-nvidia-partner-to-accelerate-open-frontier-models
1•tosh•1h ago•0 comments

Clawdoc – Find out where your OpenClaw agents went wrong and get recommendations

https://github.com/ashishjaingithub/clawdoc
2•jainashish•1h ago•0 comments

Out-of-Context Reasoning in LLMs: A short primer and reading list

https://outofcontextreasoning.com/
1•Anon84•1h ago•0 comments

Orc – multi-agent orchestration framework

https://github.com/PietroPasotti/orc
1•ppasotti•1h ago•0 comments