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

Comments

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

Mystery donor gives Japanese city $3.6M in gold bars to fix water system

https://www.bbc.com/news/articles/c3ew5jlqz87o
2•tartoran•2m ago•0 comments

California introduces a bill (AB-2047) that will limit the use of 3D printers

https://legiscan.com/CA/text/AB2047/2025
1•greesil•5m ago•1 comments

FBI 'Asset' Helped Run a Dark Web Site That Sold Fentanyl-Laced Drugs for Years

https://www.wired.com/story/an-fbi-asset-helped-run-a-dark-web-site-that-sold-fentanyl-laced-drug...
2•jbegley•6m ago•1 comments

Show HN: I Built a Kotlin Package Manager (KPM)

https://github.com/BenMorrisRains/Kotlin-Package-Manager
1•BenMorrisRains•6m ago•0 comments

Theres no mainstream AI video editing tool?

1•yakshithk_•6m ago•0 comments

Judge scolds Mark Zuckerberg's team for wearing Meta glasses to trial

https://www.cbsnews.com/news/meta-trial-mark-zuckerberg-ai-glasses/
2•danorama•8m ago•1 comments

Top Lawyers' Fees Have Skyrocketed. Be Prepared to Pay $3,400 an Hour

https://www.wsj.com/business/lawyer-hourly-rate-bill-3400-807cf6ce
1•walterbell•8m ago•1 comments

Show HN: Optimize_anything: A Universal API for Optimizing Any Text Parameter

https://gepa-ai.github.io/gepa/blog/2026/02/18/introducing-optimize-anything/
2•LakshyAAAgrawal•11m ago•0 comments

Consistency diffusion language models: Up to 14x faster, no quality loss

https://www.together.ai/blog/consistency-diffusion-language-models
1•zagwdt•14m ago•0 comments

Static Pricing Theory

https://www.varietyiq.com/blog/pricing
1•efavdb•21m ago•0 comments

I Audited Three Vibe Coded Products in a Single Day

https://fromtheprism.com/vibe-coding-audit
1•heavymemory•23m ago•1 comments

The Mythical Agent-Month

https://wesmckinney.com/blog/mythical-agent-month/
2•vinhnx•24m ago•1 comments

Automatically Learning Skills for Coding Agents

https://gepa-ai.github.io/gepa/blog/2026/02/18/automatically-learning-skills-for-coding-agents/
2•emersonmacro•25m ago•1 comments

Most EV batteries outlast their cars, real-world data shows

https://electrek.co/2026/02/18/most-ev-batteries-outlast-their-cars-real-world-data-shows/
2•xbmcuser•26m ago•0 comments

Nothing Ever Happens: "Mister Squishy" and the Year of the Sentence Diagram

https://lareviewofbooks.org/article/nothing-ever-happens-mister-squishy-and-the-year-of-the-sente...
2•sxzygz•26m ago•0 comments

Mirfield man's tears of joy after lost voicemail of wife retrieved (2015)

https://www.bbc.co.uk/news/uk-england-leeds-31015325
3•susam•26m ago•1 comments

CHAI's AI oversight ambitions falter with scrapped AI labs

https://www.fiercehealthcare.com/ai-and-machine-learning/inside-chais-failed-assurance-labs
1•nradov•27m ago•0 comments

US removing guardrails from proposed Saudi nuclear deal

https://www.reuters.com/world/us/us-removing-guardrails-proposed-saudi-nuclear-deal-document-says...
2•JumpCrisscross•27m ago•0 comments

White House Offers New Details on Its Push to Ban Housing Investors

https://www.wsj.com/politics/policy/white-house-offers-new-details-on-its-push-to-ban-housing-inv...
4•JumpCrisscross•27m ago•0 comments

LLaMAudit: Perform AI detection using local or open models

https://github.com/devrupt-io/LLaMAudit
1•ddtaylor•28m ago•0 comments

Google AI Pro and Ultra now includes Google Developer Program premium benefits

https://blog.google/innovation-and-ai/technology/developers-tools/gdp-premium-ai-pro-ultra/
1•phantomathkg•29m ago•0 comments

Micron Is Spending $200B to Break the AI Memory Bottleneck

https://www.wsj.com/tech/micron-is-spending-200-billion-to-break-the-ai-memory-bottleneck-a4cc74a1
3•walterbell•31m ago•1 comments

How much sleep does a banker need? A US court will decide

https://www.ft.com/content/60b3dd1c-112a-470c-aa77-1bc697d13cf7
2•quantumwannabe•32m ago•0 comments

Microsoft's new 10k-year data storage medium: glass

https://arstechnica.com/science/2026/02/microsofts-new-10000-year-data-storage-medium-glass/
10•vinhnx•32m ago•0 comments

PostgreSQL Bloat Is a Feature, Not a Bug

https://rogerwelin.github.io/2026/02/11/postgresql-bloat-is-a-feature-not-a-bug/
1•vinhnx•32m ago•0 comments

Follow the Money is phasing out U.S. tech – follow the journey

https://www.ftm.eu/articles/follow-the-money-is-phasing-out-us-tech
2•YounesDz•34m ago•0 comments

AI Rivalry at AI Summit

https://twitter.com/CNBCTV18News/status/2024428069851959500
1•anonymousiam•36m ago•1 comments

Three Engineers Charged with Stealing Trade Secrets from Leading Tech Companies

https://www.justice.gov/usao-ndca/pr/silicon-valley-engineers-charged-stealing-trade-secrets-lead...
2•trimbo•37m ago•0 comments

Show HN: GameZipper – 12 Free HTML5 Browser Games (No Ads, No Login)

https://gamezipper.com/
1•LetusWinyj•38m ago•0 comments

The Robin Hood state is coming for the rich

https://www.economist.com/international/2026/02/16/the-robin-hood-state-is-coming-for-the-rich
2•andsoitis•41m ago•0 comments