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•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

Explainer of the most widely used zero-knowledge proof system

https://blog.zksecurity.xyz/posts/groth16/
1•baby•4m ago•0 comments

Kore: Binary File Format Optimized for Modern Data Systems (Open Source)

https://github.com/arunkatherashala/Kore
2•arunkore2026•10m ago•1 comments

Zerostack v1.3.4 released – Lightweight Unix-inspired coding agent

https://crates.io/crates/zerostack/1.3.4
10•gidellav•16m ago•0 comments

AI Model Links Tumor Mutations to Treatment Response

https://today.ucsd.edu/story/ai-model-links-tumor-mutations-to-treatment-response
1•gmays•17m ago•0 comments

Design Engineering Magazine

https://interfaces.dev/
3•hnhsh•18m ago•1 comments

Meteor explodes off coast of Massachusetts, causing loud boom – CBS Boston

https://www.cbsnews.com/boston/news/massachusetts-coast-meteor-explodes-loud-boom/
3•rbanffy•19m ago•0 comments

I am against GenAI and everything it stands for

https://lpcvoid.com/blog/0018_why_i_am_against_genai/index.html
4•birdculture•20m ago•0 comments

Meet The Computer Addicts - BBC Newsnight (1983) [video]

https://www.youtube.com/watch?v=jbu0kmCeLSI
3•indigodaddy•21m ago•0 comments

Ask HN: Instead of autofocus glasses, why not have auto "focus mode" glasses?

1•amichail•22m ago•0 comments

wolfSSL releases a new product; wolfCOSE a zero alloc C embbedded COSE stack

https://github.com/wolfSSL/wolfCOSE
2•aidangarske•22m ago•0 comments

Domain Expertise Has Always Been the Real Moat

https://www.brethorsting.com/blog/2026/05/domain-expertise-has-always-been-the-real-moat/
3•aaronbrethorst•23m ago•0 comments

Stream2LLM: Overlap Context Streaming and Prefill for Reduced TTFT

https://rajveerbachkaniwala.com/blog/2026/05/19/stream2llm-overlap-context-streaming-prefill-redu...
1•rajveerb•26m ago•0 comments

Show HN: Helm plugin for working with OCI-based Helm charts

https://github.com/esnet/helm-oci
1•netops2devops•27m ago•0 comments

Mystery company accidentally blew $500M on Claude AI in a single month

https://www.tomshardware.com/tech-industry/artificial-intelligence/mystery-company-accidentally-b...
5•timpera•28m ago•1 comments

Quantum teleportation coexisting with classical communications in optical fiber

https://opg.optica.org/captcha/(S(nmuk2ouzdmxondgvnt5afvha))/?guid=666B91E6-9649-4D62-A24F-6DE46B...
1•SVI•29m ago•0 comments

The Sovereign Operator

https://g8e.ai/blog/the-sovereign-operator
1•mooreds•30m ago•0 comments

The most 2020s art ever made

https://www.theargumentmag.com/p/the-most-2020s-art-ever-made
2•paulpauper•33m ago•0 comments

Amazon Thinks Future of Data Centers Depends on a Technical Problem It Solved

https://www.wired.com/story/amazon-thinks-the-future-of-data-centers-depends-on-a-technical-probl...
1•jerhewet•33m ago•0 comments

Google's AI Is Confused About Fish and the Days of the Week

https://opus.ing/p/google-ai-really-confused-about-fish-days-week
1•_____k•34m ago•1 comments

Rivian explains why they won't adopt Apple CarPlay

https://www.macrumors.com/2026/05/28/rivian-software-chief-on-carplay/
4•andsoitis•34m ago•2 comments

Testing products on AI-generated buyers

https://www.bain.com/insights/synthetic-customers-earn-their-stripes/
1•paulpauper•35m ago•0 comments

Soft Serve and Soft Power

https://listomania.substack.com/p/soft-serve-and-soft-power
1•paulpauper•36m ago•0 comments

Secure GCP Auth in Bitbucket Pipelines

https://emilytburak.net/posts/bitbucket-pipes-gap-gcp-oidc/
1•mooreds•36m ago•0 comments

US State Privacy Legislation Tracker

https://iapp.org/resources/article/us-state-privacy-legislation-tracker
1•mooreds•38m ago•0 comments

White House aliens website is scary

https://www.whitehouse.gov/aliens/
3•brisket_bronson•39m ago•0 comments

Everything We Know About OpenAI's Planned iPhone Rival

https://www.macrumors.com/2026/05/29/everything-we-know-about-openai-iphone-rival/
3•andsoitis•39m ago•0 comments

Dusklight – GC Twilight Princess Decompiled

https://twilitrealm.dev/
4•shepherdjerred•40m ago•0 comments

The First Killer App

https://dl.acm.org/doi/pdf/10.1145/2509224
1•jruohonen•42m ago•0 comments

Why is this text everywhere? (Lorem Ipsum) [video]

https://www.youtube.com/watch?v=kL1PDqzqhM4
2•fanfantm•43m ago•0 comments

Zerostack v1.3.4 released – Lightweight Unix-like coding agent

https://github.com/gi-dellav/zerostack/releases/tag/v1.3.4
2•gidellav•45m ago•0 comments