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

The 37signals Manager Playbook

https://basecamp.com/managers
1•tosh•8s ago•0 comments

Anthropic investors bet on $2T valuation in record IPO

https://www.ft.com/content/840ac156-af1c-4a82-b260-ae791072fcfa
1•pdyc•33s ago•0 comments

Why Human Giants Defy the Laws of Physics

https://thereader.mitpress.mit.edu/why-human-giants-defy-the-laws-of-physics/
1•FillMaths•2m ago•0 comments

Temperature Zero for Culture: Why Everything Is Starting to Look the Same

https://laurenleek.substack.com/p/temperature-zero-for-culture-why
1•CountHackulus•2m ago•0 comments

That's not SOC 2 compliant

https://ampcode.com/notes/thats-not-soc-2-compliant
3•tosh•5m ago•0 comments

Samsung is using Claude to verify chip designs. It's not going smoothly

https://www.neowin.net/news/samsung-is-using-claude-to-verify-chip-designs-and-its-not-going-smoo...
4•bundie•6m ago•0 comments

Codex Blocks Fast Mode with an API Key on Desktop

https://denta.co/p/codex-blocks-fast-mode-with-an-api-key
2•adenta•7m ago•1 comments

What happens when a GPU reads memory?

https://blog.doubleword.ai/what-happens-when-a-gpu-reads-memory
5•somnial•7m ago•0 comments

Show HN: Virtual Private LLM, fixed fee with no usage or token limits

https://solheim.ai
1•CodingPanda42•7m ago•0 comments

Employees are replacing themselves with AI faster than management does it

https://www.geekbeard.dev/p/nobody-pays-100k-for-curation
1•drunx•7m ago•0 comments

Brave improves protections against GPU fingerprinting

https://brave.com/privacy-updates/38-webgl-webgpu-fingerprinting-protections/
2•w0ts0n•7m ago•0 comments

Aarhus Denmark eliminating single use coffee cup with "reverse vending machines"

https://reasonstobecheerful.world/can-this-city-banish-single-use-coffee-cups/
1•Geekette•8m ago•0 comments

Frontier LLMs know more facts than they can recall

https://research.google/blog/empty-shelves-or-lost-keys-recall-is-the-bottleneck-for-parametric-f...
3•MarcoDewey•8m ago•0 comments

ApplyWise – AI tools for tailoring your CV to a specific job

https://applywise.eu/
1•peter_nemec•11m ago•0 comments

GNU Parallel

https://www.gnu.org/software/parallel/
1•thunderbong•11m ago•0 comments

Show HN: My Grok Voice Mode System Prompt

1•nomilk•12m ago•0 comments

I found moderation endpoint in JavaScript

https://nadleer.github.io/posts/flagging_post_bug/
1•adminez•12m ago•0 comments

MiniMax-Music3

https://huggingface.co/MiniMaxAI/MiniMax-Music3
2•Philpax•12m ago•0 comments

Ordinary Abundance

1•jxmorris12•12m ago•0 comments

You're Not Ready to Compete with Self Disruptive Companies

https://julienreszka.com/blog/you-re-not-ready-to-compete-with-self-disruptive-companies/
1•julienreszka•13m ago•0 comments

Decision Records

https://github.com/DecisionRecordsORG/DecisionRecords
1•ntatenyakiso•14m ago•0 comments

Getting Real

https://elijahpotter.dev/articles/getting-real
1•chilipepperhott•14m ago•0 comments

Show HN: A open-source AI-native coding agent

https://github.com/missingstudio/eva
1•missingstack•16m ago•0 comments

DeepSeek up to 1000% price hike is live

https://xcancel.com/deepseek_ai/status/2087864589895798968
6•krlx•17m ago•1 comments

Who Cares about the Shrimp?

https://joinreboot.org/p/who-cares-about-the-shrimp
1•alexwennerberg•18m ago•0 comments

An Ice Island as Big as Manhattan Just Broke Off Greenland

https://nautil.us/an-ice-island-as-big-as-manhattan-just-broke-off-greenland-1283725
1•Brajeshwar•19m ago•0 comments

Pediatricians document e-scooter injuries, deaths in children, teens

https://www.cbc.ca/news/health/e-scooters-pediatrician-survey-9.7305210
1•Teever•19m ago•0 comments

Toasted Pitta Thermodynamics

https://chatgpt.com/share/6a7de7a3-f60c-83ed-9b5b-2be08758a56c
1•quasiuna•19m ago•1 comments

How Localhost Sharing Works: Nat, Tunnels, P2P, and Relays

https://medium.com/@Koukyosyumei/how-localhost-sharing-actually-works-nat-tunnels-p2p-and-relays-...
2•syumei•20m ago•0 comments

DeepSeek Harness: Everything Is a Plugin

https://www.x-cmd.com/install/deepseek-harness/
1•Zhengqbbb•21m ago•0 comments