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•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

Can we get an AI to write better?

https://www.strangeloopcanon.com/p/can-we-get-an-ai-to-write-better
1•surprisetalk•56s ago•0 comments

Gyms, Zoos, and Museums: Your documentation should be in-game [video]

https://www.youtube.com/watch?v=5PJRCz0t7yY
1•ai_critic•1m ago•0 comments

The Morse Code Hack That Made an AI Agent Spend $200k [video]

https://www.youtube.com/watch?v=UQ4pSVS_mN0
1•Joel_Mckay•2m ago•1 comments

Show HN: I built Tokenyst to stop getting shocked by Claude Code API bills

https://github.com/jher7/tokenyst
2•herrj•3m ago•0 comments

ICE to Develop Own Smart Glasses to 'Supplement' Its Facial Recognition App

https://www.404media.co/ice-plans-to-develop-own-smart-glasses-to-supplement-its-facial-recogniti...
1•SpyCoder77•3m ago•0 comments

Tiny C Compiler

https://github.com/TinyCC/tinycc
1•Koshkin•4m ago•0 comments

Metformin's real power may be in the gut

https://news.northwestern.edu/stories/2026/05/metformins-real-power-may-be-in-the-gut
1•gmays•4m ago•0 comments

End of Money: Elon Musk, 100 TW of Compute and the New Economics of Abundance

https://twitter.com/cernbasher/status/2053468797978230919
1•simonebrunozzi•4m ago•0 comments

A Chinese court sets limits on the dismissal of a worker replaced by AI

https://english.elpais.com/economy-and-business/2026-05-07/a-chinese-court-sets-limits-on-the-dis...
1•t-3•8m ago•0 comments

Ru-ST: A Rust Toolchain for Atari ST Targets

https://github.com/DominoTree/RuST
1•DominoTree•8m ago•0 comments

G = (4/3)(ℏC/m_e²)α²¹exp(−5α/2) – closed-form match to Newton's G at 1.84 ppm

https://doi.org/10.5281/zenodo.20120946
1•Oldrich333•9m ago•0 comments

Delightfully Boring, Carefully Crafted: The Story Behind Geocodio's Redesign

https://www.geocod.io/code-and-coordinates/2026-05-11-the-story-behind-geocodios-redesign
1•mjwhansen•9m ago•0 comments

Fuck off with your AI that doesn't even understand my job

https://drmollytov.smol.pub/2026-05-08
2•speckx•9m ago•0 comments

Linux kernel maintainers pitch emergency killswitch after CopyFail, Dirty Frag

https://www.theregister.com/oses/2026/05/11/linux-kernel-maintainers-pitch-emergency-killswitch-a...
1•dangle1•10m ago•0 comments

ECP: An open standard for making websites agent-friendly via Content Negotiation

https://EndpointContextProtocol.io
1•devconcierge•10m ago•0 comments

Show HN: I made an iOS app to gauge AI over-reliance and AI psychosis

https://apps.apple.com/us/app/atrophy/id6765778979
1•grahamannett•10m ago•0 comments

The Mathematica Story

https://www.wolfram.com/mathematica/scrapbook/
4•tosh•12m ago•0 comments

Dua Lipa sues Samsung for $15M for allegedly using her image to sell TVs

https://www.nbcnews.com/pop-culture/music/dua-lipa-sues-samsung-15-million-allegedly-using-image-...
4•ripe•13m ago•0 comments

Dev environment. One window. AI woven through everything

https://github.com/raiyanyahya/kit
3•PaulHoule•13m ago•1 comments

Claude Mythos Opens the Cybersecurity Pandora's Box

https://shiftmag.dev/claude-mythos-opens-the-cybersecurity-pandoras-box-9622/
3•senko•14m ago•0 comments

Jobs Are Good

https://collisteru.substack.com/p/jobs-are-good-actually
2•surprisetalk•15m ago•0 comments

I use Claude Code on large projects

https://www.localcan.com/blog/claude-code-workflow-for-large-projects
3•jarekceborski•17m ago•0 comments

NixOS and Secrets

https://isabelroses.com/blog/nixos-and-secrets/
2•birdculture•18m ago•0 comments

The Unholy Trinity: Nix Shells, SSH Config, and Claude Code

https://jakegoldsborough.com/blog/2026/nix-shells-ssh-claude-code/
2•JamesSwift•18m ago•0 comments

Unconscious Brain May Process Sound, Learn, and Predict Words Under Anesthesia

https://www.discovermagazine.com/the-unconscious-brain-may-still-process-sound-learn-patterns-and...
1•gmays•21m ago•0 comments

China's Mandate of AI

https://afraw.substack.com/p/mandate-of-ai
2•chiwilliams•22m ago•0 comments

Mae

https://runmae.ai/
2•ccharleswang•22m ago•0 comments

Checkmate in Iran

https://www.theatlantic.com/international/2026/05/iran-war-trump-losing/687094/
4•znnajdla•22m ago•0 comments

Elsevier vs. Meta: first science publisher sues over scraped research papers

https://www.nature.com/articles/d41586-026-01481-0
2•sohkamyung•23m ago•0 comments

Notifications on Calendar Changes

https://www.grepular.com/Notifications_on_Calendar_Changes
1•Brajeshwar•24m ago•0 comments