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

Agent4Lease

https://agent4lease.com/
1•vytasta•1m ago•0 comments

CRM: An open-source, agentic-first CRM

https://github.com/trycompai/crm
1•handfuloflight•1m ago•0 comments

Testing LLM Concurrency on Consumer Hardware (RTX 5060)

https://ai.2it.onl/posts/concurrency-sweep/
1•MatCat•4m ago•0 comments

ESP32-C3 SuperMini antenna modification

https://peterneufeld.wordpress.com/2025/03/04/esp32-c3-supermini-antenna-modification/
1•ta988•4m ago•0 comments

CodeFloe – Alternative to GitHub

https://codefloe.com
1•mcp_•9m ago•0 comments

Static Sites Without Big Tech Hosting

https://www.souveraen-durch-architektur.de/en/artikel/statische-seiten-ohne-big-tech-hosting
1•mcp_•13m ago•0 comments

DeepSeek V4 Pro GA on GPT 5.6 Sol (xhigh) level for fraction of cost

https://twitter.com/MaxForAI/status/2083481455095959945
2•thewavelength•14m ago•1 comments

Show HN: Btfy – a blockchain that uses weather observations

https://github.com/kotagit75/btfy
2•yuzu_mikan•16m ago•1 comments

California to destroy 420000 peach trees. Del Monte closes canning facilities

https://ubirataonline.com.br/california-farmers-will-destroy-420000-peach-trees-after-del-monte-c...
1•NoRagrets•18m ago•0 comments

Federal Trade Commission vs. Hims and Hers Health, Inc. [pdf]

https://www.ftc.gov/system/files/ftc_gov/pdf/Hims-Complaint-Redacted-E-Filed.pdf
1•luu•21m ago•0 comments

Created a network that combines Hacker News and geniuses at one place

1•silisleek•22m ago•1 comments

Show HN: Run multiple Claude desktop accounts in isolated windows (Mac/Windows)

https://deckspace.dev/claude-accounts/
1•sami_builds•22m ago•0 comments

Speedrunning Software: How we 3×'d PRs in 6 months, and how you can too

https://amplitude.com/3x
1•lox•22m ago•0 comments

Software Abundance

https://twitter.com/dabit3/status/2083679999597392011
1•tosh•23m ago•0 comments

Ask HN: How do I run Android 15 on a system with Andr 12 vendors?

1•KinetiNode•24m ago•0 comments

Jc Zig

1•jczig•26m ago•0 comments

Criminal Deception in Silicon Valley

https://pubsonline.informs.org/doi/10.1287/orsc.2024.19981
1•achow•37m ago•2 comments

Pessimistically optimistic

https://lemurintheattic.mataroa.blog/p/pessimistically-optimistic/
2•xyztenet•39m ago•0 comments

Show HN: Rotating torus in terminal (but with kitty graphics protocol)

https://andreadimatteo.com/torus-v0-5.html
2•deotman•42m ago•0 comments

The House of Ellison Is on the Brink

https://www.notesfromthecircus.com/p/the-house-of-ellison-is-on-the-brink
2•paol•43m ago•0 comments

Agent-Browser – Browser Automation for AI

https://agent-browser.dev/
2•Garbage•45m ago•1 comments

An Interview with Salman Rushdie

https://brickmag.com/an-interview-with-salman-rushdie/
2•xyztenet•48m ago•0 comments

Something Weird Is Happening in Math

https://www.theatlantic.com/technology/2026/07/jacob-tsimerman-math-fields-medal-openai/688120/
4•altro•52m ago•0 comments

Provenance: What It Takes to Prove Creator Data Dignity

https://medium.com/@vektormemory/provenance-what-it-actually-takes-to-prove-creator-data-dignity-...
1•vektormemory•54m ago•0 comments

Sizeof is surprisingly difficult to parse in C

https://sebsite.pw/w/20260802-sizeof.html
2•jandeboevrie•59m ago•0 comments

The Complete History of Michael Jackson's Sonic 3 [video]

https://www.youtube.com/watch?v=xiuC-616BPQ
1•austinallegro•59m ago•0 comments

Y'all Street Launches: Texas Stock Exchange Goes Live in Dallas

https://www.foxbusiness.com/markets/yall-street-launches-texas-stock-exchange-goes-live-dallas
1•testrun•1h ago•0 comments

Why are all the amounts values negative?

https://bankstatementconverter.com/blog/posts/2026-08-02-why-are-all-amounts-negative/
3•4pkjai•1h ago•0 comments

Cardstock – dynamic OG images from one URL (no render server)

https://cardstock.dev
1•atom_builder•1h ago•0 comments

Claude-for-Hardware

https://github.com/Midstall/claude-for-hardware
1•ai_critic•1h ago•0 comments