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

The platform for people who want to change the world

https://www.everythinghuman.org/
1•brianye•1m ago•0 comments

DiLLeMma

https://media1.tenor.com/m/auIHDOEiIFoAAAAd/dumb-thats-dumb.gif
1•r0x0r007•4m ago•1 comments

Show HN: Tessera Designer – Generate beautiful, seamless patterns

https://apps.apple.com/us/app/tessera-designer-patterns/id6756501042?mt=12
1•SwiftedMind•4m ago•0 comments

I wrote a book about how V8 JavaScript Engine works behind the scenes. its free

https://www.amazon.com/dp/B0GBTG13JX
1•deepintodev•4m ago•1 comments

Stabilising grid frequency with domestic batteries

https://www.axle.energy/blog/frequency
1•archydeb•8m ago•0 comments

Does Yann LeCun's Move Signal a Silicon Valley → Europe AI Shift?

https://aitrendsforeurope.substack.com/p/separating-signal-from-noise-ai-trends-323
1•ju2ez•9m ago•1 comments

RealTime IRL – Track your favorite IRL streamers in real time

https://rtirl.com/
1•nomilk•9m ago•1 comments

Creating an Alpine Linux Repository

https://www.erianna.com/creating-a-alpine-linux-repository/
1•sipofwater•13m ago•1 comments

Bitchat

https://bitchat.free/
1•mikecarlton•18m ago•0 comments

YD Shomer – Runtime SQL validator for PHP with security suggestions

https://github.com/yd-shomer/php-shomer
1•hm-iti26•18m ago•1 comments

If Calendly had gorgeous video backgrounds

https://timetuna.com
1•pavelk2•18m ago•1 comments

UNIX Fourth Edition

http://squoze.net/UNIX/v4/README
2•dcminter•19m ago•1 comments

Bitchat: Jack Dorsey's Bluetooth Messaging Experiment

https://42zero.org/bitchat-jack-dorseys-bluetooth-messaging-experiment/
1•mikecarlton•19m ago•0 comments

Font with Built-In Syntax Highlighting (2024)

https://blog.glyphdrawing.club/font-with-built-in-syntax-highlighting/
1•california-og•19m ago•0 comments

We Just Unredacted the Epstein Files

https://krassencast.com/p/breaking-we-just-unredacted-the-epstein
4•Kaibeezy•20m ago•0 comments

Continuously hardening ChatGPT Atlas against prompt injection attacks

https://openai.com/index/hardening-atlas-against-prompt-injection/
1•Tomte•21m ago•0 comments

Got my first sales before running out of sacings

https://sololaunches.com
1•Sharanxxxx•21m ago•1 comments

Is gravitational time dilation a form of computational latency?

https://zenodo.org/records/18027729
2•Jonghwa_Lee•22m ago•1 comments

Show HN: A tiny work log that generates performance review summaries

https://jotchain.com/
1•morozred•23m ago•0 comments

Show HN: Claude Code Skills Playground

https://skillsplayground.com
1•jackculpan•23m ago•0 comments

SimQA a fun little game to simulate QA strategies

https://www.desplega.ai/tools/simqa
1•pls-dnt-deploy•25m ago•0 comments

Track your Claude Code carbon footprint

https://weeatrobots.substack.com/p/claude-carbon-ai-footprint
1•djgrant•26m ago•0 comments

Toilet Rats: Rare, but There

https://www.nytimes.com/2025/12/21/us/washington-flooding-toilet-rats.html
3•mistersquid•32m ago•1 comments

Show HN: I built a tool to clear my YouTube's "Watch Later" Video Graveyard

https://recapio.com/
2•nikhonit•32m ago•0 comments

Gouing, Going, Gone

https://zhaoxo.substack.com/p/gouing-going-gone
1•shrinkzxo•38m ago•0 comments

Bloom: an open source tool for automated behavioral evaluations

https://www.anthropic.com/research/bloom
2•maluta•40m ago•0 comments

I learned to stop worrying and love AI slop

https://www.technologyreview.com/2025/12/23/1130396/how-i-learned-to-stop-worrying-and-love-ai-slop/
2•fleahunter•41m ago•0 comments

Why Scientists Are Performing Brain Surgery on Monarchs

https://www.nytimes.com/video/science/earth/100000010574028/why-scientists-are-performing-brain-s...
1•quapster•41m ago•1 comments

Amazon to offer DRM-free ePub and PDF downloads for Kindle titles in January

https://kdp.amazon.com/en_US/help/topic/GDDXGH9VR22ACM8U
1•KoftaBob•41m ago•0 comments

Show HN: A place to make predictions that are worth surviving in the simulation

https://prediction.danilofiumi.com/
1•danilofiumi•42m ago•0 comments