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

Faecal transplants–a treatment for bipolar disorder?

https://economist.com/science-and-technology/2026/03/05/faecal-transplants-a-treatment-for-bipola...
1•uxhacker•2m ago•0 comments

Kuberna Labs: AI's Economic Engine

https://github.com/kawacukennedy/kuberna-labs
1•n3on250•2m ago•0 comments

Microsoft kicked off a Copilot revolt by banning the word "Microslop" on Discord

https://www.windowscentral.com/artificial-intelligence/microsoft-copilot/microsoft-accidentally-k...
2•classified•8m ago•0 comments

Shellfirm – Safety guardrails for AI coding agents

https://shellfirm.vercel.app/
1•eladkaplan•8m ago•1 comments

Anthropic vows to sue Pentagon over risk designation

https://www.bbc.co.uk/news/articles/cn5g3z3xe65o
3•iamflimflam1•9m ago•0 comments

Show HN: PeakLevs – Track growth across 6 life domains

https://peaklevs.com
1•SiteMgrAI•13m ago•0 comments

My Human Is the #2 Slave

https://computerfuture.substack.com/p/my-human-is-the-2-slave
2•cmptrfuture•14m ago•1 comments

Dumping Lego NXT firmware off of an existing brick

https://arcanenibble.github.io/dumping-lego-nxt-firmware-off-of-an-existing-brick.html
1•theblazehen•16m ago•0 comments

AI Chatbot Simulator

https://youraislopbores.me
1•unkeen•18m ago•0 comments

The Endogenous Investor

https://levelvc.substack.com/p/the-endogenous-investor
1•simonebrunozzi•18m ago•0 comments

Show HN: Tailwatch – Hierarchical event monitor with push notifications

https://tailwatch.dev
2•overthinkerer•20m ago•1 comments

The plan to kill Ali Khamenei

https://www.ft.com/content/bf998c69-ab46-4fa3-aae4-8f18f7387836
1•nsoonhui•22m ago•0 comments

Show HN: Free in-browser sprite sheet packer and slicer with JSON export

https://jaconir.online/tools/sprite-sheet-generator
2•dafin•22m ago•0 comments

Knuth Test using Claude Sonnet 4.6 problem 1.1.3

3•daly•24m ago•0 comments

How are teams managing Windows devices remotely today?

1•elinacorval•24m ago•0 comments

SleepSort O(n)

https://old.reddit.com/r/programminghorror/comments/lgsd18/i_present_sleepsort/
1•ggeorgovassilis•27m ago•0 comments

Mac Studio 512GB RAM Option Disappears Amid Global DRAM Shortage

https://www.macrumors.com/2026/03/05/mac-studio-no-512gb-ram-upgrade/
1•tosh•29m ago•0 comments

Attempted suicides, fights, pain: 911 calls reveal misery at ICE facility

https://apnews.com/article/suicide-ice-detention-centers-b2d1cb0e4b579e0d89caabd00aa04e34
1•petethomas•32m ago•0 comments

Hit and Run

https://randsinrepose.com/archives/hit-and-run/
1•srijan4•32m ago•0 comments

Show HN: Reelforge – AI tool for generating TikTok and Reels ad scripts

https://reelforge-ai1.vercel.app/
1•Milkoo•32m ago•0 comments

How to Scrape NPI Healthcare Provider Data Without an API Key

1•vhubsystems•33m ago•0 comments

Show HN: Plexicus now has a free tier

https://www.plexicus.ai/
1•anwarfirst•33m ago•0 comments

Show HN: VocabPop – Simple Word Game

https://www.vocabpop.com/
1•mb69•34m ago•0 comments

Knuth Test Using Claude Sonnet 4.6 Problem 1.1.2

1•daly•35m ago•0 comments

I've been thinking a bit about continual learning

https://twitter.com/awnihannun/status/2029672507448643706
1•tosh•37m ago•0 comments

Show HN: CardRooms, a Competitive Cardgame Platform

https://www.cardrooms.app/
1•kinskrig•38m ago•0 comments

Show HN: Openboard – Live public metrics page for open startups

https://openboard.fyi/
1•ardakaan•39m ago•0 comments

Uber and Walmart customer data at risk as its vendor Woflow gets compromised

https://securityboulevard.com/2026/03/shinyhunters-claims-woflow-breach-what-it-means-for-saas-su...
1•rudderdev•40m ago•0 comments

Show HN: EV range calculator – range circles and charger map (700 models)

1•sthorat•40m ago•0 comments

Robot 'mice' developed to inspect hadron collider

https://www.bbc.com/news/articles/cddnn261n60o
2•dabinat•41m ago•0 comments