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

Comments

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

Open-source proxy that lets the Claude Code CLI run on Databricks Model Serving

1•vishalveera•2m ago•0 comments

My Working Thoughts

https://www.bramadams.dev/working-thoughts/
1•_bramses•2m ago•0 comments

Ask HN: Best tricks to make a PWA feel more native?

1•julienreszka•5m ago•0 comments

Hey Students, Considering Majoring in Sociology?

https://www.ihatesociology.com/stephen-turner
1•Tomte•8m ago•0 comments

Life, Work, Death and the Peasant

https://acoup.blog/2025/07/11/collections-life-work-death-and-the-peasant-part-i-households/
1•tmoravec•10m ago•1 comments

Super Mario Tune as a Fidget Toy

https://hackaday.com/2025/04/04/3d-print-and-play-the-super-mario-tune-as-a-fidget-toy/
1•ninju•11m ago•0 comments

FunKey is a Mac app that adds mechanical keyboard sounds to your MacBook

https://apps.apple.com/us/app/funkey-mechanical-keyboard-app/id6469420677?mt=12
1•mraduldeodhiya•13m ago•0 comments

The online index of mathematical databases

https://mathbases.org/
1•OgsyedIE•13m ago•0 comments

Think First, AI Second

https://every.to/p/think-first-ai-second
1•Garbage•13m ago•0 comments

Apple Bleeding Talent to OpenAI

https://www.macrumors.com/2025/12/05/apple-bleeding-talent-to-openai/
2•mgh2•21m ago•0 comments

Show HN: A Markdown document manager in Rust

https://www.seychl.app/
2•ranys•23m ago•0 comments

Browser history as a screening tool for sleep patterns

https://github.com/Circadiaware/webactogram
1•amadeuspagel•26m ago•0 comments

Winner Takes It All?

https://www.thatwastheweek.com/p/winner-takes-it-all-or-the-great
1•kteare•26m ago•0 comments

Why do we become mathematicians?

https://maa.org/math-values/why-do-we-become-mathematicians/
2•the-mitr•28m ago•0 comments

Belgium's Latest Pirate Site-Blocking Order Spares DNS Providers

https://torrentfreak.com/belgiums-latest-pirate-site-blocking-order-spares-dns-providers/
3•gslin•29m ago•0 comments

Show HN: Morph-AI-Era – Turn CSV files into interactive dashboards instantly

https://morph-ai-era.online
1•prajjawal_123•30m ago•0 comments

An Interview with freeCodeCamp Founder Quincy Larson

https://lijie2000.substack.com/p/an-interview-with-quincy-larson-from
1•TheRealAlex123•32m ago•0 comments

Jean Sibelius Finlandia (1899)

https://www.laphil.com/musicdb/pieces/354/finlandia
1•krbaccord94f•42m ago•1 comments

Laughing Gas Can Offer Immediate Relief from Depression, Study Finds

https://www.sciencealert.com/laughing-gas-can-offer-immediate-relief-from-depression-study-finds
2•thunderbong•42m ago•3 comments

Krita – open-source Painting Program

https://krita.org/en/
1•rammy1234•42m ago•0 comments

The Her Talking Phone May Have Arrived–She Speaks Chinese

https://www.scientificamerican.com/article/bytedance-launches-doubao-real-time-ai-voice-assistant...
1•defvar•44m ago•0 comments

Show HN: Drop – Self-destructing encrypted messages

https://privsen.com/secret-message
1•privsen•45m ago•3 comments

AI – For Building a Transformer Model

1•Keerthikamathi•53m ago•0 comments

Wiskerwood: Establish a home for your industrious mice

https://hoodedhorse.com/games/whiskerwood/
2•doener•56m ago•0 comments

How to get the launchpad back in macOS 26

https://www.launchie.app
1•nickfthedev•1h ago•0 comments

Doo – 0.2.0 Alpha Release

https://github.com/nynrathod/doolang
2•nynrathod•1h ago•1 comments

'The Fall of Icarus': How the remarkable shot was captured

https://www.cnn.com/2025/12/05/science/fall-of-icarus-skydiver-image
1•ashishgupta2209•1h ago•1 comments

Automate GEO tracking by turning the browser into an API

https://twitter.com/rjchint/status/1997408201306931633
1•arjunchint•1h ago•1 comments

Making a Programming Language

https://github.com/Damny12/hopper
1•Damny12•1h ago•0 comments

rsyslog Goes AI First

https://www.rsyslog.com/rsyslog-goes-ai-first-a-new-chapter-begins/
1•pabs3•1h ago•0 comments