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

Comments

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

Institute of Mentalphysics

https://www.atlasobscura.com/places/institute-mentalphysics
1•andsoitis•5m ago•0 comments

Openclaw.net

https://github.com/clawdotnet/openclaw.net
1•scopeT86•6m ago•1 comments

People Loved the Dot-Com Boom. The A.I. Boom, Not So Much

https://www.nytimes.com/2026/02/21/technology/ai-boom-backlash.html
2•1vuio0pswjnm7•6m ago•0 comments

Meta has an answer to YouTube Face

https://lolware.net/blog/meta-answer-youtube-face/
1•technion•12m ago•0 comments

Japanese Woodblock Print Search

https://ukiyo-e.org/
4•curmudgeon22•12m ago•0 comments

What the F are you guys talking about?

1•diametricsound•13m ago•0 comments

Automatically Learning Skills for Coding Agents

https://gepa-ai.github.io/gepa/blog/2026/02/18/automatically-learning-skills-for-coding-agents/
1•handfuloflight•16m ago•0 comments

Why has GitHub billing support been unresponsive for weeks?

1•huabin•21m ago•0 comments

Meridian Raises $17M for AI Agents That Build Financial Models (A16Z-Led)

https://theagenttimes.com/articles/meridian-raises-17m-to-let-agents-build-financial-models-that-...
1•Ross00781•30m ago•0 comments

Fast Emery Upgrades With pebble-scalable

https://blog.chrislewis.me.uk/?post=2026-02-01-Fast-Emery-Upgrades-With-Pebble-Scalable
1•yablak•31m ago•0 comments

Show HN: Subscribable calendar feeds for astronomical events

https://github.com/gardner/sunlight
1•gardnr•33m ago•0 comments

Help me pick a thumbnail, swipe right to vote

https://ytvote.com/Vote/ForMe/45pU5
1•riley-i•34m ago•0 comments

CL-Kawa: A Turducken of Programming Languages

https://atgreen.github.io/repl-yell/posts/cl-kawa/
1•todsacerdoti•34m ago•0 comments

Alloy: JavaScript framework for building Pebble smartwatch apps

https://developer.repebble.com/guides/alloy/
1•patrikcsak•37m ago•0 comments

The tenacious brain: Anterior mid-cingulate contributes to achieving goals

https://www.sciencedirect.com/science/article/abs/pii/S0010945219303326
1•samuel246•39m ago•0 comments

We Fixed YAML Comment Preservation in Ruby (and Why We Sponsored It)

https://blog.discourse.org/2026/02/how-we-fixed-yaml-comment-preservation-in-ruby-and-why-we-spon...
1•todsacerdoti•40m ago•0 comments

Ask HN: Claude crashed? Am I playing for the tokens for it to fix itself?

1•jrs235•40m ago•1 comments

Selling AI Software Isn't as Easy as It Used to Be

https://www.wsj.com/articles/selling-ai-software-isnt-as-easy-as-it-used-to-be-4933e401
1•1vuio0pswjnm7•42m ago•0 comments

Benchmarks: Go's FFI is finally faster then GDScript (and Rust?)

https://github.com/quaadgras/graphics.gd/discussions/277
1•Splizard•44m ago•0 comments

Your Disk Just Lied to You – and Your Checksums Said Everything Was Fine

https://medium.com/@jingyuzhou/your-disk-just-lied-to-you-and-your-checksums-said-everything-was-...
1•tanelpoder•45m ago•0 comments

AI Agent Achieves 1000 Turns Without Drift or Loss of Coherence [pdf]

https://github.com/Rychek4/Pattern_Project_Public/blob/main/AI%20Agent%20Achieves%201000%2B%20Tur...
1•Rychek4•48m ago•1 comments

Meta cuts staff stock awards for a second straight year

https://www.ft.com/content/071d5503-b3dc-46bc-bc55-28f92dbdd42a
3•1vuio0pswjnm7•53m ago•1 comments

Show HN: ThreadKeeper – Save and restore Windows working context with Ollama

https://www.thethread-keeper.com/en/index.html
2•tatsube•53m ago•0 comments

Fix Your Tools

https://ochagavia.nl/blog/fix-your-tools/
3•todsacerdoti•56m ago•1 comments

Show HN: Slack as an AI Coding Remote Control

https://github.com/DiscreteTom/juan
2•DiscreteTom•58m ago•0 comments

Giant stop killing games updates 2026 [video]

https://www.youtube.com/watch?v=CNVKqRDalLo
2•st_goliath•1h ago•0 comments

Sexting study reveals an "alarming" reality for teens who share explicit images

https://www.psypost.org/new-sexting-study-reveals-an-alarming-reality-for-teens-who-share-explici...
2•gnabgib•1h ago•0 comments

Palantir's secret weapon isn't AI – it's Ontology. An open-source deep dive

https://github.com/Leading-AI-IO/palantir-ontology-strategy
23•leading-AI•1h ago•13 comments

Biometric injection attacks, AI-powered fake IDs move the goalposts

https://www.biometricupdate.com/202602/biometric-injection-attacks-ai-powered-fake-ids-move-the-f...
3•WaitWaitWha•1h ago•0 comments

FULU Bounties – Ring Video Doorbells

https://bounties.fulu.org/bounties/ring-video-doorbells
4•WaitWaitWha•1h ago•1 comments