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

Heretic developer Philipp Emanuel Weidmann has died

https://www.heise.de/en/news/Heretic-developer-Philipp-Emanuel-Weidmann-has-died-11547929.html
2•mm321•6m ago•1 comments

Show HN: I've built contextzip, a tool to package codebase for a free AI chat

https://github.com/akadeepesh/contextzip
2•akadeepesh•7m ago•0 comments

Show HN: GitVolt 2.0, rewritten using GPUI performance improvements

https://gitvolt.com/
2•francislavoie•9m ago•0 comments

Show HN: SiftLater – self-hosted read & watch later that you actually get

https://github.com/webshark/siftlater
2•webshark79•13m ago•0 comments

I made a AI tutor, now its teaching in my uni for $0.0103 USD

2•KushAgarwal2407•14m ago•0 comments

Why Bother?

https://ninchiai.substack.com/p/why-bother
2•jbethune•16m ago•0 comments

DuckDB for Graphs

https://ladybugdb.com/duckdb-for-graphs/
2•adsharma•17m ago•1 comments

Experimenting with AI agents to make new browser engine from scratch

1•pahal-desai•19m ago•0 comments

Solving the compute crisis with physics-based ASICs

https://arxiv.org/abs/2507.10463
2•jerlendds•19m ago•0 comments

CloudConvert but Offline Using WASM

https://crunch-converter.ppmpreetham1.workers.dev/
2•ppmpreetham•24m ago•1 comments

California to require businesses to provide customers with human support

https://calmatters.digitaldemocracy.org/bills/b-29278
3•DeepLogin•25m ago•0 comments

The Rise and Fall of a Supercop

https://magazine.atavist.com/2026/the-rise-and-fall-of-a-supercop-belgium-cocaine
1•Tomte•26m ago•0 comments

Canadian moron enrages LA Fire Department, gets nabbed by ICE

https://arstechnica.com/tech-policy/2026/12/canadian-moron-enrages-la-fire-department-gets-nabbed...
3•Tomte•29m ago•0 comments

America Wants to Make More Generic Drugs. India Shows Why That's Hard

https://www.nytimes.com/2026/10/02/business/india-generic-drugs-tariffs.html
1•walterbell•30m ago•0 comments

Someone made a real game based on Simon Willison's Racoon Heist [video]

https://www.youtube.com/watch?v=xoJy1c8qBOk
2•vaviloff•30m ago•1 comments

Theodolite tells you the best place to meet your friends in NYC

https://theodolite.saw.dog/meet?p=40.68327,-73.94418,transit&p=40.73795,-73.98592,transit&p=40.77...
1•sawdog•31m ago•0 comments

Two new constant-weight code bounds, checkable in the browser

https://claude.ai/artifact/EJKRoF7H3EiEptdYbjW23k
1•cluterm•33m ago•0 comments

The world deserves a better language learning app

https://spencer.imbleau.com/blog/ai-language-learning/
3•simbleau•41m ago•1 comments

The Fate of Classics

https://acoup.blog/2026/12/04/collections-the-fate-of-classics/
1•Tomte•42m ago•0 comments

Mixpanel breached via 3rd party software

https://trust.mixpanel.com
1•b33f•43m ago•1 comments

Qwen4-35B-a3B first useful local model on my RTX3060 12 GB VRAM

https://jeena.net/qwen4-35b-a3b
3•jeena•45m ago•0 comments

I Tried to Save My Own People While I Still Needed Saving Myself

https://specialmonth.gumroad.com/l/jmwqfm
1•blessingrilwele•46m ago•1 comments

Everything Is Downstream of Ambition

https://writing.nikunjk.com/p/everything-is-downstream-of-ambition
2•kiyanwang•49m ago•0 comments

Meta's Plan to Replace the iPhone – With Andrew Bosworth and Alan Dye

https://podcasts.apple.com/us/podcast/metas-plan-to-replace-the-iphone-with-andrew-bosworth/id681...
1•Austin_Conlon•49m ago•0 comments

Show HN: Wordle for PyTorch – Daily Tensor Puzzles

https://app.tensor.golf/daily
1•singular_atomic•49m ago•0 comments

Take Asymmetric Bets

https://eriktorenberg.substack.com/p/take-asymmetric-bets
1•kiyanwang•49m ago•0 comments

Show HN: SDF World – Exploring and editing a soft 3D world in Rust and WebGPU

https://www.tomhutman.nl/sdf-world/
4•ath92•50m ago•0 comments

React Compiled to Native C++

https://twitter.com/dashersw/status/2129004555316982116
2•arbayi•56m ago•0 comments

Show HN: Duckcat – A native desktop SQL client for DuckDB

https://github.com/mengdu/duckcat
1•lanyueos•59m ago•0 comments

Agent Hub: one chat for Codex, Claude and OpenCode, with a host that delegates

https://github.com/zzy35150310/agent-hub
1•zzy35hub•59m ago•0 comments