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

Seedream 5.0 Lite – Deeper Thinking, More Accurate Generation

https://seed.bytedance.com/en/blog/deeper-thinking-more-accurate-generation-introducing-seedream-...
1•BoorishBears•2m ago•0 comments

I Built a Free,Online Heart Rate Monitor – Could You Help Me Improve It?

https://www.heartratetap.com/
1•CloudHu•8m ago•1 comments

RetEx: Midnight Hackathon in Vienna

https://mathiasd.fr/p/midnight/
1•mathiasdpx•13m ago•0 comments

Ring owners are returning their cameras

https://www.msn.com/en-us/lifestyle/shopping/ring-owners-are-returning-their-cameras-here-s-how-m...
2•c420•14m ago•0 comments

The Void

https://github.com/nostalgebraist/the-void/blob/main/the-void.md
1•stickynotememo•15m ago•0 comments

How I Learned to Stop Worrying and Love OpenClaw

https://jpreagan.com/p/how-i-learned-to-stop-worrying-and-love-openclaw
1•jpreagan•16m ago•1 comments

Why Hokkaido Is the New Taiwan

https://twitter.com/james_riney/status/2021721761013018643
2•MrBuddyCasino•21m ago•1 comments

Show HN: Phonchain – A Mobile-Native Blockchain Secured by Smartphones (Pop-S4)

1•PHONCOIN•23m ago•0 comments

Show HN: Busca – the fuzzy ripgrep fast code explorer

https://github.com/rokyed/busca
1•rokyed•26m ago•0 comments

Manage Ralph loops in a DAG pipeline with a Docker-like CLI

https://github.com/mj1618/swarm-cli
1•mj2718•30m ago•1 comments

Who discovered grokking and why is the name hard to find?

1•asmodeuslucifer•32m ago•0 comments

File shareing going viral due to fast, free and no login friction. Try it now

https://www.styloshare.com
1•stylofront•33m ago•1 comments

The Future of AI Slop Is Constraints

https://askcodi.substack.com/p/the-future-of-ai-slop-is-constraints
1•himalayansailor•35m ago•0 comments

Show HN: Seedance AShow HN: Seedance AI Video Generation (Next.js, Drizzle)

https://seedanceai2.org/
1•xuyanmei•40m ago•0 comments

7-Zip 26.00

https://sourceforge.net/p/sevenzip/discussion/45797/thread/a1f7e08417/
1•tokyobreakfast•41m ago•0 comments

First Vibecoded AI Operating System

https://github.com/viralcode/vib-OS
3•amichail•44m ago•0 comments

You're Building Petri Nets. You're Just Building Them Badly

https://joshtuddenham.dev/blog/petri-nets/
1•joshuaisaact•50m ago•0 comments

A recursive and authoritative DNS resolver from scratch in Go

1•Jyotishmoy•54m ago•1 comments

Three Inverse Laws of AI and Robotics

https://susam.net/inverse-laws-of-robotics.html
3•susam•55m ago•0 comments

Quantum Phenomena in Biological Systems(2024)

https://www.frontiersin.org/journals/quantum-science-and-technology/articles/10.3389/frqst.2024.1...
1•rolph•56m ago•0 comments

Ask HN: Would Steve Jobs Get into YC?

1•ipnon•56m ago•1 comments

One-click deploy OpenClaw bot on runclaw.com

https://www.runclaw.com/
1•bear2024•56m ago•0 comments

Why Audio Is the One Area Small Labs Are Winning

https://www.amplifypartners.com/blog-posts/arming-the-rebels-with-gpus-gradium-kyutai-and-audio-ai
2•rocauc•57m ago•0 comments

A nice way to share articles

https://www.justthearticleplease.com/
1•JnthnMyrs•1h ago•1 comments

WinClaw: Windows-native AI assistant with Office automation and skills

https://github.com/itc-ou-shigou/winclaw
1•winclaw-dev•1h ago•1 comments

It's Yours

https://inventingthefuture.ghost.io/its-yours/
1•hellojohnbuck•1h ago•1 comments

A polymerase ribozyme that can synthesize itself

https://www.biorxiv.org/content/10.1101/2024.10.11.617851v1
2•eq_ind•1h ago•0 comments

Become a Gigachad

https://www.gigachadify.com/
2•jespinoza17•1h ago•2 comments

MMAcevedo aka Lena by qntm

https://qntm.org/mmacevedo
3•stickynotememo•1h ago•0 comments

Unread emails and 20M database errors cause civil service

https://www.computerweekly.com/news/366639026/Thousands-of-unread-emails-and-20-million-database-...
1•latein•1h ago•0 comments