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

Fun AI Projects

https://www.pankajtanwar.in/side-hustles
1•jaynate•32s ago•0 comments

AV1 Image File Format Specification Gets an Upgrade with AVIF v1.2.0

https://aomedia.org/blog%20posts/AV1-Image-File-Format-Specification-Gets-an-Upgrade-with-AVIF/
1•breve•3m ago•0 comments

Ask HN: Is there a free MCP for web and documentation search?

1•terabytest•4m ago•0 comments

Show HN: Curated index page for my subdomains

https://index.priyavkaneria.com/
1•diginova•4m ago•0 comments

Your 'Ideal Customer Profile' Is a Hallucination

https://pathak.ventures/essays/the-segment-of-one
1•ninadpathak•4m ago•0 comments

Google should build a VST/AU Metadata Bridge instead of another AI generator

1•yoekimera•5m ago•0 comments

Commodore 64 Ultimate (Batch 2)

https://www.commodore.net/product-page/commodore-64-ultimate-basic-beige-batch2
1•tzmlab•5m ago•0 comments

Show HN: Why Should Assembly Be English‑Only? Nuasm Adds 51 Human Languages

1•neuroosgenesis•11m ago•1 comments

Show HN: FileMason – Automate file organization on macOS with custom rules

https://apps.apple.com/us/app/filemason/id6757748498?mt=12
1•edurevilla•11m ago•0 comments

EU moves to force the phase-out of Chinese suppliers from key infrastructure

https://www.reuters.com/world/china/eu-bar-chinese-suppliers-critical-infrastructure-ft-reports-2...
1•robtherobber•12m ago•0 comments

Atlarix – A privacy-first, native AI coding agent for your desktop

https://www.atlarix.dev/
1•AmariahKam•15m ago•1 comments

Brazil's Bolsonaro finds novel way to reduce 27-year sentence: reading books

https://www.theguardian.com/world/2026/jan/16/brazil-jair-bolsonaro-reduce-sentence-reading-books
2•tosh•17m ago•0 comments

PCs refuse to shut down after Microsoft patch

https://www.theregister.com/2026/01/16/patch_tuesday_secure_launch_bug_no_shutdown/
2•smurda•22m ago•0 comments

List of Flight Airspeed Records

https://en.wikipedia.org/wiki/List_of_flight_airspeed_records
1•freespirt•24m ago•0 comments

clickhouse-local

https://clickhouse.com/docs/operations/utilities/clickhouse-local
1•tosh•25m ago•0 comments

Is Groove (by OpenAI) a scam that no one talks about?

2•ainthusiast•28m ago•0 comments

Kotlin Multiplatform

https://kmp.rrtutors.com/
1•rrtutors•34m ago•0 comments

After 25 years, Wikipedia has proved that news doesn't need to look like news

https://www.niemanlab.org/2026/01/after-25-years-wikipedia-has-proved-that-news-doesnt-need-to-lo...
16•giuliomagnifico•43m ago•1 comments

An explanation of cheating in Doom2 Deathmatch (1999)

https://www.doom2.net/doom2/cheating.html
1•Lammy•44m ago•1 comments

US electricity demand surged in 2025 – solar handled 61% of it

https://electrek.co/2026/01/16/us-electricity-demand-surged-in-2025-solar-handled-61-percent/
21•doener•45m ago•2 comments

Show HN: PolyMCP – structured skills from MCP tools for efficient agent usage

1•justvugg•45m ago•0 comments

TLDR: Code Analysis for AI Agents

https://github.com/parcadei/llm-tldr
1•handfuloflight•46m ago•0 comments

Don't Waste Your Back Pressure

https://banay.me/dont-waste-your-backpressure/
1•ghuntley•47m ago•0 comments

GCD of Fibonacci Numbers

https://www.cut-the-knot.org/arithmetic/algebra/FibonacciGCD.shtml
1•vismit2000•47m ago•1 comments

Show HN: I made a TIDAL client that runs in the terminal

https://github.com/results-may-vary-org/ttydal
1•a2nb•51m ago•0 comments

TidesDB v7.2.3 and RocksDB v10.9.1 Benchmark Analysis

https://tidesdb.com/articles/benchmark-analysis-tidesdb-v7-2-3-rocksdb-v10-9-1/
1•alexpadula•52m ago•0 comments

Map To Poster – Create Art of your favourite city

https://github.com/originalankur/maptoposter
7•originalankur•59m ago•10 comments

Hypixel released Hytale Early Access

https://hytale.com/news/2026/1/hytale-is-finally-here
1•ssernikk•1h ago•0 comments

Jaw health campaign – looking for funding

1•gushogg-blake•1h ago•0 comments

Docker Releases Hardened Images for Free – What Does It Do Differently?

https://www.i-programmer.info/news/240-devops/18579-docker-releases-hardened-images-for-free-what...
1•birdculture•1h ago•0 comments