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

The offline desk gadget that got me to sit up straight

https://techcrunch.com/2026/05/16/the-offline-desk-gadget-that-actually-got-me-to-sit-up-straight/
1•jnord•20s ago•0 comments

Insdubai.com: Motor insurance policies, data of insured persons was exposed

https://write-ups.security-chu.com/2026/05/insdubai-data-breach-incident.html
1•news_rt•1m ago•0 comments

Quantum-COSMOLOGICAL ALIGNMENT (d=16)

https://github.com/lizbeth307/quantum-superactivation-refutation
1•NeoOdim•4m ago•0 comments

Near-Earth Asteroid 2026 JH2 close encounter: 18 May 2026

https://www.virtualtelescope.eu/2026/05/12/near-earth-asteroid-2026-jh2-extremely-close-encounter...
1•rolph•5m ago•0 comments

My Thoughts on Bun's Rust Rewrite

https://en.liujiacai.net/2026/05/16/bun-rust-port/
1•jwzxgo•7m ago•0 comments

Singapore Former Prime Minister Lee Hsien Loong's Sudoku Solver Written in C++

https://github.com/Doppp/LHL-Sudoku-Solver
1•doppp•13m ago•0 comments

Let's Talk about Benchmarks

https://spacetimedb.com/blog/benchmarking
1•ChadNauseam•13m ago•0 comments

My Son's Math Homework Is Essentially Just Pokémon

https://www.theatlantic.com/technology/2026/05/homework-video-games-ed-tech/687198/
1•tekdude•14m ago•0 comments

Arm Holdings to Face US Antitrust Probe

https://www.bloomberg.com/news/articles/2026-05-15/arm-holdings-said-to-face-us-antitrust-probe-o...
2•fork-bomber•21m ago•0 comments

OpenAI is offering ChatGPT Plus to citizens of Malta for a year

https://www.engadget.com/2174473/openai-is-offering-chatgpt-plus-to-citizens-of-malta-for-a-year/
1•SpyCoder77•30m ago•0 comments

Assembly Language – Jesse Colin Jackson's Marching Cubes

https://www.creativeapplications.net/project/assembly-language-jesse-colin-jacksons-marching-cubes/
1•figomore•31m ago•0 comments

Your brain is always a fraction of a second behind the present

https://www.sciencefocus.com/the-human-body/brain-lives-past
3•amichail•33m ago•0 comments

Experimental weight-loss drug outperforms original GLP-1s

https://www.foxnews.com/health/experimental-obesity-drug-outperforms-traditional-weight-loss-trea...
2•paulpauper•35m ago•0 comments

We built a zero-telemetry Native Rust AI engine. (Ghost Lock included)

https://github.com/jrabbass/-esai-community-edition
1•jrabbass•36m ago•0 comments

Show HN: QuantTakeoff – Construction PDFs to takeoff and 3D scene

1•acaciabengo•38m ago•0 comments

Ane: CLI editor that uses LSPs to let agents explore/edit code with fewer tokens

https://github.com/prettysmartdev/ane
3•archnet•39m ago•0 comments

AI's eyes to help with component inspections

https://newsreleases.sandia.gov/ai-inspections/
1•hhs•40m ago•0 comments

Show HN: Where do I stand? – Household Health

https://wheredoistand.me/
1•vgrocha•42m ago•0 comments

Singapore Foreign Minister's Keynote at AI Engineer Singapore

https://www.youtube.com/watch?v=t-4a20_iYhg
1•doppp•44m ago•0 comments

White monkeys to make Chinese business look more global

https://www.theguardian.com/lifeandstyle/2026/may/16/fake-lawyers-scientists-chefs-punters-white-...
1•andsoitis•45m ago•1 comments

The mysterious disappearance of growth in US manufacturing: Was it China shock?

https://www.aeaweb.org/articles?id=10.1257/pandp.20261041
1•hhs•56m ago•0 comments

A Nicer Voltmeter Clock

https://lcamtuf.substack.com/p/a-nicer-voltmeter-clock
4•surprisetalk•1h ago•0 comments

'Transported' book review: Lost in a musical daydream

https://www.wsj.com/arts-culture/books/transported-review-lost-in-a-musical-daydream-83d8f76d
1•hhs•1h ago•0 comments

AI Memory Reader – Native macOS app for browsing Claude Code memory files

https://github.com/nvwalj/ai-memory-reader
3•nvwalj•1h ago•0 comments

The Futility of Lava Lamps: What Random Means

https://loup-vaillant.fr/articles/lava-lamps-and-randomness
1•birdculture•1h ago•0 comments

Living with Class

https://philosophersmag.com/living-with-class/
1•Wicher•1h ago•0 comments

Adonis was Sumerian before he was Greek

https://storica.club/blog/adonis-was-sumerian/
6•aralsamuel•1h ago•0 comments

Token spend breaks budgets – what next?

https://newsletter.pragmaticengineer.com/p/the-pulse-token-spend-breaks-budgets
5•eneveu•1h ago•1 comments

Wish You Were Her

https://www.nplusonemag.com/issue-53/essays/wish-you-were-her/
3•gmays•1h ago•0 comments

Hacker's Manual 2025 error at page 29

3•eahm•1h ago•0 comments