frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: routr - a fast local replacement for DuckDuckGo bangs

https://t128n.github.io/routr/
2•trbndev•1y ago

Comments

trbndev•1y 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•1y ago
That link is broken. Correct link: https://t128n.github.io/writings/2025-05-02_optimizing_searc...
trbndev•1y 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•1y 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•1y 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•1y 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•1y 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: Tavi – A pet health tracker that works offline, with no account

https://tavi.pet/
1•abdghani•6m ago•0 comments

Panic passes Trump tariff refunds back to the Playdate customers who paid them

https://help.play.date/orders/tariffs/
1•huhtenberg•7m ago•0 comments

Show HN: Live football data. Clear patterns. Smart bets

https://valuestats.com/
1•not_wowinter14•8m ago•0 comments

LLM Cliché Highlighter

https://tools.simonwillison.net/llm-cliche-highlighter
2•rzk•8m ago•0 comments

Kojugate: Graph-native multiphysics simulation engine and digital twin

https://www.konjugate.com/
1•zenin•14m ago•1 comments

The Language of Headlines

https://daily.jstor.org/how-does-the-language-of-headlines-work-the-answer-may-surprise-you/
1•bookofjoe•15m ago•0 comments

One of east coast's largest datacenters accused of 'violating federal law'

https://www.theguardian.com/environment/2026/aug/27/new-jersey-vineland-datacenter-permits
1•sseagull•16m ago•0 comments

Scanning 170M lines of code: 44% of AI-found critical vulnerabilities were FP

https://corporate.comcast.com/stories/exploratory-vs-deterministic-assessments
1•officialhocc•17m ago•0 comments

Show HN: MCP server that drives the browser you are signed into

https://github.com/t3ratech/mcp-session-bridge
2•tkaviya•17m ago•0 comments

Assessly

https://assessly.app
1•manytduarte•18m ago•0 comments

LLMs are multi-layered user interfaces

https://www.gtothesquare.com/llms-the-multi-layered-user-interface
1•gtothesquare•24m ago•0 comments

Performing Digital Surgery to Fix MIDIs for My Hardware (My Post Was Wrong)

https://www.mistys-internet.website/blog/blog/2026/08/25/how-i-fixed-an-mt-32-midi-soundtrack-for...
2•robin_reala•29m ago•0 comments

Show HN: Public MCP for Greek price comparison (no API key)

https://www.bestprice.gr/mcp
1•phaistonian•30m ago•0 comments

Quest for eternal dock on Wayland – lambdock (C and GTK4 and Lisp Guile Scheme)

https://jointhefreeworld.org/blog/articles/gnu-linux/quest-for-eternal-dock/index.html
1•jjba23•34m ago•0 comments

Intel Linux Driver Orphaned for Limiting RF Exposure to Humans

https://www.phoronix.com/news/Intel-Linux-SAR-Driver-Orphaned
3•rbanffy•35m ago•0 comments

Making Your Data Ready for Agentic AI

https://martinfowler.com/articles/making-data-ready-for-agentic-ai.html
1•javaeeeee•37m ago•0 comments

AI and Cognitive Science Redefine Knowledge Retention

https://www.technology.org/2026/08/28/how-artificial-intelligence-and-cognitive-science-are-redef...
1•aledevv•38m ago•0 comments

Show HN: Less Paper – native iOS/iPadOS client for Paperless-ngx

https://github.com/plu/less-paper
1•jplunien•39m ago•0 comments

Visa USA Interchange Reimbursement Fees [pdf]

https://usa.visa.com/content/dam/VCOM/download/merchants/visa-usa-interchange-reimbursement-fees.pdf
2•simonebrunozzi•40m ago•0 comments

IBM's new Granite 4.2 models ride the wave of interest in local LLMs

https://arstechnica.com/ai/2026/08/ibms-new-granite-4-2-models-ride-the-wave-of-interest-in-local...
1•rbanffy•44m ago•0 comments

Gilad Bracha on managing dependencies in Smalltalk

https://twitter.com/Gilad_Bracha/status/2093106007618834451
1•tosh•44m ago•0 comments

Difference-in-Differences on a Censored Rating Scale Can Manufacture an Effect

https://arxiv.org/abs/2608.27309
2•sbulaev•45m ago•0 comments

"they are illegal labor practices" Harmeet K. Dhillon comments on H1B abuse

https://twitter.com/AAGDhillon/status/2093135087428878720
3•AnkitGuptaTruth•46m ago•0 comments

The thing that should exist when someone dies

https://www.planwithhestia.com/
1•linkhas•47m ago•2 comments

Ask HN: Built a free minimal daily planner, habit tracker and Pomodoro timer

1•farahhh•49m ago•0 comments

Lost in translation: What I learned trying to speedrun subtitles with LLMs

https://blog.burkert.me/posts/listers/
1•rudolftheone•49m ago•0 comments

What our AI guiding principles mean

https://wagtail.org/blog/what-our-ai-guiding-principles-actually-mean/
1•Bluestein•51m ago•1 comments

Terence Tao – How the top mathematician uses AI [video]

https://www.youtube.com/watch?v=Q8Fkpi18QXU
2•binyu•51m ago•0 comments

Open Source is a cost-allocation system

https://dri.es/open-source-is-a-cost-allocation-system
1•runningmike•51m ago•1 comments

Blood, Toil, Tears, and Sweat (1940)

https://americanliterature.com/history/winston-churchill/speech/blood-toil-tears-and-sweat
2•simonebrunozzi•53m ago•0 comments