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

Comments

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

Show HN: GitAgent – An open standard that turns any Git repo into an AI agent

https://www.gitagent.sh/
1•sivasurend•58s ago•0 comments

Doom Running on Terminal

https://twitter.com/raphamorims/status/2032226817117937932
1•darkberry•3m ago•0 comments

Show HN: Vim-gramaculate: Vim grammar checker, powered by AI

https://github.com/ahalbert/vim-gramaculate
1•ahalbert4•5m ago•0 comments

Show HN: BirdDex – Pokémon Go, but with real life birds

https://birddex.co/
1•stellay•5m ago•0 comments

We Finally Know How Bumblebee Queens Can Survive Underwater for Days

https://www.sciencealert.com/we-finally-know-how-bumblebee-queens-can-survive-underwater-for-days
1•bookofjoe•5m ago•0 comments

Show HN: Cartero – A personalized, extensible news aggregator

https://github.com/dracarys18/cartero
1•dracarys18•9m ago•0 comments

Xbox Gaming Copilot (Beta)

https://www.xbox.com/en-US/gaming-copilot
1•debo_•9m ago•0 comments

KlongPy: PyTorch Back End and Autograd

http://www.klongpy.org/torch_backend/
1•tosh•9m ago•0 comments

The Great Rotation from Bits to Atoms

https://deadneurons.substack.com/p/the-great-rotation-from-bits-to-atoms
2•nr378•10m ago•0 comments

New chip lets robots see in 4D by tracking distance and speed simultaneously

https://techxplore.com/news/2026-03-chip-robots-4d-tracking-distance.html
1•Brajeshwar•14m ago•0 comments

A New Bigfoot Documentary Helps Explain Our Conspiracy-Minded Era

https://www.wsj.com/arts-culture/film/a-new-bigfoot-documentary-helps-explain-our-conspiracy-mind...
1•fortran77•14m ago•1 comments

Ask HN: How do you use Coding Agents/CLIs out of coding?

1•arbayi•18m ago•0 comments

Show HN: QKD eavesdropper detector using Krylov complexity-open source Python

https://github.com/quantumspiritresearch-crypto/qkd-krylov-detector
1•QuantumSpirit•19m ago•0 comments

What If We Stopped Chasing Fast Hardware and Optimized for Existing Hardware?

https://bensantora.com/posts/resourceful-computing-old-hardware/
1•taskset•19m ago•1 comments

Hockey Puck Mouse = Awful

https://worldofmatthew.com/videos/applemouse/
2•worldofmatthew•20m ago•0 comments

Show HN: ctk-applet – run Cut-the-Knot Java applets locally

https://github.com/joseluis/ctk-applet
1•joseluis•22m ago•0 comments

Lies I was Told About Collaborative Editing, Part 2: Why we don't use Yjs

https://www.moment.dev/blog/lies-i-was-told-pt-2
1•mvelbaum•25m ago•0 comments

AMD Hints at Big FP64 Increases in MI430X GPU as Ozaki Underwhelms

https://www.hpcwire.com/2026/03/13/amd-hints-at-big-fp64-increases-in-mi430x-gpu-as-ozaki-underwe...
4•rbanffy•25m ago•0 comments

Meta planning layoffs as AI costs mount: Reuters

https://www.cnbc.com/2026/03/14/meta-planning-sweeping-layoffs-as-ai-costs-mount-reuters.html
7•nova22033•26m ago•0 comments

Meta Outlines New MTIA Accelerator Roadmap for Its Next-Gen AI Compute Mix

https://www.servethehome.com/meta-outlines-new-mtia-accelerator-roadmap-for-its-next-gen-ai-compu...
2•rbanffy•27m ago•0 comments

Understanding OpenClaw by Building One

https://github.com/czl9707/build-your-own-openclaw
1•zane__chen•29m ago•3 comments

Show HN: Got tired of AI copilots just autocompleting, and built Glass Arc

3•Conquer01•30m ago•0 comments

Show HN: Pi Patterns: generate Images from slices of π

https://pi.yassi.dev/
1•yassi_dev•31m ago•0 comments

EyeDAR tech could give self-driving cars expanded radar perception

https://newatlas.com/automotive/eyedar-expanded-radar-perception/
2•Brajeshwar•33m ago•1 comments

Dylan Patel – Deep dive on the 3 big bottlenecks to scaling AI compute

https://www.dwarkesh.com/p/dylan-patel
3•kerim-ca•34m ago•0 comments

When building becomes cheaper than specifying, everything changes

https://thepmwhobuilds.substack.com/p/when-building-becomes-cheaper-than
2•ffernandesclaro•35m ago•3 comments

Show HN: Fastify's slow startup is an AJV problem – here's a drop-in fix

1•greatvenerable•37m ago•0 comments

Show HN: Lean-pq a typesafe PostgreSQL connector for lean

https://github.com/typednotes/lean-pq
1•ngrislain•37m ago•0 comments

Show HN: Built an AI ad generator and ran $9K of FB ads with it

https://admakeai.com/
3•mesmertech•37m ago•0 comments

MacBook Neo: on-screen camera indicator light

https://support.apple.com/guide/security/mac-on-screen-camera-indicator-light-sec75a2d237d/web
1•tosh•37m ago•0 comments