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

Cerebras IPO Signals Growing Pressure on the GPU Scaling Model

https://www.hpcwire.com/2026/05/14/cerebras-ipo-signals-growing-pressure-on-the-gpu-scaling-model/
1•rbanffy•36s ago•0 comments

A simple Daikon-style runtime invariant miner for Python

https://rahul.gopinath.org/post/2026/05/09/simple-invariant-miner/
1•fanf2•1m ago•0 comments

AI agents make small companies bigger

https://text-incubation.com/ai-agents-make-small-companies-bigger?1
1•krrishd•2m ago•0 comments

Clarify & target potential customers with generated sales campaigns

https://mygtm.io/
1•Bryan2000100•5m ago•1 comments

LSL: Open-source lab streaming layer for synchronized multimodal recording

https://direct.mit.edu/imag/article/doi/10.1162/IMAG.a.136/132678/The-lab-streaming-layer-for-syn...
1•teleforce•5m ago•1 comments

U.S. California 'Rich Dude' Fights $2.5M Fine over Public Beach Access

https://www.wsj.com/us-news/california-rich-dude-fights-2-5-million-fine-over-public-beach-access...
1•iancmceachern•8m ago•0 comments

Wrapping a C Library in RAII

https://lmilz.dev/blog/2026/05/15/Wrapping-a-C-library-in-RAII-unique_ptr-with-custom-deleters-an...
1•lmilz•11m ago•0 comments

Data centers are guzzling California's water. We have no idea how much

https://calmatters.org/environment/water/2026/05/california-data-centers-water-transparency/
2•cdrnsf•11m ago•0 comments

What Is Date:Italy?

http://aesthetikx.info/blog/date_italy.html
1•jollyjerry•11m ago•0 comments

Mearsheimer and Walt versus Nuland and Pompeo

https://mearsheimer.substack.com/p/mearsheimer-and-walt-versus-nuland
1•hackandthink•11m ago•1 comments

Build Live Translation Apps with GPT-realtime-translate

https://developers.openai.com/cookbook/examples/voice_solutions/realtime_translation_guide
1•gmays•15m ago•0 comments

Vegetation Moves Upslope Across the Himalayas

https://eos.org/articles/vegetation-moves-upslope-across-the-himalayas
1•bookofjoe•15m ago•0 comments

Starlink is doubling standby price to $10/mo

https://teslanorth.com/2026/05/16/starlink-is-raising-its-prices-heres-how-much-more-youll-pay/
3•behnamoh•16m ago•0 comments

2ality Blog: Temporarily Offline

https://2ality.com/
1•healsdata•16m ago•0 comments

CodeSpectra the Illusion of Easy Coding: Why AI Still Demands Effort

https://blog.ptidej.net/codespectra-the-illusion-of-easy-coding-why-ai-still-demands-effort/
1•sikandarejaz•18m ago•0 comments

An introduction to TLA+ and its use in parties (2023)

https://www.innoq.com/en/articles/2023/04/an-introduction-to-tla/
1•pramodbiligiri•18m ago•0 comments

Kay Nishi and the Meeting That Started MS-DOS

https://nemanjatrifunovic.substack.com/p/kay-nishi-and-the-meeting-that-started
1•rbanffy•21m ago•0 comments

Whatever Happened to the Near East?

https://jonn.substack.com/p/whatever-happened-to-the-near-east
1•thunderbong•22m ago•0 comments

The Two Europes

https://www.siliconcontinent.com/p/the-two-europes
1•akyuu•24m ago•1 comments

TellmeTruth, open source ledger mapping institutional claims to traceable data

https://tellmetruth.live/
1•L0nl0n•24m ago•0 comments

Rcall – recursive text search in file names and content, written in Nim

https://github.com/isuzano/rcall
1•isuzano•26m ago•0 comments

I built an affordable alternative to AppTweak and Sensor Tower ($19.99 lifetime)

https://appstorestatistics.com/
1•tkrenn06•29m ago•0 comments

Kioxia and Dell cram 10 PB into slim 2RU server

https://www.blocksandfiles.com/flash/2026/05/14/kioxia-and-dell-cram-10-pb-into-slim-2ru-server/5...
2•rbanffy•30m ago•0 comments

Copify: free, offline clipboard manager for Mac with search and pinning

https://github.com/rkeshri04/Copify
13•rkeshri•30m ago•0 comments

Evolution and the Industrial Revolution: New Evidence for the Galor-Moav Theory [pdf]

https://warwick.ac.uk/fac/soc/economics-staging/staff-backup/omoav/evidence_brief.pdf
1•akyuu•31m ago•0 comments

Technofascism

https://third-bit.com/2026/05/15/technofascism/
5•speckx•32m ago•0 comments

A rare disease spills secrets about the brain's amygdala – Knowable Magazine

https://knowablemagazine.org/content/article/mind/2026/genetic-disease-reveals-role-of-brain-amyg...
2•rbanffy•33m ago•0 comments

The Agricultural Origins of Time Preference

https://pmc.ncbi.nlm.nih.gov/articles/PMC5541952/
1•akyuu•34m ago•0 comments

Richard Sutton – Father of reinforcement learning thinks LLMs are a dead end [video]

https://www.youtube.com/watch?v=21EYKqUsPfg
1•evo_9•36m ago•0 comments

2. Brah Min

https://suryawaters.substack.com/p/2-brah-min
1•surya_waters•38m ago•1 comments