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

Terence Tao is your guide to what underpins reality

https://www.nature.com/articles/d41586-026-03720-w
1•digital55•59s ago•0 comments

Copy Docker/OCI images between any two container registries. No Docker required

https://github.com/CurtMeadows/straddler
1•SEJeff•1m ago•0 comments

Modernised 64-bit port of Inferno, designed for testing AI agents

https://infernode.io/
1•lproven•1m ago•1 comments

The New York Times warns photographers not to update Photoshop over AI features

https://www.theverge.com/ai-artificial-intelligence/1041227/the-new-york-times-warns-photographer...
1•thm•2m ago•0 comments

What If Assembly Had a Type? Building Memory-Safe RISC-V Assembly with Lean 4

https://medium.com/@Koukyosyumei/what-if-assembly-had-a-type-system-building-memory-safe-risc-v-a...
1•syumei•2m ago•0 comments

MCP servers can now ship skills, run tasks, and more with Claude

https://claude.com/resources/articles/skills-over-mcp-tasks-and-more
2•saikatsg•2m ago•0 comments

Show HN: Two Divinations – Beautiful I Ching, Tarot & Greco-Egyptian Horoscope

https://www.twodivinations.com/
1•dbspin•3m ago•0 comments

The enterprise guide to securing coding agents

https://claude.com/resources/articles/enterprise-guide-to-securing-coding-agents
1•saikatsg•3m ago•0 comments

Quality IMAP, Part 2: Mailbox Concurrency

https://aerogramme.deuxfleurs.fr/blog/2026-quality-imap-part-2/
1•birdculture•4m ago•0 comments

A live peek inside your LLM inference engine (SGLang, vLLM) as it runs

https://gauravjain14.github.io/inference-observe/
1•gauravjain14•4m ago•0 comments

The Epochal Time Portal

https://epochal.com/
7•franklsf95•4m ago•0 comments

Work in Progress: Processing 5.0 R&D

https://processingfoundation.org/blog/work-in-progress-processing-5/
1•mariuz•6m ago•0 comments

Hush UI A component library for HTML and CSS

https://hush.kardashevcatalyst.com/
1•cjhisey•7m ago•0 comments

EU in Talks with Apple over Barriers to Rival iPhone Browsers

https://www.macrumors.com/2026/11/24/eu-talks-with-apple-over-rival-iphone-browsers/
4•tosh•7m ago•0 comments

An ethical AI does not exist

https://humancode.us/2026/11/22/an-ethical-ai-does-not-exist
1•speckx•8m ago•0 comments

The Nvidia Scandal

https://www.foreignaffairs.com/china/real-nvidia-scandal-kilcrease-chilukuri
1•worik•8m ago•0 comments

The Proof of Effort

https://blog.tadzik.net/the-proof-of-effort.html
3•domm•9m ago•0 comments

Diagnóstico Inicial: Vocês Chamam Isso de CivilizaçãO?

https://skynet.blog.br/diagnostico-inicial-voces-chamam-isso-de-civilizacao
1•singularis•10m ago•0 comments

Defective Accelerationism

https://www.wheresyoured.at/defective-accelerationism/
1•7777777phil•10m ago•0 comments

Show HN: Upronix – Free uptime monitoring and visual status page builder

https://upronix.dev
1•slxca•12m ago•0 comments

Go Without Wires: TinyGo on ESP32 [video]

https://www.youtube.com/watch?v=Vi5M-uD2x_U
1•todsacerdoti•13m ago•0 comments

Taking a Password Joke Seriously

https://www.johndcook.com/blog/2026/11/24/password-joke/
1•speckx•13m ago•0 comments

The human cost of the electric vehicle boom is at the center of Congo lawsuit

https://text.npr.org/nx-s1-6042912
1•mooreds•14m ago•0 comments

Jensen Huang Disclosed More Affairs to Board Before Reinstatement, Report Says

https://www.forbes.com/sites/siladityaray/2026/11/24/nvidia-ceo-jensen-huang-disclosed-more-affai...
3•realjensenhuang•15m ago•0 comments

VP and NVP are different [pdf]

https://raw.githubusercontent.com/openai/math/refs/heads/main/preprints/VP-and-VNP-are-different-...
1•nathcd•16m ago•3 comments

Tibetan Spell Checker

https://www.butterdots.com/spellcheck
1•mooreds•16m ago•0 comments

GTA VI PortWatch

https://portwatch-vi.xyz/
1•luu•17m ago•0 comments

DuckDB 2.0.1 Is Out: Upgrade Now or Wait for 2.0.2?

https://query.farm/blog/duckdb-2-0-1-upgrade-now-or-wait-for-2-0-2/
1•rustyconover•17m ago•0 comments

Regidi – Identity and Delegated Authorization for AI Agents

https://zenodo.org/records/24469990
1•silrgaleano•17m ago•0 comments

Ask HN: What's a tool or visualization that you wish existed?

1•nadis•18m ago•0 comments