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

Comments

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

https://yusufaytas.com/the-work-runs-on-different-maps
1•yusufaytas•31s ago•0 comments

Memjar: Uncompromising, local-first second brain

https://github.com/m00dy/memjar
1•m00dy•4m ago•0 comments

Tim Davis – Probabilistic engineering and the 24-7 employee

https://www.timdavis.com/blog/probabilistic-engineering-and-the-24-7-employee
1•kiyanwang•7m ago•0 comments

2005 PS2 Game Returning with New Release on PS5, PS4

https://comicbook.com/gaming/news/ps2-playstation-2-games-ps5-ps4-release-2005/
1•01-_-•12m ago•0 comments

The framework built by a father in 2006 dominated the internet

https://comuniq.xyz/post?t=966
1•01-_-•14m ago•0 comments

An Amish Paradox: Diversity and Change in the Largest Amish Community

https://www.thepsmiths.com/p/review-an-amish-paradox-by-charles
1•barry-cotter•14m ago•0 comments

LlaMa.cpp Robot Wars

https://www.youtube.com/watch?v=bgZ3pmr0DIs
2•Pasyd•15m ago•1 comments

Performance • tldraw Docs

https://tldraw.dev/sdk-features/performance
1•aragonite•15m ago•0 comments

Ask HN: Is your Mac's menu bar throwing errors?

1•vsgherzi•15m ago•0 comments

SitTall – a macOS app that uses AirPods sensors to detect slouching

https://sittall.app/
1•anilatici•18m ago•1 comments

Anatomy of High-Performance Matrix Multiplication (2008) [pdf]

https://www.cs.utexas.edu/~flame/pubs/GotoTOMS_revision.pdf
1•tosh•19m ago•0 comments

Visual Studio Code Agents App (Preview)

https://code.visualstudio.com/updates/v1_115#_visual-studio-code-agents-preview
1•maxloh•29m ago•0 comments

Hero Engineering: In Defense of Unreasonable Optimizations

https://deancalver.substack.com/p/hero-engineering-in-defense-of-unreasonable
1•DeanoC•34m ago•0 comments

Edit store price tags using Flipper Zero

https://github.com/i12bp8/TagTinker
1•trueduke•44m ago•0 comments

Why Musicians Are Manufacturing Sold-Out Shows

https://www.bloomberg.com/news/articles/2026-04-17/how-bands-like-cameron-winter-s-geese-are-manu...
2•helsinkiandrew•47m ago•0 comments

A Private Recommendation System I Can Control

https://frankk.site/en/blog/controllable-recommendation-system/
1•langtang1996•49m ago•0 comments

Ask HN: How did you land your first projects as a solo engineer/consultant?

2•modelcroissant•53m ago•0 comments

Waterloo’s live AI-goose tracker. Never get ambushed by a cobra chicken again.

https://www.waddleloo.com/
1•consumer451•55m ago•0 comments

Public grocery stores are having a moment. Can they make food more affordable?

https://www.cbc.ca/radio/thecurrent/public-grocery-stores-9.7168321
3•Teever•56m ago•0 comments

Ask HN: Should I build *another* Markdown task manager?

1•simchri•57m ago•1 comments

Show HN: AI Primer – A Searchable AI Changelog for AI Engineers and Creatives

https://www.ai-primer.com
1•andyasprou•58m ago•0 comments

Deleteduser.com –A $15 PII Magnet

https://mike-sheward.medium.com/deleteduser-com-a-15-pii-magnet-c4396eb21061
2•birdculture•59m ago•0 comments

Shyell – a Rust shell with built-in benchmarking and project-aware prompts

https://github.com/sumant1122/shyell
1•paperplaneflyr•1h ago•0 comments

Resources for starting and growing an AI safety org

https://www.lesswrong.com/posts/fBDMCLTv8Cx28cJeJ/resources-for-starting-and-growing-an-ai-safety...
1•omer_k•1h ago•0 comments

Splitt – A gym set tracker that does nothing else

https://trysplitt.com/
2•zack-p•1h ago•1 comments

How to raise fund from investor for my startup?

1•SRMohitkr•1h ago•3 comments

BFV

https://bloxfruitsplay.com/
1•BFV•1h ago•0 comments

SPEAKE(a)R: Turn Speakers to Microphones for Fun and Profit [pdf] (2017)

https://www.usenix.org/system/files/conference/woot17/woot17-paper-guri.pdf
36•Eridanus2•1h ago•15 comments

Turtle WoW classic server announces shutdown after Blizzard wins injunction

https://forum.turtlecraft.gg/viewtopic.php?t=24891
1•HelloUsername•1h ago•0 comments

Compare Every Design Tool – Designtools.fyi

https://designtools.fyi
3•bthallplz•1h ago•0 comments