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

Comments

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

https://chris-hartwig.com/blog/you-want-hallucinated-code/
1•weddpros•4m ago•0 comments

Good listeners connect more easily with strangers, study finds

https://phys.org/news/2025-12-good-easily-strangers.html
1•PaulHoule•5m ago•0 comments

Flying with Photons: Rendering Novel Views of Propagating Light

https://anaghmalik.com/FlyingWithPhotons/
1•pillars•9m ago•0 comments

The Paper 2

https://zenodo.org/records/18304357
1•KaoruAK•9m ago•0 comments

F-16 Falcon Strike, modern combat flight SIM for Atari XL/XE

https://webchrono.pl/F16FalconStrike/index.html
1•starkparker•11m ago•0 comments

Keeping 20k GPUs Healthy

https://modal.com/blog/gpu-health
1•aburan28•15m ago•0 comments

Show HN: Circe – Deterministic, offline-verifiable receipts for AI agent actions

https://github.com/wv26296-ux/circe-receipts
1•W_rey45•17m ago•1 comments

CoreSpeed: Agent Runtime Infrastructure

https://corespeed.io
1•handfuloflight•17m ago•0 comments

Open Reimplementation of Google Widevine Content Decryption Module for Browsers

https://github.com/tchebb/openwv
1•pabs3•20m ago•0 comments

Idiomatic Rust – A peer-reviewed collection of Rust articles/talks/repos

https://github.com/rust-lang-nursery/rust-cookbook
1•Brysonbw•20m ago•0 comments

Gary Marcus on the Problems Facing AI and LLM Scaling – The Real Eisman Playbook [video]

https://www.youtube.com/watch?v=aI7XknJJC5Q
2•nradov•20m ago•0 comments

Spotless-Keep your code spotless

https://github.com/diffplug/spotless
1•rammy1234•22m ago•0 comments

Show HN: Artificial Ivy in the Browser

https://da.nmcardle.com/grow
2•dnmc•23m ago•0 comments

Show HN: Foom.ist: When silicon surpasses human brainpower

https://foom.ist/
1•steffs•23m ago•0 comments

Hotcrp.com: Unauthorized document access at CCS 2026

https://hotcrp.com/news/2026/security-notice-202601
1•jiegec•24m ago•1 comments

The New York Stock Exchange Develops Tokenized Securities Platform

https://www.businesswire.com/news/home/20260119300589/en/The-New-York-Stock-Exchange-Develops-Tok...
3•serial_dev•29m ago•0 comments

Two thirds of the wheat is developed by CIMMYT

https://grist.org/food-and-agriculture/green-revolution-india-wheat-seeds-climate/
2•trojanalert•30m ago•2 comments

Firehound is a repository of App Store apps exposing data from users

https://9to5mac.com/2026/01/19/firehound-huge-repository-of-app-store-apps-exposing-data-from-mil...
2•mikehotel•35m ago•1 comments

Deliberate AI Use

https://www.joshribakoff.com/blog/deliberate-ai-use/
1•joshribakoff•45m ago•1 comments

Mario Bros. In CSS (No JavaScript)

https://codepen.io/t_afif/pen/JoKYwXO
3•qingcharles•47m ago•0 comments

LLMs Outperform Data Scientists (2025)

https://presentofcoding.substack.com/p/llms-already-outperform-data-scientists
1•pajtai•48m ago•0 comments

Show HN: PublisherLens – advertising platform intelligence and analytics

https://www.publisherlens.com/
1•SongDeYu•51m ago•1 comments

LogSentinel v3.9 – Ultra-Fast Enterprise Log Analyzer with Error Intelligence

https://gum.new/gum/cmkiotta6000t04l75xh0e0i9
1•Dev_Master•52m ago•1 comments

Show HN: Username Search – Free Username Checker and Generator

https://usernamesearch.io
1•SongDeYu•58m ago•0 comments

Built a Real Life Running Man Competition. Partner with Steve Will Do It?

https://runningman.live/
2•todaycompanies•58m ago•1 comments

Basis Universal v2

https://github.com/BinomialLLC/basis_universal
1•FrostKiwi•1h ago•1 comments

Hackers disrupt Iran state TV to support exiled crown prince

https://www.politico.com/news/2026/01/19/hackers-disrupt-iran-state-tv-to-support-exiled-crown-pr...
3•hentrep•1h ago•2 comments

NATS Console – Open-Source Web UI for Managing NATS JetStream

https://github.com/KLogicHQ/nats-console
1•makilan•1h ago•1 comments

Iran Death Toll Estimates

1•starkshift•1h ago•1 comments

Graphical Tricks in Classic Games

https://www.youtube.com/watch?v=w9dH7bfAznc
3•bane•1h ago•0 comments