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

Annualizing Retention Rates

https://www.arrguide.com/blog/annualizing-retention-rates
1•ericsd2024•1m ago•0 comments

The Gell-Mann Amnesia Trap

https://novehiclesinthepark.substack.com/p/the-gell-mann-amnesia-trap
1•axtro•2m ago•0 comments

Meltdown: LLM Client Made in Python and Tk

https://github.com/Merkoba/Meltdown
1•madprops•6m ago•0 comments

ShowHN: Applying PEFT (e.g., LoRA) for edge-cloud collaborative computing

https://github.com/ShadowLLM/shadow-peft
2•heyjude87•8m ago•0 comments

A recent experience with ChatGPT 5.5 Pro

https://gowers.wordpress.com/2026/05/08/a-recent-experience-with-chatgpt-5-5-pro/
1•_alternator_•13m ago•0 comments

Great Writers "Tell" All the Time

https://freddiedeboer.substack.com/p/great-writers-tell-all-the-time
3•paulpauper•18m ago•0 comments

Show HN: Ant – A from-scratch JavaScript runtime in 9 MB

https://github.com/themackabu/ant
2•theMackabu•24m ago•0 comments

SoC 2 has no real edge

1•krishgolcha•28m ago•0 comments

The Great American GLP-1 Experiment

https://www.nytimes.com/interactive/2026/04/15/opinion/glp1-health-effects.html
1•paulpauper•30m ago•0 comments

Show HN: KillClawd – a sarcastic AI desktop crab by local Ollama

https://github.com/ninjahawk/KillClawd
1•ninjahawk1•34m ago•0 comments

We mapped the nationwide Instructure breach

https://data.dailycal.org/2026-05-07-shiny-hunters/
2•notmysql_•37m ago•0 comments

The End of Elsewhere

https://fugitivemargins.substack.com/p/the-end-of-elsewhere
1•celadevra_•38m ago•0 comments

The Secret Diary That Has Spilled into the Musk vs. OpenAI Feud

https://www.wsj.com/tech/musk-openai-trial-greg-brockman-diary-journal-6950270e
1•RyanShook•39m ago•0 comments

Nvidia introduces back end for CUDA kernels in Rust

https://github.com/NVlabs/cuda-oxide
1•ketchup32613•1h ago•0 comments

Ask Hacker News: AI music with feedback

1•alpple•1h ago•0 comments

vLLM Routing and KV

https://avkcode.github.io/blog/how-vllm-works.html
2•gmays•1h ago•0 comments

A Mental Model for Agentic Work

https://basti.io/blog/agentic_work_mental_model/
1•vinhnx•1h ago•0 comments

Non-invasive profiling of the tumour microenvironment with spatial ecotypes

https://www.nature.com/articles/s41586-026-10452-4
3•bookofjoe•1h ago•0 comments

VGC: A Zone-Based Garbage Collection Architecture for Python's Parallel Runtime

https://arxiv.org/abs/2512.23768
2•teleforce•1h ago•0 comments

Tell HN: "Epstein files" is getting buried by deliberate suppresion-propaganda

15•notepad0x90•1h ago•4 comments

Open-source AWS evidence collector for SoC 2 audits

https://loxeai.com
1•arjavmehta•1h ago•0 comments

How to Work and Compound with AI

https://eugeneyan.com/writing/working-with-ai/
1•vinhnx•1h ago•0 comments

Open weights are quietly closing up – and that's a problem

https://martinalderson.com/posts/open-weights-are-quietly-closing-up/
2•vinhnx•1h ago•0 comments

He says U.S. troops abused him in Iraq's Abu Ghraib and his life is still ruined

https://www.npr.org/2023/04/11/1167341565/us-iraq-war-abu-ghraib-survivor
2•Cider9986•1h ago•0 comments

AI's Circular Psychosis

https://www.wheresyoured.at/premium-ais-circular-psychosis/
7•greedo•1h ago•5 comments

AI Hard Drive Shortage Making It More Expensive, Harder to Archive the Internet

https://www.404media.co/the-ai-hard-drive-shortage-is-making-it-more-expensive-and-harder-to-arch...
2•pabs3•1h ago•1 comments

Chamath Palihapitiya: What I Learned from Being Around the Top.01%

https://www.youtube.com/watch?v=RWqB9eAKMx0
2•Brysonbw•1h ago•0 comments

I built GitHub Store to 12,500 stars in 6 months – I started at 16

https://github-store.org/blog/how-i-built-github-store/
6•rainxchzed•1h ago•27 comments

I built a baremetal RustOS (O(1)allocator NVMeDMA ZeroTrust sandbox for AIAgents

https://github.com/joreag/polymorph_os
1•joreag•1h ago•0 comments

Software Sustainability Maturity Model (2013)

http://oss-watch.ac.uk/resources/ssmm
1•pabs3•1h ago•0 comments