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

Immutable Knowledge Databases, applied to microservices relationships [video]

https://www.youtube.com/watch?v=1vBm9XvS5QI
1•joaonmello•2m ago•1 comments

Ask HN: Some great launch videos in recent times?

1•nemath•4m ago•0 comments

Should I unsubscribe from Shane Parrish's AI-generated newsletter?

1•arnz-arnz•6m ago•0 comments

Microsoft suspects some PCs might not boot after Windows 11 January 2026 Update

https://www.windowslatest.com/2026/01/25/microsoft-suspects-some-pcs-might-not-boot-after-windows...
2•nsoonhui•6m ago•0 comments

Show HN: Nhx – Node.js Hybrid eXecutor (a uvx inspired tool)

https://www.npmjs.com/package/nhx
1•kolodny•7m ago•0 comments

Show HN: Endfield Calculator – Arknights Factory and Base Planning Tool

https://endfieldcalculator.org/
2•tomstig•9m ago•0 comments

KASM Workspaces

https://docs.linuxserver.io/images/docker-kasm/
1•indigodaddy•12m ago•0 comments

Video Games as Art

https://gwern.net/video-game-art
2•andsoitis•15m ago•0 comments

Show HN: Debugging conflicting U.S. sexual behavior surveys

https://osf.io/preprints/socarxiv/jcdbm_v2
2•joshuafkon•15m ago•0 comments

Show HN: Invoice Studios – local first invoicing app (one time purchase)

https://liblab.gumroad.com/l/invoice-studio
1•josephttd•17m ago•0 comments

Show HN: Interactive demo of the X "For You" algorithm (runs in browser)

https://prabal.ca/x-algorithm/
3•prabal97•19m ago•0 comments

SF Microclimates API

https://github.com/solo-founders/sf-microclimates
1•weisser•21m ago•0 comments

AI FOMO

https://datamethods.substack.com/p/ai-fomo
1•zekrom•22m ago•1 comments

Show HN: Cloister – Local web UI to browse and monitor Claude Code sessions

https://github.com/bradleyboy/cloister
1•bradleyboy•23m ago•0 comments

Pragtical Editor v3.8.2 Released

https://pragtical.dev/blog/pragtical-v382-release
2•rd07•30m ago•0 comments

Show HN: Omiu.me – A WYSIWYG profile builder that uses blocks

https://omiu.me/
1•zacaryn•32m ago•0 comments

Why is cursor / Claude Code is so bad at generating readmes?

2•yakshithk_•39m ago•1 comments

Vectorized MAXSCORE over WAND, especially for long LLM-generated queries

https://turbopuffer.com/blog/fts-v2-maxscore
1•vismit2000•43m ago•0 comments

How Google AI Overviews are putting public health at risk

https://www.theguardian.com/technology/ng-interactive/2026/jan/24/how-the-confident-authority-of-...
2•oenton•46m ago•0 comments

No Politics on Hacker News

https://joelx.com/no-politics-on-hacker-news/
5•silexia•47m ago•6 comments

Learning with LLMs

https://jwuphysics.github.io/blog/2025/12/learning-with-llms/
2•jxmorris12•48m ago•0 comments

Staggering Beauty 2

https://staggeringbeauty.io/
1•jackisguess•48m ago•0 comments

LLMs Aren't Tools

https://yagmin.com/blog/llms-arent-tools/
1•lubujackson•49m ago•0 comments

Sysp: Systems Lisp compiling to C with homoiconic macros, refcounted memory, Hi

https://github.com/karans4/sysp
1•todsacerdoti•50m ago•0 comments

The largest Trump superPAC donor so far this cycle is the president of OpenAI

https://bsky.app/profile/jakemgrumbach.bsky.social/post/3mdbzv2nfsc2k
16•m-hodges•51m ago•0 comments

Show HN: A Local OS for LLMs. MIT License. Zero Hallucinations. Infinite Memory

https://github.com/merchantmoh-debug/Remember-Me-AI
1•MohskiBroskiAI•53m ago•0 comments

Recursive Language Models: the paradigm of 2026

https://www.primeintellect.ai/blog/rlm
1•pseudolus•54m ago•0 comments

How Revolutions Really Start

https://neilthanedar.com/how-revolutions-really-start/
2•thanedar•57m ago•1 comments

Monster Neutrino Could Be a Messenger of Ancient Black Holes

https://www.quantamagazine.org/monster-neutrino-could-be-a-messenger-of-ancient-black-holes-20260...
1•pseudolus•1h ago•0 comments

Show HN: BSS Blue Hive Build

https://www.bluehiveguide.com/blue-hive-composition-guide.html
1•andy846851797•1h ago•0 comments