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

Why are there keys on my messenger app that I don't recognize

1•ttim•6m ago•0 comments

The uno reverse public license

https://github.com/Zuhaitz-dev/URPL
1•anticensor•9m ago•0 comments

Open-source living-room entertainment system, with pretty UI made in Electron

https://github.com/charnam/ClasmeraSpace
1•charnam•10m ago•1 comments

Riyadh Leads Global Tech Growth as Cyprus Becomes Europe's Crisis Safe Haven

https://www.startupblink.com/startupecosystemreport
1•Sam6late•10m ago•1 comments

AI-Declaration.md

https://github.com/DimwitLabs/AI-DECLARATION.md
1•rapiz•12m ago•0 comments

AI Prompt Examples and Techniques for Better AI Outputs

https://promptessor.com/blog/10-ai-prompt-examples-and-techniques
1•rizkimurtadha•12m ago•0 comments

Waterloo Intern = Head of Infra

https://twitter.com/waterloo_intern/status/2057977885840036104
1•tuhins•14m ago•0 comments

Nvidia Removes Gaming Revenue Category from Financial Reports

https://www.guru3d.com/story/nvidia-removes-gaming-revenue-category-from-financial-reports/
2•theanonymousone•15m ago•0 comments

Show HN: Pilates – pure TypeScript flex layout for terminal UIs

https://github.com/pilatesjs/pilates
1•wangzhijie•16m ago•0 comments

Nuclear Power in China

https://world-nuclear.org/information-library/country-profiles/countries-a-f/china-nuclear-power
1•leonidasrup•18m ago•0 comments

Destino: Doom in Your Terminal with Node.js

https://blog.platformatic.dev/destino-doom-terminal-nodejs-ffi
1•piraccini•21m ago•0 comments

Show HN: Source screen for congressional stock disclosure claims

https://tinyopsstudio.com/congress-disclosure-now-csco-source-screen
1•tinyopsstudio•24m ago•0 comments

Telegram's MTProto: Assessing Deanonymization Potential for a Network Attacker [pdf]

https://symbolic.software/pdf/gnmx-01.pdf
1•sysoleg•25m ago•0 comments

Arsenal's title win should be studied by politicians everywhere

https://www.theguardian.com/commentisfree/2026/may/22/keir-starmer-arsenal-politics-premier-league
2•teleforce•36m ago•0 comments

Strengthening Singapore's AI Future

https://deepmind.google/blog/strengthening-singapores-ai-future-a-new-national-partnership/
2•pretext•37m ago•0 comments

Microsoft Agrees to $250M Settlement with Activision Blizzard Shareholders

https://www.law.com/delbizcourt/2026/05/22/microsoft-agrees-to-250m-settlement-with-activision-bl...
2•1vuio0pswjnm7•37m ago•0 comments

White House ordering agencies to place its new app on all employees' govt phones

https://www.govexec.com/management/2026/05/white-house-ordering-agencies-place-its-new-app-all-em...
4•mikhael•37m ago•0 comments

US tells foreigners seeking green cards: Return to your countries to apply

https://www.reuters.com/legal/government/uscis-tells-foreigners-seeking-green-cards-return-your-c...
2•tartoran•37m ago•1 comments

Publishing's Latest Piracy Problem: Audiobooks on YouTube

https://www.nytimes.com/2026/05/21/books/audiobook-piracy-youtube.html
1•thm•41m ago•0 comments

Judge considers ordering Meta to revamp its apps

https://www.politico.com/news/2026/05/22/meta-judge-trial-public-nuisance-facebook-00934485
1•1vuio0pswjnm7•41m ago•0 comments

Crypto industry braces for quantum computing threat

https://www.ft.com/content/99c1c1e7-1a1c-479c-9fc8-e21aea5c3f0e
6•thm•43m ago•2 comments

Waymo suspends all freeway rides over safety

https://www.latimes.com/business/story/2026-05-22/waymo-suspends-all-freeway-rides-over-safety
3•1vuio0pswjnm7•44m ago•0 comments

Starbucks scraps AI inventory tool after nine months

https://qz.com/starbucks-scraps-ai-inventory-tool-nomadgo-052226
2•thunderbong•44m ago•0 comments

In India, You Can Get Milk Delivered Faster Than It Takes to Make Coffee

https://www.wsj.com/business/logistics/in-india-you-can-get-milk-delivered-faster-than-it-takes-t...
2•JumpCrisscross•45m ago•0 comments

Google appeals search monopoly ruling, says it won business 'fair and square'

https://www.theverge.com/policy/936175/google-search-monopoly-ruling-appeal
2•thm•45m ago•0 comments

Cannes Film Cost $500k to Make. $400k Was AI Compute Costs

https://www.wsj.com/cio-journal/this-cannes-film-cost-500-000-to-make-400-000-was-ai-compute-cost...
5•JumpCrisscross•47m ago•0 comments

How to Be a Real Elite Programmer

https://skorks.com/2010/05/how-to-be-a-real-elite-programmer-and-make-sure-everybody-knows-it/
2•mahirsaid•50m ago•0 comments

The Fonts of the U.S. Federal Courts

https://daringfireball.net/2026/05/the_fonts_of_the_us_federal_courts
1•Tomte•52m ago•0 comments

Microsoft's new multi-model agentic security system tops leading benchmark

https://www.microsoft.com/en-us/security/blog/2026/05/12/defense-at-ai-speed-microsofts-new-multi...
3•uniclaude•59m ago•0 comments

Lisa's Copy (and Cut, and Paste)

https://unsung.aresluna.org/lisas-copy-and-cut-and-paste/
1•zdw•1h ago•0 comments