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

Only one of Berkshire Hathaway and SoftBank can survive

https://www.economist.com/business/2026/05/06/only-one-of-berkshire-hathaway-and-softbank-can-sur...
1•1vuio0pswjnm7•1m ago•0 comments

Language is primarily a tool for communication rather than thought [pdf]

https://colala.berkeley.edu/papers/fedorenko2024language.pdf
1•pythonic_hell•1m ago•1 comments

LUKSbox – Store sensitive files in the cloud without trusting the host

https://github.com/PentHertz/LUKSbox
1•danborn26•2m ago•0 comments

AI Gilfoyle

1•peterpommes•5m ago•0 comments

DuckDB-Delta Grows Up: Writes, Unity Catalog and Time Travel

https://duckdb.org/2026/05/07/delta-uc-updates
1•szarnyasg•5m ago•0 comments

Suits in 5 Nations Allege Apple Quashed "Watch Room" Competition

https://www.law.com/2026/05/08/suits-in-5-nations-allege-apple-quashed-watch-room-competition/
1•1vuio0pswjnm7•6m ago•0 comments

Accessibility of date formats (and superiority of YYYY-MM-DD)

https://mina86.com/2026/on-a11y-of-date-formats/
1•OuterVale•6m ago•0 comments

Trying a few ideas with rust and Python

https://github.com/KevinKenya/nairobi-connector-open-source/tree/main
1•kevinkenya•7m ago•0 comments

FCC Proposes Requiring Government-Issued ID for Phone Service [pdf]

https://docs.fcc.gov/public/attachments/DOC-421309A1.pdf
1•diogenes_atx•10m ago•1 comments

In search of wasted bits: how much information do LLM weights carry?

https://fergusfinn.com/blog/weight-entropy/
1•gmays•10m ago•0 comments

Sql2md – Zero-dependency SQL to Markdown converter (open source)

https://github.com/hyperbob/sql2md
1•sqlfans_qmejpi•12m ago•0 comments

Become the Place People Follow

https://www.researchterminal.ai
2•ipachanga•13m ago•0 comments

Rprom 7-fold Amiga 500/600/2000 from 6a/4.3 Kickstart Switcher configurable

https://www.retrobuddys.com/en/shop/amiga-hw-mods/amiga-2000-en/rprom-7-fold-amiga-500-600-2000-f...
1•doener•14m ago•0 comments

Show HN: I made an AI tool to keep my browser tabs clean

https://www.uncluttr.net
1•Nair0•19m ago•0 comments

Pinball Dreams

https://en.wikipedia.org/wiki/Pinball_Dreams
1•doener•20m ago•0 comments

The mangled remains of probes sent to Venus may still be there

https://www.scientificamerican.com/article/the-mangled-remains-of-probes-sent-to-venus-may-still-...
1•beardyw•20m ago•0 comments

Pentagon Wants Innovation. Small Businesses Want to Deliver. What's the Problem?

https://www.inc.com/issie-lapowsky/pentagon-wants-innovation-small-nimble-businesses-want-to-deli...
1•malloryerik•20m ago•0 comments

Malware Found in Trending Hugging Face Repository "Open-OSS/Privacy-Filter"

https://www.hiddenlayer.com/research/malware-found-in-trending-hugging-face-repository-open-oss-p...
1•aa_is_op•24m ago•0 comments

People and Timeline of Modern AI

https://senthil.learntosolveit.com/posts/2026/05/09/annotated-history-of-modern-ai-and-deep-learn...
1•orsenthil•25m ago•0 comments

Fake Pound Coin Database

https://www.thefakepoundcoindatabase.co.uk/
1•bhickey•26m ago•0 comments

Pushing Local Models with Focus and Polish

https://lucumr.pocoo.org/2026/5/8/local-models/
1•lumpa•28m ago•0 comments

Occupations with the Highest Divorce Rates

https://flowingdata.com/2026/05/07/divorce-and-occupation-2026/
1•lvnfg•29m ago•0 comments

The Shadow Admin Threat: AI Agents Creating Undetectable Backdoors

https://sharetxt.live/blog/the-shadow-admin-threat-how-autonomous-ai-agents-could-introduce-undet...
1•rexthonyy•32m ago•0 comments

The 28th Regime (EU)

https://the28thregime.eu/
2•dgellow•33m ago•0 comments

The left-wing case for AI

https://www.seangoedecke.com/the-left-wing-case-for-ai/
4•nsavage•34m ago•0 comments

LLM built for 12M-token reasoning

https://subq.ai/
1•tschibrillo•34m ago•0 comments

Ask HN: What's the most compelling paranormal evidence you found online?

3•johnnyfived•40m ago•1 comments

Let the Barbarians In

https://www.sigops.org/2026/let-the-barbarians-in-how-ai-can-accelerate-systems-performance-resea...
1•jruohonen•42m ago•0 comments

HTML/CSS/JS Viewer with full bidirectional code-preview highlighting

https://html-viewer.org
1•jackxmm•43m ago•0 comments

Extracting alignment data in open models

https://arxiv.org/abs/2510.18554
1•yakkomajuri•43m ago•0 comments