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•11mo ago

Comments

trbndev•11mo 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•11mo ago
That link is broken. Correct link: https://t128n.github.io/writings/2025-05-02_optimizing_searc...
trbndev•11mo 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•11mo 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•11mo 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•11mo 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•11mo 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

'People's Panel' to check if UK wants controversial Digital ID will cost £630K

https://www.theregister.com/2026/04/01/peoples_panel_digital_id/
1•Bender•12s ago•0 comments

GrandCode: Achieving Grandmaster Level in Competitive Programming via Agentic RL [pdf]

https://deep-reinforce.com/grandcode.pdf
1•kathyxiao•36s ago•0 comments

Show HN: Nixidy – Kubernetes GitOps with Nix and Argo CD

https://nixidy.dev/
1•granra•1m ago•0 comments

Baidu robotaxi outage in Wuhan caused by 'system failure', police say

https://www.reuters.com/world/asia-pacific/baidu-robotaxi-outage-wuhan-caused-by-system-failure-p...
1•TechTechTech•1m ago•0 comments

Released: OKBrain – Embrace AI, but Own It

https://www.okbrain.org/
1•arunoda•1m ago•1 comments

Show HN: Cues – Clickwheel inspired video editor for iPhone

https://cues-sand.vercel.app
1•logicboard•2m ago•0 comments

/buddy in Claude Code is amazing

https://old.reddit.com/r/ClaudeAI/comments/1s9egh1/buddy_in_claude_code_is_amazing_but_please_dont/
1•empressplay•2m ago•0 comments

BetterDB – open-source Redis/Valkey migration across clouds and self-hosted

2•kaliades•2m ago•0 comments

The Blue Hearts Protocol: A portable memory file that makes your AI remember you

https://www.bluehearts.ai/
1•AshamedBadger56•2m ago•0 comments

Csp-toolkit – Python library to parse, analyze, and find bypasses in CSP headers

https://chs.us/2026/03/csp-toolkit/
1•bitscraper•3m ago•0 comments

Can you get rich off strangers? This website finds out live

https://canyougetrichoffstrangers.com/
1•timothybendt•3m ago•0 comments

Why Swedish Schools Are Bringing Back Books

https://undark.org/2026/04/01/sweden-schools-books/
1•speckx•3m ago•0 comments

Kubernetes Start Rewrite in Rust

https://github.com/kubernetes/kubernetes/pull/138147
1•SchwKatze•3m ago•1 comments

Show HN: 0XDEAD.space: A cryptographic succession protocol for the AT Protocol

https://0xdead.space/
1•ray_v•4m ago•0 comments

Apple Removes iPhone Vibe Coding App from App Store

https://gizmodo.com/apple-removes-iphone-vibe-coding-app-from-app-store-2000740084
1•randycupertino•4m ago•0 comments

AI is shifting engineering value from execution to problem selection

https://twitter.com/mikrofusion/status/2039345245872353534
1•bitmilitia•4m ago•1 comments

The Emperor Protects: A Warhammer 40k Musical

https://www.youtube.com/watch?v=59NORGNnWlQ
1•noworld•4m ago•0 comments

MP rejects Palantir's claims criticism of NHS England deal 'ideologically...

https://www.theguardian.com/technology/2026/apr/01/mp-palantir-claims-criticism-nhs-england-deal
2•chrisjj•4m ago•0 comments

Spain: From gas vulnerability to renewable resilience [pdf]

https://www.bbvaresearch.com/wp-content/uploads/2026/04/2604_from_gas_vulnerability_to_renewable_...
1•toomuchtodo•6m ago•0 comments

Show HN: Unbubble Shield – An Antivirus for Misinformation

https://www.unbubble.news/shield
1•alessandrodiano•7m ago•0 comments

Reducing Shor's algorithm T-count via Z/6Z tensor network

https://github.com/NachoPeinador/Phase-Pi-Quantum-Prior
1•NachoPeinador•7m ago•0 comments

PolitePaxos: A New Consensus Variant Where the Proposer Just Asks Nicely

http://muratbuffalo.blogspot.com/2026/04/politepaxos-new-consensus-variant-where.html
4•mad44•8m ago•0 comments

Voice cloning at 37.6x real time

https://github.com/Jransom33/Chatterbox-turbo-vllm
2•Jransom110•8m ago•0 comments

Factorio Blueprint Tools

https://christoph-frick.github.io/factorio-blueprint-tools/
1•eustoria•8m ago•0 comments

Online Sudoku

https://onlinesudoku.io
1•timlang1024•10m ago•1 comments

Show HN: A simulated computer on Mars with real orbital mechanics

https://marsputer.com/
1•kilroy123•10m ago•0 comments

Univers Mechanics

1•tech_founder•12m ago•0 comments

The Internet Is a UGC Reaction Video Now

https://www.joanwestenberg.com/the-entire-internet-is-a-ugc-reaction-video-now/
1•latexr•13m ago•0 comments

AI datacenters create heat islands around them

https://www.theregister.com/2026/04/01/ai_datacenter_heat_islands/
3•speckx•13m ago•1 comments

OpenAI Demand Sinks on Secondary Market as Anthropic Runs Hot

https://www.bloomberg.com/news/articles/2026-04-01/openai-demand-sinks-on-secondary-market-as-ant...
4•helsinkiandrew•14m ago•0 comments