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: PromptSDK – A CLI to turn a folder of prompts into a type-safe SDK

https://github.com/ProfessionalGriefer/PromptSDK
1•vin92997•50s ago•0 comments

Ask HN: Underrated music, books, movies? (2025)

1•galfarragem•1m ago•0 comments

AI agents are human too

https://resolve.works/articles/ai-agents-are-human-too/
3•monneyboi•6m ago•0 comments

Show HN: I was frustrated of 85% of my technical interviews, I built SharpSkill

https://sharpskill.fr/en
1•Enjoyooor•8m ago•1 comments

Surface Tension of Software: why systems hold together

https://iamstelios.com/blog/surface-tension-of-software/
1•i8s•11m ago•0 comments

(Probably) the Hardest Function Graph to Compute: The Zeta Function Graph

https://vanilla-zeta-graph.netlify.app/?real=+0.5&imaginary_start=+0.0&direction=plus
1•cpuXguy•12m ago•1 comments

Goodbye, Microsoft: Schleswig-Holstein Relies on Open Source and Saves Millions

https://www.heise.de/en/news/Goodbye-Microsoft-Schleswig-Holstein-relies-on-Open-Source-and-saves...
5•doener•14m ago•0 comments

How to Fix Critical Bugs Fast Without Hiring a Developer?

https://www.indiehackers.com/post/how-to-fix-critical-bugs-fast-without-hiring-a-developer-XiYlDn...
1•plakhlani2•17m ago•0 comments

Study Friend – One AI conversation for flashcards, quizzes, graphs and more

1•ganeshspeaks•18m ago•0 comments

At least 50 hallucinated citations found in ICLR 2026 submissions

https://gptzero.me/news/iclr-2026/
3•puttycat•18m ago•0 comments

If AI Is Our Future, What Can We Learn from the Past?

https://www.forbes.com/sites/sap/2020/12/16/if-ai-is-our-future-what-can-we-learn-from-the-past/
1•tesserato•22m ago•0 comments

Do you feel bad to just review AI code? Same

https://ironicreality.bearblog.dev/do-you-feel-bad-to-just-review-ai-code-same/
2•gabrycina•27m ago•1 comments

Microplastics Filter Inspired by Fish

https://www.uni-bonn.de/en/news/219-2025
2•geox•31m ago•0 comments

ODF 1.4

https://docs.oasis-open.org/office/OpenDocument/v1.4/os/part1-introduction/OpenDocument-v1.4-os-p...
3•pentagrama•34m ago•0 comments

I wasted years of my life in crypto

https://twitter.com/kenchangh/status/1994854381267947640
38•Anon84•37m ago•17 comments

Multiplying our way out of division

https://xania.org/202512/07-division-again
2•HeliumHydride•37m ago•0 comments

Show HN: Finbley – A Lightweight Earning and Spending Tracker

https://www.finbley.com
1•mo_hackernews•38m ago•0 comments

Understanding Stablecoins

https://www.imf.org/en/publications/departmental-papers/issues/2025/12/02/understanding-stablecoi...
1•Anon84•38m ago•0 comments

Show HN: Minimal container-like sandbox built from scratch in C

https://github.com/Sahilb315/runbox
1•Sahil121•41m ago•0 comments

The Reverse-Centaur's Guide to Criticizing AI

https://pluralistic.net/2025/12/05/pop-that-bubble/
6•doener•49m ago•0 comments

JSX-DSL

https://github.com/JuliusWallblom/jsx-dsl
1•juliuswallblom•50m ago•0 comments

Twitter axes European Commission's ad account after €120M EU fine

https://www.politico.eu/article/x-axes-european-commissions-ad-account-after-e120m-eu-fine/
9•phoronixrly•51m ago•4 comments

Bank of England sees greater financial risks from AI and lending

https://www.reuters.com/sustainability/boards-policy-regulation/bank-england-sees-risks-ai-privat...
2•01-_-•52m ago•0 comments

Apple is undergoing the biggest change in its leadership

https://fortune.com/2025/12/05/apple-executive-leadership-exodus-biggest-shakeup-since-steve-jobs...
2•01-_-•52m ago•0 comments

Previous: A NeXT Emulator

http://previous.alternative-system.com/
3•fanf2•53m ago•0 comments

The Anatomy of a macOS App

https://eclecticlight.co/2025/12/04/the-anatomy-of-a-macos-app/
1•elashri•1h ago•0 comments

LZAV 5.7: Enhanced Compression, Speed, C++ Compliance, and Benchmark Results

https://github.com/avaneev/lzav
1•birdculture•1h ago•0 comments

How the Disappearance of Flight 19 Fueled the Legend of the Bermuda Triangle

https://www.smithsonianmag.com/history/how-the-disappearance-of-flight-19-a-navy-squadron-lost-in...
3•pseudolus•1h ago•0 comments

Hyperrealistic Graphite Watch Drawings

https://sinzianaiordache.com/
1•ghtbircshotbe•1h ago•2 comments

Google Titans architecture, helping AI have long-term memory

https://research.google/blog/titans-miras-helping-ai-have-long-term-memory/
1•Alifatisk•1h ago•1 comments