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•7mo ago

Comments

trbndev•7mo 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•7mo ago
That link is broken. Correct link: https://t128n.github.io/writings/2025-05-02_optimizing_searc...
trbndev•7mo 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•7mo 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•7mo 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•7mo 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•7mo 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

Show HN: JSON-Healer: Repair and Validate Broken JSON from LLM Outputs

1•freakynit•29s ago•0 comments

Summary of the USA federal government's zero-trust memo

https://www.bastionzero.com/blog/i-read-the-federal-governments-zero-trust-memo-so-you-dont-have-to
1•fanf2•1m ago•0 comments

Linux kernel community discussion on ML/LLM tools in kernel development

https://lwn.net/Articles/1050355/
1•todsacerdoti•4m ago•0 comments

Late last night, I received a final Christmas gift

https://twitter.com/PalmerLuckey/status/2004638982915981652
1•keepamovin•4m ago•0 comments

Show HN: I built a secure "Linktree" for IBANs and Crypto addresses

https://iban.bio
2•kadiran•6m ago•0 comments

Ask HN: Do you believe any LLM's pass the Turing test? How?

1•oldputput•7m ago•0 comments

VP of Sales

https://unicursaltalent.com/
1•paulwesleydavis•10m ago•0 comments

Sequence Toys: Train a language model in the browser with WebGPU

https://sequence.toys
1•handfuloflight•11m ago•0 comments

AI village, watch frontier AIs interact with each other and the world

https://theaidigest.org/village
1•Alifatisk•17m ago•1 comments

Show HN: Bibrof AI – Bulk Image Background Remover Offline

https://bibrof.lislip.com/
1•vinayak18696•19m ago•0 comments

Package Forge, Improving Package Management for *Unix Systems

https://github.com/pkgforge
1•rhim•20m ago•0 comments

Own a Graph

https://staysaasy.com/strategy/2025/11/25/own-a-graph.html
1•thisismytest•21m ago•0 comments

Concert cancelled after AI wrongly accuses artist of being sex offender

https://www.cbc.ca/news/entertainment/ashley-macisaac-ai-accusation-9.7026786
2•adam-p•21m ago•0 comments

RoboCop – Breaking the Law. H0ffman Cracks RoboCop Arcade from DataEast

https://hoffman.home.blog/2025/12/26/robocop-breaking-the-law/
1•birdculture•22m ago•0 comments

Geely's SiEngine Surpasses Global ADAS Standards with New 7nm SoCs

https://robotdyn.com/geelys-siengine-surpasses-global-adas-standards-with-new-7nm-socs/
1•teleforce•26m ago•0 comments

Are Private Jets Less Safe Than Flying Commercial?

https://www.vanityfair.com/style/story/private-jet-plane-crashes
1•rbanffy•27m ago•0 comments

Free and Open Sourced Prompt Generator for Image and Software Projects

https://prompy.xyz
1•niyoseris•27m ago•1 comments

Workmux: Git worktrees and tmux for parallel AI agents

https://raine.dev/blog/introduction-to-workmux/
1•rane•28m ago•0 comments

Serde (Rust Serialization Deserialization)

https://serde.rs/
1•mpweiher•31m ago•0 comments

Ask HN: How do your teams keep docs and code in sync?

1•iampotatoman92•33m ago•0 comments

Create the next season of Emily in Paris

https://claude.ai/public/artifacts/9a29a330-fcca-4373-8c1b-904f84e2a4e9
1•valkrieco•35m ago•0 comments

Ask HN: Is there a tracker for OOS internationalization requirements?

1•devdp430•35m ago•0 comments

Show HN: The bedtime, another little bedside clock

https://www.stavros.io/posts/i-made-another-little-bedside-clock/
1•stavros•36m ago•0 comments

How Much Would It Cost the U.S. to "Buy" Greenland?

https://www.thepricer.org/how-much-would-it-cost-the-u-s-to-buy-greenland/
1•canitellyou•37m ago•2 comments

Show HN: I spent 3 months building an AI trading bot using DRL like AlphaGo

https://github.com/zero-was-here/tradingbot
1•solosquad•38m ago•0 comments

3D-Printable High-Strength Al Alloys via Rapid Solidification

https://advanced.onlinelibrary.wiley.com/doi/10.1002/adma.202509507
1•bookofjoe•39m ago•0 comments

0day unauthenticated RCE affecting 70k devices on the internet found by AI

https://pwn.ai/blog/cve-2025-54322-zeroday-unauthenticated-root-rce-affecting-70-000-hosts
1•shinkurt•42m ago•0 comments

A Geometric Approach to 5D Superfluid Stabilization

1•j_wood•44m ago•1 comments

Digital Signals Theory

https://brianmcfee.net/dstbook-site/index.html
1•phoreverpheebs•45m ago•0 comments

Splice a Fibre

https://react-networks-lib.rackout.net/fibre
10•matt-p•46m ago•0 comments