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

Formal Verification Gates for AI Coding Loops

https://reubenbrooks.dev/blog/structural-backpressure-beats-smarter-agents/
1•pyrex41•59s ago•0 comments

How Musk Might Defeat the Statute of Limitations Defense

https://chatlaw.substack.com/p/how-musk-might-defeat-the-statute
1•dsubburam•1m ago•0 comments

Alexander Grothendieck Revolutionized 20th-Century Mathematics

https://www.quantamagazine.org/how-alexander-grothendieck-revolutionized-20th-century-mathematics...
1•digital55•1m ago•0 comments

Data centers loom over Georgia governor race

https://www.politico.com/news/2026/05/19/data-centers-loom-over-georgia-governor-race-00929073
1•1vuio0pswjnm7•2m ago•0 comments

Cybertruck owner believed Elon Musk that it could cross lake – now he's in jail

https://electrek.co/2026/05/19/tesla-cybertruck-owner-believed-elon-musk-lake-jail/
1•neilfrndes•3m ago•0 comments

Awesome database stories from the best

https://github.com/erenworld/awesome-database/
1•erenturkoglu•4m ago•0 comments

Benchmarking AI coding agents for distributed SQL: 350 runs, 17 models

https://www.yugabyte.com/blog/benchmarking-ai-coding-agents-for-distributed-sql-lessons/
1•mityash•4m ago•0 comments

Notes on AI, Labor, and China

https://jasmi.news/p/party-in-the-permanent-underclass
1•ripe•6m ago•1 comments

Co-Scientist: A multi-agent AI partner to accelerate research

https://deepmind.google/blog/co-scientist-a-multi-agent-ai-partner-to-accelerate-research/
1•smooke•6m ago•0 comments

How to set up a secure back end for hosting a shadow library mirror

https://software.annas-archive.gl/AnnaArchivist/annas-archive/-/work_items?show=eyJpaWQiOiIzMDUiL...
1•Cider9986•8m ago•0 comments

Woman dies after falling into NYC manhole

https://abcnews.com/US/woman-dies-after-falling-nyc-manhole/story?id=133109814
1•SilverElfin•10m ago•0 comments

Training a 22MB prompt injection classifier

https://www.stackone.com/blog/training-22mb-prompt-injection-classifier/
1•Hiskias•11m ago•0 comments

Show HN: Google Search Console MCP – read-only, OAuth, free

https://calmseo.com/google-search-console-mcp
2•noahflk•11m ago•0 comments

Denver has a plan to heat and cool buildings without fossil fuels

https://text.npr.org/nx-s1-5734477
3•mooreds•13m ago•0 comments

Gender Gaps in Education and Declining Marriage Rates (2025)

https://opportunityinsights.org/paper/bachelors-without-bachelors/
2•mooreds•13m ago•0 comments

I committed to writing and sharing 30 jokes in 30 days. Here's what I learned

https://pammoore.substack.com/p/i-committed-to-writing-and-sharing
2•mooreds•14m ago•0 comments

Why Aren't Americans Living Longer?

https://now.tufts.edu/2026/03/09/why-arent-americans-living-longer
3•littlexsparkee•14m ago•1 comments

Nobel laureate Olga Tokarczuk apparently used AI to write her latest novel

https://lithub.com/nobel-laureate-olga-tokarczuk-apparently-used-ai-to-write-her-latest-novel/
11•bookofjoe•16m ago•7 comments

Stable Audio 3

https://arxiv.org/abs/2605.17991
3•guardienaveugle•16m ago•0 comments

Russian Troops' Fear Grows as Ukraine AI "Slaughterbot" Drones Headhunt Them

http://www.thelowdownblog.com/2026/05/russian-troops-fear-grows-as-ukraine-ai.html
3•tim333•17m ago•0 comments

California gubernatorial candidate investigation re: payments to influencers

https://www.washingtonpost.com/technology/2026/05/15/tom-steyers-influencer-campaign-triggers-cal...
2•1vuio0pswjnm7•17m ago•0 comments

Google is its own worst enemy

https://disconnect.blog/google-is-its-own-worst-enemy/
2•speckx•18m ago•0 comments

Handcrafted with Care: Alfred's Core Values – Alfred Blog

https://www.alfredapp.com/blog/productivity/handcrafted-with-care-alfreds-values/
2•samtrack2019•18m ago•0 comments

Meta begins 8k job cuts in AI efficiency push

https://www.latimes.com/business/story/2026-05-20/meta-begins-8-000-global-job-cuts-in-ai-efficie...
7•1vuio0pswjnm7•20m ago•0 comments

Wi-Wi Is Wireless Time Sync at 1 Nanosecond

https://www.jeffgeerling.com/blog/2026/wi-wi-is-wireless-time-sync-less-than-5ns/
4•Brajeshwar•20m ago•0 comments

How I burned 389K Claude Code cache-creation tokens before the real prompt

https://www.skinny.cloud/
2•vipdestiny•20m ago•0 comments

Meta Begins 8k Global Job Cuts in AI Efficiency Push

https://news.bloomberglaw.com/artificial-intelligence/meta-begins-job-cuts-in-efficiency-push-spu...
4•1vuio0pswjnm7•22m ago•0 comments

Betlang: A tiny (50kb) programming language detection model

https://github.com/DioxusLabs/betlang
2•demonthos•22m ago•0 comments

Microsoft Agent 365: Autonomous AI for enterprise governance by 2026

https://www.hitechies.com/microsoft-agent-365-autonomous-ai-enterprise-governance-2026/
2•dhakalster•23m ago•0 comments

ChatGPT and other AI bots made errors before Scottish election, study finds

https://www.theguardian.com/technology/2026/may/20/ai-chatbots-chatgpt-replika-grok-gemini-misinf...
2•chrisjj•24m ago•1 comments