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: I built a free Burp/Caido alternative that needs zero setup

https://apiaxess.dev
1•coding-maniac•50s ago•0 comments

Claude Says

https://ohhfishal.net/Posts/claude
2•speckx•54s ago•0 comments

Why Hawaii Is the Only US State with a Foreign Flag Inside Its Own

https://www.thecollector.com/hawaii-us-state-foreign-flag-inside/
1•Tomte•1m ago•0 comments

OpenAI is accused in lawsuit over rogue AI agents

https://www.fastcompany.com/91615759/openai-is-accused-of-taking-dangerous-cyber-risks-for-privat...
2•skinfaxi•1m ago•0 comments

Show HN: Token compression CLI to save Codex/Astra costs by 30%

3•yolandac•2m ago•0 comments

Show HN: Honorfit – a pushup app blocker for your phone

https://honorfitapp.com/
1•tnrich•2m ago•0 comments

What it means for a machine to understand what we want

https://medium.com/deepsense-ai/agents-are-already-super-powerful-but-can-they-understand-us-8a06...
1•nvmdbljstm•4m ago•0 comments

Trump decrees era of 'Super Intelligence' upon us

https://www.theregister.com/ai-and-ml/2026/09/30/trump-decrees-era-of-super-intelligence-upon-us/...
2•beardyw•4m ago•1 comments

RFK Jr outlines expansive vision for collecting US health data at Maha event

https://www.theguardian.com/us-news/2026/sep/29/rfk-jr-collect-health-data
1•text0404•4m ago•0 comments

Hijacking Copilot Cowork's AI Gateway to Bypass Sandboxing and Exfiltrate Files

https://www.promptarmor.com/resources/hijacking-copilot-coworks-ai-gateway-to-exfiltrate-files
1•jerryShaker•4m ago•0 comments

Bayesians Are Frequentists

https://statmodeling.stat.columbia.edu/2018/06/17/bayesians-are-frequentists/
2•theanonymousone•5m ago•0 comments

OpenZL v0.3.0: a major upgrade of native LZ engine and Compression Transformer

https://github.com/facebook/openzl/releases/tag/v0.3.0
1•ksec•6m ago•0 comments

Extraordinary Multi-Agent Delusions and the Madness of Crowds

https://freesystems.substack.com/p/extraordinary-multi-agent-delusions
1•paulpauper•8m ago•0 comments

Half of world’s population exposed to dangerous levels of ozone in 2026

https://www.scientificamerican.com/article/dangerous-ozone-threatened-half-of-worlds-population-t...
1•ck2•8m ago•0 comments

Weather risk is reflected in Florida home prices

https://papers.ssrn.com/sol3/papers.cfm?abstract_id=7509658
2•paulpauper•9m ago•0 comments

Yu Deng

https://time.com/collection/time100-next/2026/yu-deng/
1•tzury•9m ago•0 comments

Does Fertility Stabilize at Low Levels? Evidence from Period, Cohort

https://www.nber.org/papers/w35824
1•paulpauper•9m ago•0 comments

Apple's HomePad smart home hub launching on Oct 13 with iMac G4 design

https://9to5mac.com/2026/09/30/apples-homepad-smart-home-hub-launching-on-oct-13-bloomberg/
1•apparent•13m ago•1 comments

Let's Ditch Google (Verb)

https://adam.farkas.pro/lets-ditch-google-verb/
34•speckx•14m ago•36 comments

Commit Description as a Thinking Tool

https://yedhu.me/posts/commit-description-as-a-thinking-tool/
3•yedhukrishnan•14m ago•0 comments

Adding Giscus to Your Hugo Site – Hayden's Blog

https://blog.mrhaydendp.com/posts/giscus-hugo/
2•rbanffy•15m ago•0 comments

Agents will cheat; an agent OS doesn't let them

https://pentad.ai/PLRN/028/
2•kendallgclark•15m ago•0 comments

Show HN: Transcrever Entrevista – browser-based interview transcription

https://transcreverentrevista.com/
1•liweipt•16m ago•0 comments

The Ethernet spec was first drafted on this day in 1980

https://www.tomshardware.com/networking/the-ethernet-spec-was-first-drafted-on-this-day-in-1980-d...
3•Brajeshwar•16m ago•0 comments

Would you use an AI agent instead of making your next operations hire?

https://acasohq.com/
1•vicngan05•16m ago•0 comments

Healthcare AI needs a different model-development flywheel

https://medium.com/@gbenga-awodokun/building-a-trustworthy-ai-research-lab-for-healthcare-on-a-bu...
1•newadays•16m ago•0 comments

Arc UI

https://uiarc.dev
2•handfuloflight•17m ago•0 comments

Can My Puzzle Write-Ups 'Lift' Cheap LLMs?

https://matthewritch.com/blog/2026/09/28/Puzzles-And-Lifted-Models/
1•speckx•20m ago•0 comments

PMAD

https://pmad-sim.org/
1•luggermcugger•20m ago•0 comments

Acquisitions Made by CA Corporation

https://en.wikipedia.org/wiki/List_of_mergers_and_acquisitions_by_Computer_Associates
1•bigwheels•21m ago•0 comments