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•8mo ago

Comments

trbndev•8mo 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•8mo ago
That link is broken. Correct link: https://t128n.github.io/writings/2025-05-02_optimizing_searc...
trbndev•8mo 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•8mo 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•8mo 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•8mo 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•8mo 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

Tired of messy GitHub PRs? Chrome extensions enforce descriptions and size limit

https://chromewebstore.google.com/detail/pr-description-guard/idfeaafjnjnfknjbfbpnlgphjhohfpah
1•afrasiyabhaider•39s ago•1 comments

Show HN: 21st.fund, an AI tool to discover grants and non-dilutive funding

https://www.21st.fund/
1•udit_50•1m ago•0 comments

Simple Browser AI

https://simplebrowserai.pagedrop.io/
1•antidotumagen•3m ago•0 comments

Email obfuscation: What works in 2025?

https://spencermortensen.com/articles/email-obfuscation/
1•blackstache•6m ago•0 comments

At least 5k dead in Iran unrest, official says

https://www.reuters.com/business/media-telecom/iranian-official-says-verified-deaths-iran-protest...
1•wslh•6m ago•0 comments

How AI makes for better software (& companies)

https://gmays.com/how-ai-makes-for-better-software-companies/
1•gmays•9m ago•0 comments

Our top Core Web Vitals recommendations for 2023

https://web.dev/articles/top-cwv
1•Tomte•10m ago•0 comments

Fear and Loathing of the English Passive (2010)

https://www.lel.ed.ac.uk/~gpullum/passive_loathing.html
2•Tomte•10m ago•1 comments

Show HN: Keepthat.link – rudimentary, no-frills bookmarks

https://www.keepthat.link/
1•e_xyz•12m ago•0 comments

Childhood Neighbors Influence Occupation Choice [pdf]

https://drive.google.com/file/d/17Pq41ZzfwEdm-YrmWCMkvU0E4T-SXzPp/view
1•elsewhen•13m ago•0 comments

Show HN: Zsweep – Play Minesweeper using only Vim motions

https://zsweep.com
1•oug-t•16m ago•4 comments

Nuclear Weapons Are Now ESG Compliant

https://news.slashdot.org/story/26/01/14/144240/nuclear-weapons-are-now-esg-compliant
1•7777777phil•17m ago•0 comments

The Truth Architecture – Why Web3 Is the Only Way Out

https://aegistrail.github.io/posts/Why-Web3-is-the-only-way-out/
2•patronage•18m ago•0 comments

Humans are taking our jobs!

https://humanthreat.xyz/
2•modinfo•19m ago•0 comments

Predator Spyware Turns Failed Attacks into Intelligence for Future Exploits

https://www.securityweek.com/predator-spywares-granular-anti-analysis-features-exposed/
1•smurda•20m ago•0 comments

Engineering a reusable insulin patch pump

2•u-pump•21m ago•0 comments

The Harvesting of Lettuce

https://sftw.substack.com/p/310-to-yuma
2•HR01•22m ago•0 comments

Seamless codebase-relevant context enrichment for prompts

https://github.com/arterialist/magic-prompt
1•Arterialist•22m ago•0 comments

Is Sienna Rose AI? All Signs Point to 'Yes'

https://www.rollingstone.com/music/music-news/sienna-rose-ai-artist-real-1235499068/
1•geox•23m ago•0 comments

With AI coding we can just make our own editors

https://github.com/posix4e/minivim
2•alexnewman•28m ago•2 comments

Show HN: StayUp – a background desktop app for activity-based time trackers

1•delusdev•29m ago•0 comments

How to Build an AI Agent Declaratively with Terraform

https://chatbotkit.com/tutorials/how-to-build-an-ai-agent-declaratively-with-terraform
1•_pdp_•29m ago•0 comments

Perelman's Proof of the Poincar E Conjecture: A Nonlinear PDE Perspective

https://arxiv.org/pdf/math/0610903
2•tzury•35m ago•0 comments

Show HN: SMath Units, RCPC Initiative

https://github.com/JTRSoftware/Project_RCPC/tree/main/ReadyToShare/sMath
2•jtr87•37m ago•0 comments

Blue on X: "unrot your brain"

https://twitter.com/bluewmist/status/2012755834636533893
2•bilsbie•38m ago•0 comments

Show HN: Open-source confusion matrix generator for ML models

1•pareshrnayak•38m ago•1 comments

Ljudmila

https://wiki.ljudmila.org/Main_Page
2•jruohonen•38m ago•0 comments

The real technical debt is semantic decay and only platforms can stop it

https://unvarnishedgrady.substack.com/p/on-platforms-iii-the-physics-of-meaning
4•ecurb•38m ago•0 comments

Show HN: 13MB full-text site search

https://www.asciimx.com/log/site-search/
1•kovac•39m ago•0 comments

Coding with LLMs can still be fun

https://www.codingwithjesse.com/blog/coding-with-llms-can-still-be-fun/
1•CodingWithJesse•40m ago•0 comments